mirror of https://github.com/rust-lang/rust.git
e8c698bb3b
mark some target features as 'forbidden' so they cannot be (un)set with -Ctarget-feature The context for this is https://github.com/rust-lang/rust/issues/116344: some target features change the way floats are passed between functions. Changing those target features is unsound as code compiled for the same target may now use different ABIs. So this introduces a new concept of "forbidden" target features (on top of the existing "stable " and "unstable" categories), and makes it a hard error to (un)set such a target feature. For now, the x86 and ARM feature `soft-float` is on that list. We'll have to make some effort to collect more relevant features, and similar features from other targets, but that can happen after the basic infrastructure for this landed. (These features are being collected in https://github.com/rust-lang/rust/issues/131799.) I've made this a warning for now to give people some time to speak up if this would break something. MCP: https://github.com/rust-lang/compiler-team/issues/780 |
||
---|---|---|
.. | ||
auxiliary | ||
aarch64-neon-works.rs | ||
asm-implied-features-issue-128125.rs | ||
feature-hierarchy.rs | ||
forbidden-target-feature-attribute.rs | ||
forbidden-target-feature-attribute.stderr | ||
forbidden-target-feature-cfg.rs | ||
forbidden-target-feature-flag-disable.rs | ||
forbidden-target-feature-flag-disable.stderr | ||
forbidden-target-feature-flag.rs | ||
forbidden-target-feature-flag.stderr | ||
gate.rs | ||
gate.stderr | ||
implicit-features-cli.rs | ||
implicit-features.rs | ||
implied-features.rs | ||
invalid-attribute.rs | ||
invalid-attribute.stderr | ||
missing-plusminus-2.rs | ||
missing-plusminus-2.stderr | ||
missing-plusminus.rs | ||
missing-plusminus.stderr | ||
no-llvm-leaks.rs | ||
rust-specific-name-no-warnings.rs | ||
similar-feature-suggestion.rs | ||
similar-feature-suggestion.stderr | ||
tied-features-cli.one.stderr | ||
tied-features-cli.rs | ||
tied-features-cli.three.stderr | ||
tied-features-cli.two.stderr | ||
tied-features-no-implication-1.paca.stderr | ||
tied-features-no-implication-1.pacg.stderr | ||
tied-features-no-implication-1.rs | ||
tied-features-no-implication.paca.stderr | ||
tied-features-no-implication.pacg.stderr | ||
tied-features-no-implication.rs | ||
tied-features.rs | ||
tied-features.stderr | ||
unstable-feature.rs | ||
unstable-feature.stderr | ||
using-target-feature-unstable.rs | ||
wasm-disable-simd.rs | ||
wasm-relaxed-simd.rs | ||
wasm-safe.rs |