rustc_ty_utils

Module consts

Source

Structs§

IsThirPolymorphic 🔒

Functions§

check_binop 🔒
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.
destructure_const 🔒
Destructures array, ADT or tuple constants into the constants of their fields.
error 🔒
maybe_supported_error 🔒
provide 🔒
recurse_build 🔒
thir_abstract_const 🔒
Builds an abstract const, do not use this directly, but use AbstractConst::new instead.