cl-structures: Rename the deprecated "intern pool" (lmao)
Don't deprecate it yet, though, we've got more stuff yet.
This commit is contained in:
parent
e49b171bea
commit
893b716c86
@ -35,7 +35,7 @@ macro_rules! make_intern_key {($($(#[$meta:meta])* $name:ident),*$(,)?) => {$(
|
|||||||
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
#[derive(Clone, Copy, Debug, PartialEq, Eq, PartialOrd, Ord, Hash)]
|
||||||
pub struct $name(usize);
|
pub struct $name(usize);
|
||||||
|
|
||||||
impl $crate::intern_pool::InternKey for $name {
|
impl $crate::deprecated_intern_pool::InternKey for $name {
|
||||||
#[doc = concat!("Constructs a [`", stringify!($name), "`] from a [`usize`] without checking bounds.\n")]
|
#[doc = concat!("Constructs a [`", stringify!($name), "`] from a [`usize`] without checking bounds.\n")]
|
||||||
/// # Safety
|
/// # Safety
|
||||||
///
|
///
|
@ -13,4 +13,4 @@ pub mod tree;
|
|||||||
|
|
||||||
pub mod stack;
|
pub mod stack;
|
||||||
|
|
||||||
pub mod intern_pool;
|
pub mod deprecated_intern_pool;
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
use cl_structures::intern_pool::*;
|
use cl_structures::deprecated_intern_pool::*;
|
||||||
|
|
||||||
// define the index types
|
// define the index types
|
||||||
make_intern_key! {
|
make_intern_key! {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
//! A [Module] is a node in the Module Tree (a component of a
|
//! A [Module] is a node in the Module Tree (a component of a
|
||||||
//! [Project](crate::project::Project))
|
//! [Project](crate::project::Project))
|
||||||
use cl_ast::Sym;
|
use cl_ast::Sym;
|
||||||
use cl_structures::intern_pool::InternKey;
|
use cl_structures::deprecated_intern_pool::InternKey;
|
||||||
|
|
||||||
use crate::key::DefID;
|
use crate::key::DefID;
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
@ -6,7 +6,7 @@ use crate::{
|
|||||||
path::Path,
|
path::Path,
|
||||||
};
|
};
|
||||||
use cl_ast::{Identifier, PathPart, TyFn, TyKind, TyRef, TyTuple, Visibility};
|
use cl_ast::{Identifier, PathPart, TyFn, TyKind, TyRef, TyTuple, Visibility};
|
||||||
use cl_structures::intern_pool::Pool;
|
use cl_structures::deprecated_intern_pool::Pool;
|
||||||
use std::{
|
use std::{
|
||||||
collections::HashMap,
|
collections::HashMap,
|
||||||
ops::{Index, IndexMut},
|
ops::{Index, IndexMut},
|
||||||
|
Loading…
Reference in New Issue
Block a user