Re-exports§
use rustc_type_ir as ir;🔒use crate::ty::TyCtxt;🔒
Modules§
Macros§
Structs§
- Char
TryFrom Scalar Int - Error returned when a conversion from ScalarInt to char fails.
- Const
Int - A type for representing any integer. Only used for printing.
- Expr
- LitTo
Const Input - Input argument for
tcx.lit_to_const. - Scalar
Int - The raw bytes of a simple value.
- ValTree
- An interned valtree. Use this rather than
ValTreeKind, whenever possible. - Value
- A type-level constant value.
Enums§
- Atomic
Ordering - An enum to represent the compiler-side view of
intrinsics::AtomicOrdering. This lives here because there’s a method in this file that needs it and it is entirely unclear where else to put this… - Expr
Kind - Simd
Align - An enum to represent the compiler-side view of
intrinsics::simd::SimdAlign.
Traits§
Functions§
- const_
lit_ matches_ ty - Checks whether a literal can be interpreted as a const of the given type.
Type Aliases§
- Alias
Const - Alias
Const Kind - Const
- Const
Kind - Const
ToVal Tree Result Ok(Err(ty))indicates the constant was fine, but the valtree couldn’t be constructed because the value contains something of typetythat is not valtree-compatible. The caller can then show an appropriate error; the query does not have the necessary context to give good user-facing errors for this case.