From 893b716c865246a4fb005b8f36fc3f30cf3ed7e3 Mon Sep 17 00:00:00 2001 From: John Date: Thu, 25 Apr 2024 23:53:44 -0500 Subject: [PATCH] cl-structures: Rename the deprecated "intern pool" (lmao) Don't deprecate it yet, though, we've got more stuff yet. --- .../src/{intern_pool.rs => deprecated_intern_pool.rs} | 2 +- compiler/cl-structures/src/lib.rs | 2 +- compiler/cl-typeck/src/key.rs | 2 +- compiler/cl-typeck/src/module.rs | 2 +- compiler/cl-typeck/src/project.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) rename compiler/cl-structures/src/{intern_pool.rs => deprecated_intern_pool.rs} (99%) diff --git a/compiler/cl-structures/src/intern_pool.rs b/compiler/cl-structures/src/deprecated_intern_pool.rs similarity index 99% rename from compiler/cl-structures/src/intern_pool.rs rename to compiler/cl-structures/src/deprecated_intern_pool.rs index c76d68b..4da0652 100644 --- a/compiler/cl-structures/src/intern_pool.rs +++ b/compiler/cl-structures/src/deprecated_intern_pool.rs @@ -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 /// diff --git a/compiler/cl-structures/src/lib.rs b/compiler/cl-structures/src/lib.rs index f992597..f0c11b0 100644 --- a/compiler/cl-structures/src/lib.rs +++ b/compiler/cl-structures/src/lib.rs @@ -13,4 +13,4 @@ pub mod tree; pub mod stack; -pub mod intern_pool; +pub mod deprecated_intern_pool; diff --git a/compiler/cl-typeck/src/key.rs b/compiler/cl-typeck/src/key.rs index b169543..eb28a29 100644 --- a/compiler/cl-typeck/src/key.rs +++ b/compiler/cl-typeck/src/key.rs @@ -1,4 +1,4 @@ -use cl_structures::intern_pool::*; +use cl_structures::deprecated_intern_pool::*; // define the index types make_intern_key! { diff --git a/compiler/cl-typeck/src/module.rs b/compiler/cl-typeck/src/module.rs index b18528d..2ce88ab 100644 --- a/compiler/cl-typeck/src/module.rs +++ b/compiler/cl-typeck/src/module.rs @@ -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; diff --git a/compiler/cl-typeck/src/project.rs b/compiler/cl-typeck/src/project.rs index eb60758..c16a2f0 100644 --- a/compiler/cl-typeck/src/project.rs +++ b/compiler/cl-typeck/src/project.rs @@ -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},