diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2021-01-27 14:28:07 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo.de> | 2021-02-02 17:40:29 +0100 |
| commit | 22d489be76271e36259ab1c7f76dbd88e6fdca2e (patch) | |
| tree | 92663d83350193797f1d201b16416056aea80491 /compiler/rustc_session/src | |
| parent | a3ed564c130ec3f19e933a9ea31faca5a717ce91 (diff) | |
| download | rust-22d489be76271e36259ab1c7f76dbd88e6fdca2e.tar.gz rust-22d489be76271e36259ab1c7f76dbd88e6fdca2e.zip | |
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.
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/session.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/session.rs b/compiler/rustc_session/src/session.rs index 69aa72d899f..3f690ba87ea 100644 --- a/compiler/rustc_session/src/session.rs +++ b/compiler/rustc_session/src/session.rs @@ -8,7 +8,6 @@ use crate::parse::ParseSess; use crate::search_paths::{PathKind, SearchPath}; pub use rustc_ast::attr::MarkedAttrs; -pub use rustc_ast::crate_disambiguator::CrateDisambiguator; pub use rustc_ast::Attribute; use rustc_data_structures::flock; use rustc_data_structures::fx::{FxHashMap, FxHashSet}; @@ -23,6 +22,7 @@ use rustc_errors::json::JsonEmitter; use rustc_errors::registry::Registry; use rustc_errors::{Applicability, Diagnostic, DiagnosticBuilder, DiagnosticId, ErrorReported}; use rustc_lint_defs::FutureBreakage; +pub use rustc_span::crate_disambiguator::CrateDisambiguator; use rustc_span::edition::Edition; use rustc_span::source_map::{FileLoader, MultiSpan, RealFileLoader, SourceMap, Span}; use rustc_span::{sym, SourceFileHashAlgorithm, Symbol}; |
