Module rustc_const_eval::util
source · Re-exports
pub use self::aggregate::expand_aggregate;
Modules
Common logic for borrowck use-after-move errors when moved into a
fn(self)
,
as well as errors when attempting to call a non-const function in a const
context.Routines to check for relations between fully inferred types.
Enums
Functions
Checks if the specified
local
is used as the self
parameter of a method call
in the provided BasicBlock
. If it is, then the DefId
of the called method is
returned.Returns
true
if this place is allowed to be less aligned
than its containing struct (because it is within a packed
struct).Returns whether the two types are equal up to subtyping.
Returns whether
src
is a subtype of dest
, i.e. src <: dest
.Determines if this type permits “raw” initialization by just transmuting some memory into an
instance of
T
.