mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-22 10:02:58 +00:00
Implement rough symbol interning infra
This commit is contained in:
parent
ffbc5ad993
commit
6275eb140e
6 changed files with 543 additions and 1 deletions
|
@ -20,6 +20,9 @@ type Guard<T> = dashmap::RwLockWriteGuard<
|
|||
HashMap<Arc<T>, SharedValue<()>, BuildHasherDefault<FxHasher>>,
|
||||
>;
|
||||
|
||||
mod symbol;
|
||||
pub use self::symbol::{symbols, Symbol};
|
||||
|
||||
pub struct Interned<T: Internable + ?Sized> {
|
||||
arc: Arc<T>,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue