Expand description
Declares Rust’s target feature names for each target. Note that these are similar to but not always identical to LLVM’s feature names, and Rust adds some features that do not correspond to LLVM features at all.
Structs§
- The computed result of whether a feature can be enabled/disabled on the current target.
Enums§
- Stability information for target features.
Toggleability
is the type storing whether (un)stable features can be toggled: this is initially a function since it can depend onTarget
, but for stable hashing it needs to be something hashable to we have to make the type generic.
Constants§
- Features that require special handling when passing to LLVM: these are target-specific (i.e., must also be listed in the target-specific list below) but do not correspond to an LLVM target feature.
- Features that control behaviour of rustc, rather than the codegen. These exist globally and are not in the target-specific lists below.
- STABLE 🔒
Functions§
- When rustdoc is running, provide a list of all known features so that all their respective primitives may be documented.
- unstable 🔒
Type Aliases§
- Returns
Ok
if the toggle is allowed,Err
with an explanation of not. Thebool
indicates whether the feature is being enabled (true
) or disabled. Stability
whereallow_toggle
has already been computed.Stability
whereallow_toggle
has not been computed yet.