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:
parent
a3ed564c13
commit
22d489be76
12 changed files with 181 additions and 27 deletions
|
@ -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};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue