-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Remove all uses of NodeId
in ResolverOutputs
#72402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
5728c53
3c5dba7
52359f7
13c86f2
25f575b
21f65ae
8ff6ffd
4c4cb46
f31e076
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,11 +17,11 @@ use crate::ty; | |
use crate::ty::subst::{InternalSubsts, Subst, SubstsRef}; | ||
use crate::ty::util::{Discr, IntTypeExt}; | ||
use rustc_ast::ast; | ||
use rustc_ast::node_id::{NodeId, NodeMap, NodeSet}; | ||
use rustc_attr as attr; | ||
use rustc_data_structures::captures::Captures; | ||
use rustc_data_structures::fingerprint::Fingerprint; | ||
use rustc_data_structures::fx::FxHashMap; | ||
use rustc_data_structures::fx::FxHashSet; | ||
use rustc_data_structures::fx::FxIndexMap; | ||
use rustc_data_structures::sorted_map::SortedIndexMultiMap; | ||
use rustc_data_structures::stable_hasher::{HashStable, StableHasher}; | ||
|
@@ -31,7 +31,7 @@ use rustc_hir as hir; | |
use rustc_hir::def::{CtorKind, CtorOf, DefKind, Namespace, Res}; | ||
use rustc_hir::def_id::{CrateNum, DefId, DefIdMap, LocalDefId, CRATE_DEF_INDEX}; | ||
use rustc_hir::lang_items::{FnMutTraitLangItem, FnOnceTraitLangItem, FnTraitLangItem}; | ||
use rustc_hir::{Constness, GlobMap, Node, TraitMap}; | ||
use rustc_hir::{Constness, Node}; | ||
use rustc_index::vec::{Idx, IndexVec}; | ||
use rustc_macros::HashStable; | ||
use rustc_serialize::{self, Encodable, Encoder}; | ||
|
@@ -120,12 +120,12 @@ mod sty; | |
pub struct ResolverOutputs { | ||
pub definitions: rustc_hir::definitions::Definitions, | ||
pub cstore: Box<CrateStoreDyn>, | ||
pub extern_crate_map: NodeMap<CrateNum>, | ||
pub trait_map: TraitMap<NodeId>, | ||
pub maybe_unused_trait_imports: NodeSet, | ||
pub maybe_unused_extern_crates: Vec<(NodeId, Span)>, | ||
pub export_map: ExportMap<NodeId>, | ||
pub glob_map: GlobMap, | ||
pub extern_crate_map: FxHashMap<DefId, CrateNum>, | ||
pub trait_map: FxHashMap<hir::HirId, Vec<hir::TraitCandidate<hir::HirId>>>, | ||
pub maybe_unused_trait_imports: FxHashSet<LocalDefId>, | ||
pub maybe_unused_extern_crates: Vec<(DefId, Span)>, | ||
pub export_map: ExportMap<hir::HirId>, | ||
pub glob_map: FxHashMap<LocalDefId, FxHashSet<Symbol>>, | ||
Comment on lines
+123
to
+128
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It does seem like all of these could plausibly be There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I've only tried for There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @petrochenkov I see you've assigned yourself. Any recommendations here? Is there a reason that There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also because the global context uses There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The zoo of I guess the right thing to do here would be changing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I can definitely take a look at that in a follow up PR! |
||
/// Extern prelude entries. The value is `true` if the entry was introduced | ||
/// via `extern crate` item and not `--extern` option or compiler built-in. | ||
pub extern_prelude: FxHashMap<Symbol, bool>, | ||
|
Uh oh!
There was an error while loading. Please reload this page.