[−][src]Trait rustc_typeck::astconv::AstConv
🔬 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?
Required Methods
fn tcx<'a>(&'a self) -> 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?
fn get_type_parameter_bounds(
&self,
span: Span,
def_id: DefId
) -> GenericPredicates<'tcx>
&self,
span: Span,
def_id: 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?
Returns the set of bounds in scope for the type parameter with the given id.
fn re_infer(
&self,
span: Span,
_def: Option<&GenericParamDef>
) -> Option<Region<'tcx>>
&self,
span: Span,
_def: Option<&GenericParamDef>
) -> Option<Region<'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?
What lifetime should we use when a lifetime is omitted (and not elided)?
fn ty_infer(&self, span: Span) -> 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?
What type should we use when a type is omitted?
fn projected_ty_from_poly_trait_ref(
&self,
span: Span,
item_def_id: DefId,
poly_trait_ref: PolyTraitRef<'tcx>
) -> Ty<'tcx>
&self,
span: Span,
item_def_id: DefId,
poly_trait_ref: PolyTraitRef<'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?
Projecting an associated type from a (potentially) higher-ranked trait reference is more complicated, because of the possibility of late-bound regions appearing in the associated type binding. This is not legal in function signatures for that reason. In a function body, we can always handle it because we can use inference variables to remove the late-bound regions.
fn normalize_ty(&self, span: Span, ty: 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?
Normalize an associated type coming from the user.
fn set_tainted_by_errors(&self)
🔬 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?
Invoked when we encounter an error from some prior pass (e.g. resolve) that is translated into a ty-error. This is used to help suppress derived errors typeck might otherwise report.
fn record_ty(&self, hir_id: HirId, ty: Ty<'tcx>, 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?
Provided Methods
fn ty_infer_for_def(&self, _def: &GenericParamDef, span: Span) -> 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?
Same as ty_infer, but with a known type parameter definition.
Methods
impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx> + 'o
[src]
impl<'o, 'gcx: 'tcx, 'tcx> AstConv<'gcx, 'tcx> + 'o
pub fn ast_region_to_region(
&self,
lifetime: &Lifetime,
def: Option<&GenericParamDef>
) -> Region<'tcx>
[src]
pub fn ast_region_to_region(
&self,
lifetime: &Lifetime,
def: Option<&GenericParamDef>
) -> Region<'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 ast_path_substs_for_ty(
&self,
span: Span,
def_id: DefId,
item_segment: &PathSegment
) -> &'tcx Substs<'tcx>
[src]
pub fn ast_path_substs_for_ty(
&self,
span: Span,
def_id: DefId,
item_segment: &PathSegment
) -> &'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?
Given a path path
that refers to an item I
with the declared generics decl_generics
,
returns an appropriate set of substitutions for this particular reference to I
.
fn check_impl_trait(
tcx: TyCtxt,
span: Span,
seg: &PathSegment,
generics: &Generics
) -> bool
[src]
fn check_impl_trait(
tcx: TyCtxt,
span: Span,
seg: &PathSegment,
generics: &Generics
) -> 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?
Report error if there is an explicit type parameter when using impl Trait
.
pub fn check_generic_arg_count_for_call(
tcx: TyCtxt,
span: Span,
def: &Generics,
seg: &PathSegment,
is_method_call: bool
) -> bool
[src]
pub fn check_generic_arg_count_for_call(
tcx: TyCtxt,
span: Span,
def: &Generics,
seg: &PathSegment,
is_method_call: bool
) -> 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?
Check that the correct number of generic arguments have been provided. Used specifically for function calls.
fn check_generic_arg_count(
tcx: TyCtxt,
span: Span,
def: &Generics,
args: &GenericArgs,
position: GenericArgPosition,
has_self: bool,
infer_types: bool
) -> bool
[src]
fn check_generic_arg_count(
tcx: TyCtxt,
span: Span,
def: &Generics,
args: &GenericArgs,
position: GenericArgPosition,
has_self: bool,
infer_types: bool
) -> 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?
Check that the correct number of generic arguments have been provided. This is used both for datatypes and function calls.
pub fn create_substs_for_generic_args<'a, 'b, A, P, I>(
tcx: TyCtxt<'a, 'gcx, 'tcx>,
def_id: DefId,
parent_substs: &[Kind<'tcx>],
has_self: bool,
self_ty: Option<Ty<'tcx>>,
args_for_def_id: A,
provided_kind: P,
inferred_kind: I
) -> &'tcx Substs<'tcx> where
A: Fn(DefId) -> (Option<&'b GenericArgs>, bool),
P: Fn(&GenericParamDef, &GenericArg) -> Kind<'tcx>,
I: Fn(Option<&[Kind<'tcx>]>, &GenericParamDef, bool) -> Kind<'tcx>,
[src]
pub fn create_substs_for_generic_args<'a, 'b, A, P, I>(
tcx: TyCtxt<'a, 'gcx, 'tcx>,
def_id: DefId,
parent_substs: &[Kind<'tcx>],
has_self: bool,
self_ty: Option<Ty<'tcx>>,
args_for_def_id: A,
provided_kind: P,
inferred_kind: I
) -> &'tcx Substs<'tcx> where
A: Fn(DefId) -> (Option<&'b GenericArgs>, bool),
P: Fn(&GenericParamDef, &GenericArg) -> Kind<'tcx>,
I: Fn(Option<&[Kind<'tcx>]>, &GenericParamDef, bool) -> Kind<'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?
Creates the relevant generic argument substitutions corresponding to a set of generic parameters.
fn create_substs_for_ast_path(
&self,
span: Span,
def_id: DefId,
generic_args: &GenericArgs,
infer_types: bool,
self_ty: Option<Ty<'tcx>>
) -> (&'tcx Substs<'tcx>, Vec<ConvertedBinding<'tcx>>)
[src]
fn create_substs_for_ast_path(
&self,
span: Span,
def_id: DefId,
generic_args: &GenericArgs,
infer_types: bool,
self_ty: Option<Ty<'tcx>>
) -> (&'tcx Substs<'tcx>, Vec<ConvertedBinding<'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?
Given the type/region arguments provided to some path (along with an implicit Self, if this is a trait reference) returns the complete set of substitutions. This may involve applying defaulted type parameters.
Note that the type listing given here is exactly what the user provided.
pub fn instantiate_mono_trait_ref(
&self,
trait_ref: &TraitRef,
self_ty: Ty<'tcx>
) -> TraitRef<'tcx>
[src]
pub fn instantiate_mono_trait_ref(
&self,
trait_ref: &TraitRef,
self_ty: Ty<'tcx>
) -> 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?
Instantiates the path for the given trait reference, assuming that it's bound to a valid trait type. Returns the def_id for the defining trait. The type cannot be a type other than a trait type.
If the projections
argument is None
, then assoc type bindings like Foo<T=X>
are disallowed. Otherwise, they are pushed onto the vector given.
fn trait_def_id(&self, trait_ref: &TraitRef) -> DefId
[src]
fn trait_def_id(&self, trait_ref: &TraitRef) -> 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?
Get the DefId of the given trait ref. It must actually be a trait.
pub(super) fn instantiate_poly_trait_ref_inner(
&self,
trait_ref: &TraitRef,
self_ty: Ty<'tcx>,
poly_projections: &mut Vec<PolyProjectionPredicate<'tcx>>,
speculative: bool
) -> PolyTraitRef<'tcx>
[src]
pub(super) fn instantiate_poly_trait_ref_inner(
&self,
trait_ref: &TraitRef,
self_ty: Ty<'tcx>,
poly_projections: &mut Vec<PolyProjectionPredicate<'tcx>>,
speculative: bool
) -> PolyTraitRef<'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 given trait_ref
must actually be trait.
pub fn instantiate_poly_trait_ref(
&self,
poly_trait_ref: &PolyTraitRef,
self_ty: Ty<'tcx>,
poly_projections: &mut Vec<PolyProjectionPredicate<'tcx>>
) -> PolyTraitRef<'tcx>
[src]
pub fn instantiate_poly_trait_ref(
&self,
poly_trait_ref: &PolyTraitRef,
self_ty: Ty<'tcx>,
poly_projections: &mut Vec<PolyProjectionPredicate<'tcx>>
) -> PolyTraitRef<'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 ast_path_to_mono_trait_ref(
&self,
span: Span,
trait_def_id: DefId,
self_ty: Ty<'tcx>,
trait_segment: &PathSegment
) -> TraitRef<'tcx>
[src]
fn ast_path_to_mono_trait_ref(
&self,
span: Span,
trait_def_id: DefId,
self_ty: Ty<'tcx>,
trait_segment: &PathSegment
) -> 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?
fn create_substs_for_ast_trait_ref(
&self,
span: Span,
trait_def_id: DefId,
self_ty: Ty<'tcx>,
trait_segment: &PathSegment
) -> (&'tcx Substs<'tcx>, Vec<ConvertedBinding<'tcx>>)
[src]
fn create_substs_for_ast_trait_ref(
&self,
span: Span,
trait_def_id: DefId,
self_ty: Ty<'tcx>,
trait_segment: &PathSegment
) -> (&'tcx Substs<'tcx>, Vec<ConvertedBinding<'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 trait_defines_associated_type_named(
&self,
trait_def_id: DefId,
assoc_name: Ident
) -> bool
[src]
fn trait_defines_associated_type_named(
&self,
trait_def_id: DefId,
assoc_name: Ident
) -> 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?
fn ast_type_binding_to_poly_projection_predicate(
&self,
ref_id: NodeId,
trait_ref: PolyTraitRef<'tcx>,
binding: &ConvertedBinding<'tcx>,
speculative: bool,
dup_bindings: &mut FxHashMap<DefId, Span>
) -> Result<PolyProjectionPredicate<'tcx>, ErrorReported>
[src]
fn ast_type_binding_to_poly_projection_predicate(
&self,
ref_id: NodeId,
trait_ref: PolyTraitRef<'tcx>,
binding: &ConvertedBinding<'tcx>,
speculative: bool,
dup_bindings: &mut FxHashMap<DefId, Span>
) -> Result<PolyProjectionPredicate<'tcx>, 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?
fn ast_path_to_ty(
&self,
span: Span,
did: DefId,
item_segment: &PathSegment
) -> Ty<'tcx>
[src]
fn ast_path_to_ty(
&self,
span: Span,
did: DefId,
item_segment: &PathSegment
) -> 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?
fn trait_ref_to_existential(
&self,
trait_ref: TraitRef<'tcx>
) -> ExistentialTraitRef<'tcx>
[src]
fn trait_ref_to_existential(
&self,
trait_ref: TraitRef<'tcx>
) -> ExistentialTraitRef<'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?
Transform a PolyTraitRef into a PolyExistentialTraitRef by removing the dummy Self type (TRAIT_OBJECT_DUMMY_SELF).
fn conv_object_ty_poly_trait_ref(
&self,
span: Span,
trait_bounds: &[PolyTraitRef],
lifetime: &Lifetime
) -> Ty<'tcx>
[src]
fn conv_object_ty_poly_trait_ref(
&self,
span: Span,
trait_bounds: &[PolyTraitRef],
lifetime: &Lifetime
) -> 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?
fn report_ambiguous_associated_type(
&self,
span: Span,
type_str: &str,
trait_str: &str,
name: &str
)
[src]
fn report_ambiguous_associated_type(
&self,
span: Span,
type_str: &str,
trait_str: &str,
name: &str
)
🔬 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 find_bound_for_assoc_item(
&self,
ty_param_def_id: DefId,
assoc_name: Ident,
span: Span
) -> Result<PolyTraitRef<'tcx>, ErrorReported>
[src]
fn find_bound_for_assoc_item(
&self,
ty_param_def_id: DefId,
assoc_name: Ident,
span: Span
) -> Result<PolyTraitRef<'tcx>, 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?
fn one_bound_for_assoc_type<I>(
&self,
bounds: I,
ty_param_name: &str,
assoc_name: Ident,
span: Span
) -> Result<PolyTraitRef<'tcx>, ErrorReported> where
I: Iterator<Item = PolyTraitRef<'tcx>>,
[src]
fn one_bound_for_assoc_type<I>(
&self,
bounds: I,
ty_param_name: &str,
assoc_name: Ident,
span: Span
) -> Result<PolyTraitRef<'tcx>, ErrorReported> where
I: Iterator<Item = PolyTraitRef<'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 associated_path_def_to_ty(
&self,
ref_id: NodeId,
span: Span,
ty: Ty<'tcx>,
ty_path_def: Def,
item_segment: &PathSegment
) -> (Ty<'tcx>, Def)
[src]
pub fn associated_path_def_to_ty(
&self,
ref_id: NodeId,
span: Span,
ty: Ty<'tcx>,
ty_path_def: Def,
item_segment: &PathSegment
) -> (Ty<'tcx>, 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?
fn qpath_to_ty(
&self,
span: Span,
opt_self_ty: Option<Ty<'tcx>>,
item_def_id: DefId,
trait_segment: &PathSegment,
item_segment: &PathSegment
) -> Ty<'tcx>
[src]
fn qpath_to_ty(
&self,
span: Span,
opt_self_ty: Option<Ty<'tcx>>,
item_def_id: DefId,
trait_segment: &PathSegment,
item_segment: &PathSegment
) -> 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 prohibit_generics<'a, T: IntoIterator<Item = &'a PathSegment>>(
&self,
segments: T
)
[src]
pub fn prohibit_generics<'a, T: IntoIterator<Item = &'a PathSegment>>(
&self,
segments: T
)
🔬 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 prohibit_assoc_ty_binding(tcx: TyCtxt, span: Span)
[src]
pub fn prohibit_assoc_ty_binding(tcx: TyCtxt, 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?
pub fn def_to_ty(
&self,
opt_self_ty: Option<Ty<'tcx>>,
path: &Path,
permit_variants: bool
) -> Ty<'tcx>
[src]
pub fn def_to_ty(
&self,
opt_self_ty: Option<Ty<'tcx>>,
path: &Path,
permit_variants: bool
) -> 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 ast_ty_to_ty(&self, ast_ty: &Ty) -> Ty<'tcx>
[src]
pub fn ast_ty_to_ty(&self, ast_ty: &Ty) -> 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?
Parses the programmer's textual representation of a type into our internal notion of a type.
pub fn impl_trait_ty_to_ty(
&self,
def_id: DefId,
lifetimes: &[GenericArg]
) -> Ty<'tcx>
[src]
pub fn impl_trait_ty_to_ty(
&self,
def_id: DefId,
lifetimes: &[GenericArg]
) -> 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 ty_of_arg(&self, ty: &Ty, expected_ty: Option<Ty<'tcx>>) -> Ty<'tcx>
[src]
pub fn ty_of_arg(&self, ty: &Ty, expected_ty: Option<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 ty_of_fn(
&self,
unsafety: Unsafety,
abi: Abi,
decl: &FnDecl
) -> PolyFnSig<'tcx>
[src]
pub fn ty_of_fn(
&self,
unsafety: Unsafety,
abi: Abi,
decl: &FnDecl
) -> 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?
fn compute_object_lifetime_bound(
&self,
span: Span,
existential_predicates: Binder<&'tcx List<ExistentialPredicate<'tcx>>>
) -> Option<Region<'tcx>>
[src]
fn compute_object_lifetime_bound(
&self,
span: Span,
existential_predicates: Binder<&'tcx List<ExistentialPredicate<'tcx>>>
) -> Option<Region<'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?
Given the bounds on an object, determines what single region bound (if any) we can
use to summarize this type. The basic idea is that we will use the bound the user
provided, if they provided one, and otherwise search the supertypes of trait bounds
for region bounds. It may be that we can derive no bound at all, in which case
we return None
.
Implementors
impl<'a, 'gcx, 'tcx> AstConv<'gcx, 'tcx> for FnCtxt<'a, 'gcx, 'tcx>
[src]
impl<'a, 'gcx, 'tcx> AstConv<'gcx, 'tcx> for FnCtxt<'a, 'gcx, 'tcx>
fn tcx<'b>(&'b self) -> TyCtxt<'b, 'gcx, 'tcx>
[src]
fn tcx<'b>(&'b self) -> TyCtxt<'b, '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?
fn get_type_parameter_bounds(
&self,
_: Span,
def_id: DefId
) -> GenericPredicates<'tcx>
[src]
fn get_type_parameter_bounds(
&self,
_: Span,
def_id: 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?
fn re_infer(
&self,
span: Span,
def: Option<&GenericParamDef>
) -> Option<Region<'tcx>>
[src]
fn re_infer(
&self,
span: Span,
def: Option<&GenericParamDef>
) -> Option<Region<'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 ty_infer(&self, span: Span) -> Ty<'tcx>
[src]
fn ty_infer(&self, span: Span) -> 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?
fn ty_infer_for_def(
&self,
ty_param_def: &GenericParamDef,
span: Span
) -> Ty<'tcx>
[src]
fn ty_infer_for_def(
&self,
ty_param_def: &GenericParamDef,
span: Span
) -> 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?
fn projected_ty_from_poly_trait_ref(
&self,
span: Span,
item_def_id: DefId,
poly_trait_ref: PolyTraitRef<'tcx>
) -> Ty<'tcx>
[src]
fn projected_ty_from_poly_trait_ref(
&self,
span: Span,
item_def_id: DefId,
poly_trait_ref: PolyTraitRef<'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?
fn normalize_ty(&self, span: Span, ty: Ty<'tcx>) -> Ty<'tcx>
[src]
fn normalize_ty(&self, span: Span, ty: 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?
fn set_tainted_by_errors(&self)
[src]
fn set_tainted_by_errors(&self)
🔬 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 record_ty(&self, hir_id: HirId, ty: Ty<'tcx>, _span: Span)
[src]
fn record_ty(&self, hir_id: HirId, ty: Ty<'tcx>, _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?
impl<'a, 'tcx> AstConv<'tcx, 'tcx> for ItemCtxt<'a, 'tcx>
[src]
impl<'a, 'tcx> AstConv<'tcx, 'tcx> for ItemCtxt<'a, 'tcx>
fn tcx<'b>(&'b self) -> TyCtxt<'b, 'tcx, 'tcx>
[src]
fn tcx<'b>(&'b self) -> TyCtxt<'b, 'tcx, '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 get_type_parameter_bounds(
&self,
span: Span,
def_id: DefId
) -> GenericPredicates<'tcx>
[src]
fn get_type_parameter_bounds(
&self,
span: Span,
def_id: 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?
fn re_infer(
&self,
_span: Span,
_def: Option<&GenericParamDef>
) -> Option<Region<'tcx>>
[src]
fn re_infer(
&self,
_span: Span,
_def: Option<&GenericParamDef>
) -> Option<Region<'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 ty_infer(&self, span: Span) -> Ty<'tcx>
[src]
fn ty_infer(&self, span: Span) -> 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?
fn projected_ty_from_poly_trait_ref(
&self,
span: Span,
item_def_id: DefId,
poly_trait_ref: PolyTraitRef<'tcx>
) -> Ty<'tcx>
[src]
fn projected_ty_from_poly_trait_ref(
&self,
span: Span,
item_def_id: DefId,
poly_trait_ref: PolyTraitRef<'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?
fn normalize_ty(&self, _span: Span, ty: Ty<'tcx>) -> Ty<'tcx>
[src]
fn normalize_ty(&self, _span: Span, ty: 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?
fn set_tainted_by_errors(&self)
[src]
fn set_tainted_by_errors(&self)
🔬 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 record_ty(&self, _hir_id: HirId, _ty: Ty<'tcx>, _span: Span)
[src]
fn record_ty(&self, _hir_id: HirId, _ty: Ty<'tcx>, _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?
fn ty_infer_for_def(&self, _def: &GenericParamDef, span: Span) -> Ty<'tcx>
[src]
fn ty_infer_for_def(&self, _def: &GenericParamDef, span: Span) -> 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?