Module rustc_ty_utils::ty [−][src]
Functions
Calculates the Sized
constraint.
Check if a function is async.
Don’t call this directly: use tcx.conservative_is_privately_uninhabited
instead.
If def_id
is an issue 33140 hack impl, returns its self type; otherwise, returns None
.
See ParamEnv
struct definition for details.
If the given DefId
describes an item belonging to a trait,
returns the DefId
of the trait that the trait item belongs to;
otherwise, returns None
.
Elaborate the environment.