Module rustc_ty_utils::consts

source ·

Structs

Functions

We do not allow all binary operations in abstract consts, so filter disallowed ones.
check_unop 🔒
While we currently allow all unary operations, we still want to explicitly guard against future changes here.
Destructures array, ADT or tuple constants into the constants of their fields.
error 🔒
Builds an abstract const, do not use this directly, but use AbstractConst::new instead.