Struct rustc_middle::ty::ResolverGlobalCtxt
source · pub struct ResolverGlobalCtxt {Show 14 fields
pub visibilities: FxHashMap<LocalDefId, Visibility>,
pub expn_that_defined: FxHashMap<LocalDefId, ExpnId>,
pub effective_visibilities: EffectiveVisibilities,
pub extern_crate_map: FxHashMap<LocalDefId, CrateNum>,
pub maybe_unused_trait_imports: FxIndexSet<LocalDefId>,
pub module_children: LocalDefIdMap<Vec<ModChild>>,
pub glob_map: FxHashMap<LocalDefId, FxHashSet<Symbol>>,
pub main_def: Option<MainDefinition>,
pub trait_impls: FxIndexMap<DefId, Vec<LocalDefId>>,
pub proc_macros: Vec<LocalDefId>,
pub confused_type_with_std_module: FxHashMap<Span, Span>,
pub doc_link_resolutions: FxHashMap<LocalDefId, DocLinkResMap>,
pub doc_link_traits_in_scope: FxHashMap<LocalDefId, Vec<DefId>>,
pub all_macro_rules: FxHashMap<Symbol, Res<NodeId>>,
}
Fields§
§visibilities: FxHashMap<LocalDefId, Visibility>
§expn_that_defined: FxHashMap<LocalDefId, ExpnId>
Item with a given LocalDefId
was defined during macro expansion with ID ExpnId
.
effective_visibilities: EffectiveVisibilities
§extern_crate_map: FxHashMap<LocalDefId, CrateNum>
§maybe_unused_trait_imports: FxIndexSet<LocalDefId>
§module_children: LocalDefIdMap<Vec<ModChild>>
§glob_map: FxHashMap<LocalDefId, FxHashSet<Symbol>>
§main_def: Option<MainDefinition>
§trait_impls: FxIndexMap<DefId, Vec<LocalDefId>>
§proc_macros: Vec<LocalDefId>
A list of proc macro LocalDefIds, written out in the order in which they are declared in the static array generated by proc_macro_harness.
confused_type_with_std_module: FxHashMap<Span, Span>
Mapping from ident span to path span for paths that don’t exist as written, but that
exist under std
. For example, wrote str::from_utf8
instead of std::str::from_utf8
.
doc_link_resolutions: FxHashMap<LocalDefId, DocLinkResMap>
§doc_link_traits_in_scope: FxHashMap<LocalDefId, Vec<DefId>>
§all_macro_rules: FxHashMap<Symbol, Res<NodeId>>
Trait Implementations§
source§impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for ResolverGlobalCtxt
impl<'tcx> ArenaAllocatable<'tcx, IsNotCopy> for ResolverGlobalCtxt
fn allocate_on<'a>(self, arena: &'a Arena<'tcx>) -> &'a mut Self
fn allocate_from_iter<'a>( arena: &'a Arena<'tcx>, iter: impl IntoIterator<Item = Self> ) -> &'a mut [Self]
Auto Trait Implementations§
impl RefUnwindSafe for ResolverGlobalCtxt
impl !Send for ResolverGlobalCtxt
impl !Sync for ResolverGlobalCtxt
impl Unpin for ResolverGlobalCtxt
impl UnwindSafe for ResolverGlobalCtxt
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<T, R> CollectAndApply<T, R> for T
impl<T, R> CollectAndApply<T, R> for T
source§impl<P> IntoQueryParam<P> for P
impl<P> IntoQueryParam<P> for P
fn into_query_param(self) -> P
source§impl<T> MaybeResult<T> for T
impl<T> MaybeResult<T> for T
source§impl<'tcx, T> ToPredicate<'tcx, T> for T
impl<'tcx, T> ToPredicate<'tcx, T> for T
fn to_predicate(self, _tcx: TyCtxt<'tcx>) -> T
source§impl<Tcx, T> Value<Tcx> for Twhere
Tcx: DepContext,
impl<Tcx, T> Value<Tcx> for Twhere Tcx: DepContext,
default fn from_cycle_error( tcx: Tcx, cycle: &[QueryInfo], _guar: ErrorGuaranteed ) -> T
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 480 bytes