1
Fork 0

Let a portion of DefPathHash uniquely identify the DefPath's crate.

This allows to directly map from a DefPathHash to the crate it
originates from, without constructing side tables to do that mapping.

It also allows to reliably and cheaply check for DefPathHash collisions.
This commit is contained in:
Michael Woerister 2021-01-27 14:28:07 +01:00 committed by Michael Woerister
parent a3ed564c13
commit 22d489be76
12 changed files with 181 additions and 27 deletions

View file

@ -47,6 +47,8 @@ pub mod lev_distance;
mod span_encoding;
pub use span_encoding::{Span, DUMMY_SP};
pub mod crate_disambiguator;
pub mod symbol;
pub use symbol::{sym, Symbol};