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)]
|
||||
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")]
|
||||
/// # Safety
|
||||
///
|
@ -13,4 +13,4 @@ pub mod tree;
|
||||
|
||||
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
|
||||
make_intern_key! {
|
||||
|
@ -1,7 +1,7 @@
|
||||
//! A [Module] is a node in the Module Tree (a component of a
|
||||
//! [Project](crate::project::Project))
|
||||
use cl_ast::Sym;
|
||||
use cl_structures::intern_pool::InternKey;
|
||||
use cl_structures::deprecated_intern_pool::InternKey;
|
||||
|
||||
use crate::key::DefID;
|
||||
use std::collections::HashMap;
|
||||
|
@ -6,7 +6,7 @@ use crate::{
|
||||
path::Path,
|
||||
};
|
||||
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::{
|
||||
collections::HashMap,
|
||||
ops::{Index, IndexMut},
|
||||
|
Loading…
Reference in New Issue
Block a user