Struct rustc::ty::maps::TyCtxtAt [−][src]
pub struct TyCtxtAt<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> { pub tcx: TyCtxt<'a, 'gcx, 'tcx>, pub span: Span, }
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fields
tcx: TyCtxt<'a, 'gcx, 'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
span: Span
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods
impl<'a, 'tcx> TyCtxtAt<'a, 'tcx, 'tcx>
[src]
impl<'a, 'tcx> TyCtxtAt<'a, 'tcx, 'tcx>
pub fn layout_of(
self,
param_env_and_ty: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Result<TyLayout<'tcx>, LayoutError<'tcx>>
[src]
pub fn layout_of(
self,
param_env_and_ty: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Result<TyLayout<'tcx>, LayoutError<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Computes the layout of a type. Note that this implicitly executes in "reveal all" mode.
impl<'a, 'tcx, 'lcx> TyCtxtAt<'a, 'tcx, 'lcx>
[src]
impl<'a, 'tcx, 'lcx> TyCtxtAt<'a, 'tcx, 'lcx>
pub fn type_of(self, key: DefId) -> Ty<'tcx>
[src]
pub fn type_of(self, key: DefId) -> Ty<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Records the type of every item.
pub fn generics_of(self, key: DefId) -> &'tcx Generics
[src]
pub fn generics_of(self, key: DefId) -> &'tcx Generics
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps from the def-id of an item (trait/struct/enum/fn) to its associated generics and predicates.
pub fn predicates_of(self, key: DefId) -> GenericPredicates<'tcx>
[src]
pub fn predicates_of(self, key: DefId) -> GenericPredicates<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn explicit_predicates_of(self, key: DefId) -> GenericPredicates<'tcx>
[src]
pub fn explicit_predicates_of(self, key: DefId) -> GenericPredicates<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn super_predicates_of(self, key: DefId) -> GenericPredicates<'tcx>
[src]
pub fn super_predicates_of(self, key: DefId) -> GenericPredicates<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps from the def-id of a trait to the list of super-predicates. This is a subset of the full list of predicates. We store these in a separate map because we must evaluate them even during type conversion, often before the full predicates are available (note that supertraits have additional acyclicity requirements).
pub fn type_param_predicates(
self,
key: (DefId, DefId)
) -> GenericPredicates<'tcx>
[src]
pub fn type_param_predicates(
self,
key: (DefId, DefId)
) -> GenericPredicates<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
To avoid cycles within the predicates of a single item we compute
per-type-parameter predicates for resolving T::AssocTy
.
pub fn trait_def(self, key: DefId) -> &'tcx TraitDef
[src]
pub fn trait_def(self, key: DefId) -> &'tcx TraitDef
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn adt_def(self, key: DefId) -> &'tcx AdtDef
[src]
pub fn adt_def(self, key: DefId) -> &'tcx AdtDef
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn adt_destructor(self, key: DefId) -> Option<Destructor>
[src]
pub fn adt_destructor(self, key: DefId) -> Option<Destructor>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn adt_sized_constraint(self, key: DefId) -> &'tcx [Ty<'tcx>]
[src]
pub fn adt_sized_constraint(self, key: DefId) -> &'tcx [Ty<'tcx>]
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn adt_dtorck_constraint(
self,
key: DefId
) -> Result<DtorckConstraint<'tcx>, NoSolution>
[src]
pub fn adt_dtorck_constraint(
self,
key: DefId
) -> Result<DtorckConstraint<'tcx>, NoSolution>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_const_fn(self, key: DefId) -> bool
[src]
pub fn is_const_fn(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
True if this is a const fn
pub fn is_foreign_item(self, key: DefId) -> bool
[src]
pub fn is_foreign_item(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
True if this is a foreign item (i.e., linked via extern { ... }
).
pub fn crate_variances(self, key: CrateNum) -> Lrc<CrateVariancesMap>
[src]
pub fn crate_variances(self, key: CrateNum) -> Lrc<CrateVariancesMap>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Get a map with the variance of every item; use item_variance
instead.
pub fn variances_of(self, key: DefId) -> Lrc<Vec<Variance>>
[src]
pub fn variances_of(self, key: DefId) -> Lrc<Vec<Variance>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps from def-id of a type or region parameter to its (inferred) variance.
pub fn inferred_outlives_of(self, key: DefId) -> Lrc<Vec<Predicate<'tcx>>>
[src]
pub fn inferred_outlives_of(self, key: DefId) -> Lrc<Vec<Predicate<'tcx>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps from def-id of a type to its (inferred) outlives.
pub fn inferred_outlives_crate(
self,
key: CrateNum
) -> Lrc<CratePredicatesMap<'tcx>>
[src]
pub fn inferred_outlives_crate(
self,
key: CrateNum
) -> Lrc<CratePredicatesMap<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps from def-id of a type to its (inferred) outlives.
pub fn associated_item_def_ids(self, key: DefId) -> Lrc<Vec<DefId>>
[src]
pub fn associated_item_def_ids(self, key: DefId) -> Lrc<Vec<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps from an impl/trait def-id to a list of the def-ids of its items
pub fn associated_item(self, key: DefId) -> AssociatedItem
[src]
pub fn associated_item(self, key: DefId) -> AssociatedItem
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps from a trait item to the trait item "descriptor"
pub fn impl_trait_ref(self, key: DefId) -> Option<TraitRef<'tcx>>
[src]
pub fn impl_trait_ref(self, key: DefId) -> Option<TraitRef<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn impl_polarity(self, key: DefId) -> ImplPolarity
[src]
pub fn impl_polarity(self, key: DefId) -> ImplPolarity
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn inherent_impls(self, key: DefId) -> Lrc<Vec<DefId>>
[src]
pub fn inherent_impls(self, key: DefId) -> Lrc<Vec<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps a DefId of a type to a list of its inherent impls. Contains implementations of methods that are inherent to a type. Methods in these implementations don't need to be exported.
pub fn mir_keys(self, key: CrateNum) -> Lrc<DefIdSet>
[src]
pub fn mir_keys(self, key: CrateNum) -> Lrc<DefIdSet>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Set of all the def-ids in this crate that have MIR associated with them. This includes all the body owners, but also things like struct constructors.
pub fn mir_const_qualif(self, key: DefId) -> (u8, Lrc<IdxSetBuf<Local>>)
[src]
pub fn mir_const_qualif(self, key: DefId) -> (u8, Lrc<IdxSetBuf<Local>>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Maps DefId's that have an associated Mir to the result of the MIR qualify_consts pass. The actual meaning of the value isn't known except to the pass itself.
pub fn mir_built(self, key: DefId) -> &'tcx Steal<Mir<'tcx>>
[src]
pub fn mir_built(self, key: DefId) -> &'tcx Steal<Mir<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fetch the MIR for a given def-id right after it's built - this includes unreachable code.
pub fn mir_const(self, key: DefId) -> &'tcx Steal<Mir<'tcx>>
[src]
pub fn mir_const(self, key: DefId) -> &'tcx Steal<Mir<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Fetch the MIR for a given def-id up till the point where it is ready for const evaluation.
See the README for the mir
module for details.
pub fn mir_validated(self, key: DefId) -> &'tcx Steal<Mir<'tcx>>
[src]
pub fn mir_validated(self, key: DefId) -> &'tcx Steal<Mir<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn optimized_mir(self, key: DefId) -> &'tcx Mir<'tcx>
[src]
pub fn optimized_mir(self, key: DefId) -> &'tcx Mir<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
MIR after our optimization passes have run. This is MIR that is ready for trans. This is also the only query that can fetch non-local MIR, at present.
pub fn unsafety_check_result(self, key: DefId) -> UnsafetyCheckResult
[src]
pub fn unsafety_check_result(self, key: DefId) -> UnsafetyCheckResult
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The result of unsafety-checking this def-id.
pub fn unsafe_derive_on_repr_packed(self, key: DefId)
[src]
pub fn unsafe_derive_on_repr_packed(self, key: DefId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
HACK: when evaluated, this reports a "unsafe derive on repr(packed)" error
pub fn fn_sig(self, key: DefId) -> PolyFnSig<'tcx>
[src]
pub fn fn_sig(self, key: DefId) -> PolyFnSig<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
The signature of functions and closures.
pub fn coerce_unsized_info(self, key: DefId) -> CoerceUnsizedInfo
[src]
pub fn coerce_unsized_info(self, key: DefId) -> CoerceUnsizedInfo
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Caches CoerceUnsized kinds for impls on custom types.
pub fn typeck_item_bodies(self, key: CrateNum) -> CompileResult
[src]
pub fn typeck_item_bodies(self, key: CrateNum) -> CompileResult
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn typeck_tables_of(self, key: DefId) -> &'tcx TypeckTables<'tcx>
[src]
pub fn typeck_tables_of(self, key: DefId) -> &'tcx TypeckTables<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn used_trait_imports(self, key: DefId) -> Lrc<DefIdSet>
[src]
pub fn used_trait_imports(self, key: DefId) -> Lrc<DefIdSet>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn has_typeck_tables(self, key: DefId) -> bool
[src]
pub fn has_typeck_tables(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn coherent_trait(self, key: DefId)
[src]
pub fn coherent_trait(self, key: DefId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn borrowck(self, key: DefId) -> Lrc<BorrowCheckResult>
[src]
pub fn borrowck(self, key: DefId) -> Lrc<BorrowCheckResult>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn mir_borrowck(self, key: DefId) -> BorrowCheckResult<'tcx>
[src]
pub fn mir_borrowck(self, key: DefId) -> BorrowCheckResult<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Borrow checks the function body. If this is a closure, returns additional requirements that the closure's creator must verify.
pub fn crate_inherent_impls(self, key: CrateNum) -> CrateInherentImpls
[src]
pub fn crate_inherent_impls(self, key: CrateNum) -> CrateInherentImpls
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Gets a complete map from all types to their inherent impls. Not meant to be used directly outside of coherence. (Defined only for LOCAL_CRATE)
pub fn crate_inherent_impls_overlap_check(self, key: CrateNum)
[src]
pub fn crate_inherent_impls_overlap_check(self, key: CrateNum)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Checks all types in the krate for overlap in their inherent impls. Reports errors. Not meant to be used directly outside of coherence. (Defined only for LOCAL_CRATE)
pub fn const_eval(
self,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> EvalResult<'tcx>
[src]
pub fn const_eval(
self,
key: ParamEnvAnd<'tcx, GlobalId<'tcx>>
) -> EvalResult<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Results of evaluating const items or constants embedded in other items (such as enum variant explicit discriminants).
pub fn check_match(self, key: DefId) -> Result<(), ErrorReported>
[src]
pub fn check_match(self, key: DefId) -> Result<(), ErrorReported>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn privacy_access_levels(self, key: CrateNum) -> Lrc<AccessLevels>
[src]
pub fn privacy_access_levels(self, key: CrateNum) -> Lrc<AccessLevels>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Performs the privacy check and computes "access levels".
pub fn reachable_set(self, key: CrateNum) -> ReachableSet
[src]
pub fn reachable_set(self, key: CrateNum) -> ReachableSet
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn region_scope_tree(self, key: DefId) -> Lrc<ScopeTree>
[src]
pub fn region_scope_tree(self, key: DefId) -> Lrc<ScopeTree>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Per-body region::ScopeTree
. The DefId
should be the owner-def-id for the body;
in the case of closures, this will be redirected to the enclosing function.
pub fn mir_shims(self, key: InstanceDef<'tcx>) -> &'tcx Mir<'tcx>
[src]
pub fn mir_shims(self, key: InstanceDef<'tcx>) -> &'tcx Mir<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn def_symbol_name(self, key: DefId) -> SymbolName
[src]
pub fn def_symbol_name(self, key: DefId) -> SymbolName
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn symbol_name(self, key: Instance<'tcx>) -> SymbolName
[src]
pub fn symbol_name(self, key: Instance<'tcx>) -> SymbolName
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn describe_def(self, key: DefId) -> Option<Def>
[src]
pub fn describe_def(self, key: DefId) -> Option<Def>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn def_span(self, key: DefId) -> Span
[src]
pub fn def_span(self, key: DefId) -> Span
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn lookup_stability(self, key: DefId) -> Option<&'tcx Stability>
[src]
pub fn lookup_stability(self, key: DefId) -> Option<&'tcx Stability>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn lookup_deprecation_entry(self, key: DefId) -> Option<DeprecationEntry>
[src]
pub fn lookup_deprecation_entry(self, key: DefId) -> Option<DeprecationEntry>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn item_attrs(self, key: DefId) -> Lrc<[Attribute]>
[src]
pub fn item_attrs(self, key: DefId) -> Lrc<[Attribute]>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn trans_fn_attrs(self, key: DefId) -> TransFnAttrs
[src]
pub fn trans_fn_attrs(self, key: DefId) -> TransFnAttrs
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn fn_arg_names(self, key: DefId) -> Vec<Name>
[src]
pub fn fn_arg_names(self, key: DefId) -> Vec<Name>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn rendered_const(self, key: DefId) -> String
[src]
pub fn rendered_const(self, key: DefId) -> String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Gets the rendered value of the specified constant or associated constant. Used by rustdoc.
pub fn impl_parent(self, key: DefId) -> Option<DefId>
[src]
pub fn impl_parent(self, key: DefId) -> Option<DefId>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn trait_of_item(self, key: DefId) -> Option<DefId>
[src]
pub fn trait_of_item(self, key: DefId) -> Option<DefId>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn const_is_rvalue_promotable_to_static(self, key: DefId) -> bool
[src]
pub fn const_is_rvalue_promotable_to_static(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn rvalue_promotable_map(self, key: DefId) -> Lrc<ItemLocalSet>
[src]
pub fn rvalue_promotable_map(self, key: DefId) -> Lrc<ItemLocalSet>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_mir_available(self, key: DefId) -> bool
[src]
pub fn is_mir_available(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn vtable_methods(
self,
key: PolyTraitRef<'tcx>
) -> Lrc<Vec<Option<(DefId, &'tcx Substs<'tcx>)>>>
[src]
pub fn vtable_methods(
self,
key: PolyTraitRef<'tcx>
) -> Lrc<Vec<Option<(DefId, &'tcx Substs<'tcx>)>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn trans_fulfill_obligation(
self,
key: (ParamEnv<'tcx>, PolyTraitRef<'tcx>)
) -> Vtable<'tcx, ()>
[src]
pub fn trans_fulfill_obligation(
self,
key: (ParamEnv<'tcx>, PolyTraitRef<'tcx>)
) -> Vtable<'tcx, ()>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn trait_impls_of(self, key: DefId) -> Lrc<TraitImpls>
[src]
pub fn trait_impls_of(self, key: DefId) -> Lrc<TraitImpls>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn specialization_graph_of(self, key: DefId) -> Lrc<Graph>
[src]
pub fn specialization_graph_of(self, key: DefId) -> Lrc<Graph>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_object_safe(self, key: DefId) -> bool
[src]
pub fn is_object_safe(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn param_env(self, key: DefId) -> ParamEnv<'tcx>
[src]
pub fn param_env(self, key: DefId) -> ParamEnv<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_copy_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
[src]
pub fn is_copy_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_sized_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
[src]
pub fn is_sized_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_freeze_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
[src]
pub fn is_freeze_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn needs_drop_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
[src]
pub fn needs_drop_raw(self, key: ParamEnvAnd<'tcx, Ty<'tcx>>) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn layout_raw(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Result<&'tcx LayoutDetails, LayoutError<'tcx>>
[src]
pub fn layout_raw(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Result<&'tcx LayoutDetails, LayoutError<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn dylib_dependency_formats(
self,
key: CrateNum
) -> Lrc<Vec<(CrateNum, LinkagePreference)>>
[src]
pub fn dylib_dependency_formats(
self,
key: CrateNum
) -> Lrc<Vec<(CrateNum, LinkagePreference)>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_panic_runtime(self, key: CrateNum) -> bool
[src]
pub fn is_panic_runtime(self, key: CrateNum) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_compiler_builtins(self, key: CrateNum) -> bool
[src]
pub fn is_compiler_builtins(self, key: CrateNum) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn has_global_allocator(self, key: CrateNum) -> bool
[src]
pub fn has_global_allocator(self, key: CrateNum) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_sanitizer_runtime(self, key: CrateNum) -> bool
[src]
pub fn is_sanitizer_runtime(self, key: CrateNum) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_profiler_runtime(self, key: CrateNum) -> bool
[src]
pub fn is_profiler_runtime(self, key: CrateNum) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn panic_strategy(self, key: CrateNum) -> PanicStrategy
[src]
pub fn panic_strategy(self, key: CrateNum) -> PanicStrategy
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_no_builtins(self, key: CrateNum) -> bool
[src]
pub fn is_no_builtins(self, key: CrateNum) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn extern_crate(self, key: DefId) -> Lrc<Option<ExternCrate>>
[src]
pub fn extern_crate(self, key: DefId) -> Lrc<Option<ExternCrate>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn specializes(self, key: (DefId, DefId)) -> bool
[src]
pub fn specializes(self, key: (DefId, DefId)) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn in_scope_traits_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashMap<ItemLocalId, Lrc<StableVec<TraitCandidate>>>>>
[src]
pub fn in_scope_traits_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashMap<ItemLocalId, Lrc<StableVec<TraitCandidate>>>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn module_exports(self, key: DefId) -> Option<Lrc<Vec<Export>>>
[src]
pub fn module_exports(self, key: DefId) -> Option<Lrc<Vec<Export>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn lint_levels(self, key: CrateNum) -> Lrc<LintLevelMap>
[src]
pub fn lint_levels(self, key: CrateNum) -> Lrc<LintLevelMap>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn impl_defaultness(self, key: DefId) -> Defaultness
[src]
pub fn impl_defaultness(self, key: DefId) -> Defaultness
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn check_item_well_formed(self, key: DefId)
[src]
pub fn check_item_well_formed(self, key: DefId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn check_trait_item_well_formed(self, key: DefId)
[src]
pub fn check_trait_item_well_formed(self, key: DefId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn check_impl_item_well_formed(self, key: DefId)
[src]
pub fn check_impl_item_well_formed(self, key: DefId)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn reachable_non_generics(
self,
key: CrateNum
) -> Lrc<DefIdMap<SymbolExportLevel>>
[src]
pub fn reachable_non_generics(
self,
key: CrateNum
) -> Lrc<DefIdMap<SymbolExportLevel>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_reachable_non_generic(self, key: DefId) -> bool
[src]
pub fn is_reachable_non_generic(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_unreachable_local_definition(self, key: DefId) -> bool
[src]
pub fn is_unreachable_local_definition(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn upstream_monomorphizations(
self,
key: CrateNum
) -> Lrc<DefIdMap<Lrc<FxHashMap<&'tcx Substs<'tcx>, CrateNum>>>>
[src]
pub fn upstream_monomorphizations(
self,
key: CrateNum
) -> Lrc<DefIdMap<Lrc<FxHashMap<&'tcx Substs<'tcx>, CrateNum>>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn upstream_monomorphizations_for(
self,
key: DefId
) -> Option<Lrc<FxHashMap<&'tcx Substs<'tcx>, CrateNum>>>
[src]
pub fn upstream_monomorphizations_for(
self,
key: DefId
) -> Option<Lrc<FxHashMap<&'tcx Substs<'tcx>, CrateNum>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn native_libraries(self, key: CrateNum) -> Lrc<Vec<NativeLibrary>>
[src]
pub fn native_libraries(self, key: CrateNum) -> Lrc<Vec<NativeLibrary>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn foreign_modules(self, key: CrateNum) -> Lrc<Vec<ForeignModule>>
[src]
pub fn foreign_modules(self, key: CrateNum) -> Lrc<Vec<ForeignModule>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn plugin_registrar_fn(self, key: CrateNum) -> Option<DefId>
[src]
pub fn plugin_registrar_fn(self, key: CrateNum) -> Option<DefId>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn derive_registrar_fn(self, key: CrateNum) -> Option<DefId>
[src]
pub fn derive_registrar_fn(self, key: CrateNum) -> Option<DefId>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn crate_disambiguator(self, key: CrateNum) -> CrateDisambiguator
[src]
pub fn crate_disambiguator(self, key: CrateNum) -> CrateDisambiguator
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn crate_hash(self, key: CrateNum) -> Svh
[src]
pub fn crate_hash(self, key: CrateNum) -> Svh
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn original_crate_name(self, key: CrateNum) -> Symbol
[src]
pub fn original_crate_name(self, key: CrateNum) -> Symbol
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn extra_filename(self, key: CrateNum) -> String
[src]
pub fn extra_filename(self, key: CrateNum) -> String
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn implementations_of_trait(self, key: (CrateNum, DefId)) -> Lrc<Vec<DefId>>
[src]
pub fn implementations_of_trait(self, key: (CrateNum, DefId)) -> Lrc<Vec<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn all_trait_implementations(self, key: CrateNum) -> Lrc<Vec<DefId>>
[src]
pub fn all_trait_implementations(self, key: CrateNum) -> Lrc<Vec<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn dllimport_foreign_items(self, key: CrateNum) -> Lrc<FxHashSet<DefId>>
[src]
pub fn dllimport_foreign_items(self, key: CrateNum) -> Lrc<FxHashSet<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_dllimport_foreign_item(self, key: DefId) -> bool
[src]
pub fn is_dllimport_foreign_item(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_statically_included_foreign_item(self, key: DefId) -> bool
[src]
pub fn is_statically_included_foreign_item(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn native_library_kind(self, key: DefId) -> Option<NativeLibraryKind>
[src]
pub fn native_library_kind(self, key: DefId) -> Option<NativeLibraryKind>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn link_args(self, key: CrateNum) -> Lrc<Vec<String>>
[src]
pub fn link_args(self, key: CrateNum) -> Lrc<Vec<String>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn resolve_lifetimes(self, key: CrateNum) -> Lrc<ResolveLifetimes>
[src]
pub fn resolve_lifetimes(self, key: CrateNum) -> Lrc<ResolveLifetimes>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn named_region_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashMap<ItemLocalId, Region>>>
[src]
pub fn named_region_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashMap<ItemLocalId, Region>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_late_bound_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashSet<ItemLocalId>>>
[src]
pub fn is_late_bound_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashSet<ItemLocalId>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn object_lifetime_defaults_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashMap<ItemLocalId, Lrc<Vec<ObjectLifetimeDefault>>>>>
[src]
pub fn object_lifetime_defaults_map(
self,
key: DefIndex
) -> Option<Lrc<FxHashMap<ItemLocalId, Lrc<Vec<ObjectLifetimeDefault>>>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn visibility(self, key: DefId) -> Visibility
[src]
pub fn visibility(self, key: DefId) -> Visibility
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn dep_kind(self, key: CrateNum) -> DepKind
[src]
pub fn dep_kind(self, key: CrateNum) -> DepKind
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn crate_name(self, key: CrateNum) -> Symbol
[src]
pub fn crate_name(self, key: CrateNum) -> Symbol
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn item_children(self, key: DefId) -> Lrc<Vec<Export>>
[src]
pub fn item_children(self, key: DefId) -> Lrc<Vec<Export>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn extern_mod_stmt_cnum(self, key: DefId) -> Option<CrateNum>
[src]
pub fn extern_mod_stmt_cnum(self, key: DefId) -> Option<CrateNum>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn get_lang_items(self, key: CrateNum) -> Lrc<LanguageItems>
[src]
pub fn get_lang_items(self, key: CrateNum) -> Lrc<LanguageItems>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn defined_lang_items(self, key: CrateNum) -> Lrc<Vec<(DefId, usize)>>
[src]
pub fn defined_lang_items(self, key: CrateNum) -> Lrc<Vec<(DefId, usize)>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn missing_lang_items(self, key: CrateNum) -> Lrc<Vec<LangItem>>
[src]
pub fn missing_lang_items(self, key: CrateNum) -> Lrc<Vec<LangItem>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn visible_parent_map(self, key: CrateNum) -> Lrc<DefIdMap<DefId>>
[src]
pub fn visible_parent_map(self, key: CrateNum) -> Lrc<DefIdMap<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn missing_extern_crate_item(self, key: CrateNum) -> bool
[src]
pub fn missing_extern_crate_item(self, key: CrateNum) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn used_crate_source(self, key: CrateNum) -> Lrc<CrateSource>
[src]
pub fn used_crate_source(self, key: CrateNum) -> Lrc<CrateSource>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn postorder_cnums(self, key: CrateNum) -> Lrc<Vec<CrateNum>>
[src]
pub fn postorder_cnums(self, key: CrateNum) -> Lrc<Vec<CrateNum>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn freevars(self, key: DefId) -> Option<Lrc<Vec<Freevar>>>
[src]
pub fn freevars(self, key: DefId) -> Option<Lrc<Vec<Freevar>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn maybe_unused_trait_import(self, key: DefId) -> bool
[src]
pub fn maybe_unused_trait_import(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn maybe_unused_extern_crates(
self,
key: CrateNum
) -> Lrc<Vec<(DefId, Span)>>
[src]
pub fn maybe_unused_extern_crates(
self,
key: CrateNum
) -> Lrc<Vec<(DefId, Span)>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn stability_index(self, key: CrateNum) -> Lrc<Index<'tcx>>
[src]
pub fn stability_index(self, key: CrateNum) -> Lrc<Index<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn all_crate_nums(self, key: CrateNum) -> Lrc<Vec<CrateNum>>
[src]
pub fn all_crate_nums(self, key: CrateNum) -> Lrc<Vec<CrateNum>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn all_traits(self, key: CrateNum) -> Lrc<Vec<DefId>>
[src]
pub fn all_traits(self, key: CrateNum) -> Lrc<Vec<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
A vector of every trait accessible in the whole crate (i.e. including those from subcrates). This is used only for error reporting.
pub fn exported_symbols(
self,
key: CrateNum
) -> Arc<Vec<(ExportedSymbol<'tcx>, SymbolExportLevel)>>
[src]
pub fn exported_symbols(
self,
key: CrateNum
) -> Arc<Vec<(ExportedSymbol<'tcx>, SymbolExportLevel)>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn collect_and_partition_translation_items(
self,
key: CrateNum
) -> (Arc<DefIdSet>, Arc<Vec<Arc<CodegenUnit<'tcx>>>>)
[src]
pub fn collect_and_partition_translation_items(
self,
key: CrateNum
) -> (Arc<DefIdSet>, Arc<Vec<Arc<CodegenUnit<'tcx>>>>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_translated_item(self, key: DefId) -> bool
[src]
pub fn is_translated_item(self, key: DefId) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn codegen_unit(self, key: InternedString) -> Arc<CodegenUnit<'tcx>>
[src]
pub fn codegen_unit(self, key: InternedString) -> Arc<CodegenUnit<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn compile_codegen_unit(self, key: InternedString) -> Stats
[src]
pub fn compile_codegen_unit(self, key: InternedString) -> Stats
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn output_filenames(self, key: CrateNum) -> Arc<OutputFilenames>
[src]
pub fn output_filenames(self, key: CrateNum) -> Arc<OutputFilenames>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn erase_regions_ty(self, key: Ty<'tcx>) -> Ty<'tcx>
[src]
pub fn erase_regions_ty(self, key: Ty<'tcx>) -> Ty<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn normalize_projection_ty(
self,
key: CanonicalProjectionGoal<'tcx>
) -> Result<Lrc<Canonical<'tcx, QueryResult<'tcx, NormalizationResult<'tcx>>>>, NoSolution>
[src]
pub fn normalize_projection_ty(
self,
key: CanonicalProjectionGoal<'tcx>
) -> Result<Lrc<Canonical<'tcx, QueryResult<'tcx, NormalizationResult<'tcx>>>>, NoSolution>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Do not call this query directly: invoke normalize
instead.
pub fn normalize_ty_after_erasing_regions(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Ty<'tcx>
[src]
pub fn normalize_ty_after_erasing_regions(
self,
key: ParamEnvAnd<'tcx, Ty<'tcx>>
) -> Ty<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Do not call this query directly: invoke normalize_erasing_regions
instead.
pub fn dropck_outlives(
self,
key: CanonicalTyGoal<'tcx>
) -> Result<Lrc<Canonical<'tcx, QueryResult<'tcx, DropckOutlivesResult<'tcx>>>>, NoSolution>
[src]
pub fn dropck_outlives(
self,
key: CanonicalTyGoal<'tcx>
) -> Result<Lrc<Canonical<'tcx, QueryResult<'tcx, DropckOutlivesResult<'tcx>>>>, NoSolution>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Do not call this query directly: invoke infcx.at().dropck_outlives()
instead.
pub fn evaluate_obligation(
self,
key: CanonicalPredicateGoal<'tcx>
) -> Result<EvaluationResult, OverflowError>
[src]
pub fn evaluate_obligation(
self,
key: CanonicalPredicateGoal<'tcx>
) -> Result<EvaluationResult, OverflowError>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Do not call this query directly: invoke infcx.predicate_may_hold()
or
infcx.predicate_must_hold()
instead.
pub fn substitute_normalize_and_test_predicates(
self,
key: (DefId, &'tcx Substs<'tcx>)
) -> bool
[src]
pub fn substitute_normalize_and_test_predicates(
self,
key: (DefId, &'tcx Substs<'tcx>)
) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn target_features_whitelist(
self,
key: CrateNum
) -> Lrc<FxHashMap<String, Option<String>>>
[src]
pub fn target_features_whitelist(
self,
key: CrateNum
) -> Lrc<FxHashMap<String, Option<String>>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn instance_def_size_estimate(self, key: InstanceDef<'tcx>) -> usize
[src]
pub fn instance_def_size_estimate(self, key: InstanceDef<'tcx>) -> usize
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn features_query(self, key: CrateNum) -> Lrc<Features>
[src]
pub fn features_query(self, key: CrateNum) -> Lrc<Features>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn program_clauses_for(self, key: DefId) -> Clauses<'tcx>
[src]
pub fn program_clauses_for(self, key: DefId) -> Clauses<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn program_clauses_for_env(self, key: ParamEnv<'tcx>) -> Clauses<'tcx>
[src]
pub fn program_clauses_for_env(self, key: ParamEnv<'tcx>) -> Clauses<'tcx>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn wasm_custom_sections(self, key: CrateNum) -> Lrc<Vec<DefId>>
[src]
pub fn wasm_custom_sections(self, key: CrateNum) -> Lrc<Vec<DefId>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn wasm_import_module_map(
self,
key: CrateNum
) -> Lrc<FxHashMap<DefId, String>>
[src]
pub fn wasm_import_module_map(
self,
key: CrateNum
) -> Lrc<FxHashMap<DefId, String>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Methods from Deref<Target = TyCtxt<'a, 'gcx, 'tcx>>
pub fn require_lang_item(&self, lang_item: LangItem) -> DefId
[src]
pub fn require_lang_item(&self, lang_item: LangItem) -> DefId
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn liberate_late_bound_regions<T>(
&self,
all_outlive_scope: DefId,
value: &Binder<T>
) -> T where
T: TypeFoldable<'tcx>,
[src]
pub fn liberate_late_bound_regions<T>(
&self,
all_outlive_scope: DefId,
value: &Binder<T>
) -> T where
T: TypeFoldable<'tcx>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Replace any late-bound regions bound in value
with
free variants attached to all_outlive_scope
.
pub fn collect_constrained_late_bound_regions<T>(
&self,
value: &Binder<T>
) -> FxHashSet<BoundRegion> where
T: TypeFoldable<'tcx>,
[src]
pub fn collect_constrained_late_bound_regions<T>(
&self,
value: &Binder<T>
) -> FxHashSet<BoundRegion> where
T: TypeFoldable<'tcx>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns a set of all late-bound regions that are constrained
by value
, meaning that if we instantiate those LBR with
variables and equate value
with something else, those
variables will also be equated.
pub fn collect_referenced_late_bound_regions<T>(
&self,
value: &Binder<T>
) -> FxHashSet<BoundRegion> where
T: TypeFoldable<'tcx>,
[src]
pub fn collect_referenced_late_bound_regions<T>(
&self,
value: &Binder<T>
) -> FxHashSet<BoundRegion> where
T: TypeFoldable<'tcx>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns a set of all late-bound regions that appear in value
anywhere.
fn collect_late_bound_regions<T>(
&self,
value: &Binder<T>,
just_constraint: bool
) -> FxHashSet<BoundRegion> where
T: TypeFoldable<'tcx>,
[src]
fn collect_late_bound_regions<T>(
&self,
value: &Binder<T>,
just_constraint: bool
) -> FxHashSet<BoundRegion> where
T: TypeFoldable<'tcx>,
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn outlives_components(&self, ty0: Ty<'tcx>) -> Vec<Component<'tcx>>
[src]
pub fn outlives_components(&self, ty0: Ty<'tcx>) -> Vec<Component<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Returns all the things that must outlive 'a
for the condition
ty0: 'a
to hold. Note that ty0
must be a fully resolved type.
fn compute_components(&self, ty: Ty<'tcx>, out: &mut Vec<Component<'tcx>>)
[src]
fn compute_components(&self, ty: Ty<'tcx>, out: &mut Vec<Component<'tcx>>)
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
fn capture_components(&self, ty: Ty<'tcx>) -> Vec<Component<'tcx>>
[src]
fn capture_components(&self, ty: Ty<'tcx>) -> Vec<Component<'tcx>>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_static(&self, def_id: DefId) -> Option<Mutability>
[src]
pub fn is_static(&self, def_id: DefId) -> Option<Mutability>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Return whether the node pointed to by def_id is a static item, and its mutability
pub fn consider_optimizing<T: Fn() -> String>(&self, msg: T) -> bool
[src]
pub fn consider_optimizing<T: Fn() -> String>(&self, msg: T) -> bool
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
pub fn is_binop_lang_item(&self, def_id: DefId) -> Option<(BinOp, bool)>
[src]
pub fn is_binop_lang_item(&self, def_id: DefId) -> Option<(BinOp, bool)>
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
Due to missing llvm support for lowering 128 bit math to software emulation (on some targets), the lowering can be done in MIR.
This function only exists until said support is implemented.
pub fn borrowck_mode(&self) -> BorrowckMode
[src]
pub fn borrowck_mode(&self) -> BorrowckMode
🔬 This is a nightly-only experimental API. (rustc_private
)
this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via Cargo.toml
instead?
What mode(s) of borrowck should we run? AST? MIR? both?
(Also considers the #![feature(nll)]
setting.)
Trait Implementations
impl<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> Copy for TyCtxtAt<'a, 'gcx, 'tcx>
[src]
impl<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> Copy for TyCtxtAt<'a, 'gcx, 'tcx>
impl<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> Clone for TyCtxtAt<'a, 'gcx, 'tcx>
[src]
impl<'a, 'gcx: 'a + 'tcx, 'tcx: 'a> Clone for TyCtxtAt<'a, 'gcx, 'tcx>
fn clone(&self) -> TyCtxtAt<'a, 'gcx, 'tcx>
[src]
fn clone(&self) -> TyCtxtAt<'a, 'gcx, 'tcx>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
impl<'a, 'gcx, 'tcx> Deref for TyCtxtAt<'a, 'gcx, 'tcx>
[src]
impl<'a, 'gcx, 'tcx> Deref for TyCtxtAt<'a, 'gcx, 'tcx>