Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 9 additions & 1 deletion compiler/rustc_codegen_ssa/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1219,6 +1219,10 @@ pub(crate) enum PossibleFeature<'a> {
#[note(
"it is still passed through to the codegen backend, but use of this feature might be unsound and the behavior of this feature can change in the future"
)]
#[note(
"this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!"
)]
#[note("for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>")]
pub(crate) struct UnknownCTargetFeature<'a> {
pub feature: &'a str,
#[subdiagnostic]
Expand All @@ -1228,6 +1232,10 @@ pub(crate) struct UnknownCTargetFeature<'a> {
#[derive(Diagnostic)]
#[diag("unstable feature specified for `-Ctarget-feature`: `{$feature}`")]
#[note("{$note}; its behavior can change in the future")]
#[note(
"this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!"
)]
#[note("for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>")]
pub(crate) struct UnstableCTargetFeature<'a> {
pub feature: &'a str,
pub note: &'a str,
Expand All @@ -1243,7 +1251,7 @@ pub(crate) struct InternalOnlyCTargetFeature<'a> {
"this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!"
)]
#[note(
"for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>"
"for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>"
)]
pub future_compat_note: bool,
}
Expand Down
2 changes: 1 addition & 1 deletion compiler/rustc_interface/src/diagnostics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ pub(crate) struct AbiRequiredTargetFeature<'a> {
"this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!"
)]
#[note(
"for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>"
"for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>"
)]
pub fcw: bool,
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: target feature `sse2` must be enabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 1 warning emitted

4 changes: 2 additions & 2 deletions tests/ui/abi/avr-sram.disable_sram.stderr
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
warning: target feature `sram` cannot be disabled with `-Ctarget-feature`: devices that have no SRAM are unsupported
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: target feature `sram` must be enabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 2 warnings emitted

2 changes: 1 addition & 1 deletion tests/ui/abi/avr-sram.no_sram.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: target feature `sram` must be enabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 1 warning emitted

6 changes: 4 additions & 2 deletions tests/ui/abi/riscv-discoverability-guidance.riscv32.stderr
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
warning: unstable feature specified for `-Ctarget-feature`: `unaligned-scalar-mem`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error[E0703]: invalid ABI: found `riscv-interrupt`
--> $DIR/riscv-discoverability-guidance.rs:19:8
--> $DIR/riscv-discoverability-guidance.rs:21:8
|
LL | extern "riscv-interrupt" fn isr() {}
| ^^^^^^^^^^^^^^^^^ invalid ABI
Expand All @@ -15,7 +17,7 @@ LL | extern "riscv-interrupt-m" fn isr() {}
| ++

error[E0703]: invalid ABI: found `riscv-interrupt-u`
--> $DIR/riscv-discoverability-guidance.rs:24:8
--> $DIR/riscv-discoverability-guidance.rs:26:8
|
LL | extern "riscv-interrupt-u" fn isr_U() {}
| ^^^^^^^^^^^^^^^^^^^ invalid ABI
Expand Down
6 changes: 4 additions & 2 deletions tests/ui/abi/riscv-discoverability-guidance.riscv64.stderr
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
warning: unstable feature specified for `-Ctarget-feature`: `unaligned-scalar-mem`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error[E0703]: invalid ABI: found `riscv-interrupt`
--> $DIR/riscv-discoverability-guidance.rs:19:8
--> $DIR/riscv-discoverability-guidance.rs:21:8
|
LL | extern "riscv-interrupt" fn isr() {}
| ^^^^^^^^^^^^^^^^^ invalid ABI
Expand All @@ -15,7 +17,7 @@ LL | extern "riscv-interrupt-m" fn isr() {}
| ++

error[E0703]: invalid ABI: found `riscv-interrupt-u`
--> $DIR/riscv-discoverability-guidance.rs:24:8
--> $DIR/riscv-discoverability-guidance.rs:26:8
|
LL | extern "riscv-interrupt-u" fn isr_U() {}
| ^^^^^^^^^^^^^^^^^^^ invalid ABI
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/abi/riscv-discoverability-guidance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@

//~? WARN unstable feature specified for `-Ctarget-feature`
//~? NOTE this feature is not stably supported; its behavior can change in the future
//~? NOTE previously accepted
//~? NOTE for more information, see issue

extern crate minicore;
use minicore::*;
Expand Down
4 changes: 2 additions & 2 deletions tests/ui/abi/s390x-softfloat-gate.disable-softfloat.stderr
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
warning: target feature `soft-float` cannot be enabled with `-Ctarget-feature`: unsupported ABI-configuration feature
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: target feature `soft-float` must be disabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 2 warnings emitted

2 changes: 1 addition & 1 deletion tests/ui/abi/s390x-softfloat-gate.enable-softfloat.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: target feature `vector` must be disabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 1 warning emitted

4 changes: 2 additions & 2 deletions tests/ui/abi/simd-abi-checks-s390x.z13_soft_float.stderr
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
warning: target feature `soft-float` cannot be enabled with `-Ctarget-feature`: unsupported ABI-configuration feature
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: target feature `soft-float` must be disabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: this function definition requires the `vector` target feature, which is not enabled
--> $DIR/simd-abi-checks-s390x.rs:33:1
Expand Down
4 changes: 3 additions & 1 deletion tests/ui/abi/sparcv8plus.sparc_cpu_v9_feature_v8plus.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
warning: unstable feature specified for `-Ctarget-feature`: `v8plus`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: target feature `v8plus` must be disabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: +v8plus,+v9
--> $DIR/sparcv8plus.rs:35:1
Expand Down
4 changes: 3 additions & 1 deletion tests/ui/abi/sparcv8plus.sparc_feature_v8plus.stderr
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
warning: unstable feature specified for `-Ctarget-feature`: `v8plus`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: target feature `v8plus` must be disabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: +v8plus,-v9 (FIXME)
--> $DIR/sparcv8plus.rs:40:1
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/asm/hexagon-register-pairs.stderr
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
warning: unstable feature specified for `-Ctarget-feature`: `hvx-length128b`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: avoid using named labels in inline assembly
--> $DIR/hexagon-register-pairs.rs:32:15
Expand Down
2 changes: 2 additions & 0 deletions tests/ui/asm/hexagon/bad-reg.stderr
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
warning: unstable feature specified for `-Ctarget-feature`: `hvx-length128b`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: invalid register `r19`: r19 is used internally by LLVM and cannot be used as an operand for inline asm
--> $DIR/bad-reg.rs:20:18
Expand Down
6 changes: 6 additions & 0 deletions tests/ui/asm/mips/reg-conflict.mips32.stderr
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
warning: unknown and unstable feature specified for `-Ctarget-feature`: `mips32r5`
|
= note: it is still passed through to the codegen backend, but use of this feature might be unsound and the behavior of this feature can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>
= help: consider filing a feature request

warning: unstable feature specified for `-Ctarget-feature`: `fp64`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: unstable feature specified for `-Ctarget-feature`: `msa`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: register `$f4` conflicts with register `$w4`
--> $DIR/reg-conflict.rs:28:33
Expand Down
4 changes: 4 additions & 0 deletions tests/ui/asm/mips/reg-conflict.mips32r6.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
warning: unstable feature specified for `-Ctarget-feature`: `fp64`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: unstable feature specified for `-Ctarget-feature`: `msa`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: register `$f4` conflicts with register `$w4`
--> $DIR/reg-conflict.rs:28:33
Expand Down
6 changes: 6 additions & 0 deletions tests/ui/asm/mips/reg-conflict.mips64.stderr
Original file line number Diff line number Diff line change
@@ -1,15 +1,21 @@
warning: unknown and unstable feature specified for `-Ctarget-feature`: `mips64r5`
|
= note: it is still passed through to the codegen backend, but use of this feature might be unsound and the behavior of this feature can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>
= help: consider filing a feature request

warning: unstable feature specified for `-Ctarget-feature`: `fp64`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: unstable feature specified for `-Ctarget-feature`: `msa`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: register `$f4` conflicts with register `$w4`
--> $DIR/reg-conflict.rs:28:33
Expand Down
4 changes: 4 additions & 0 deletions tests/ui/asm/mips/reg-conflict.mips64r6.stderr
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
warning: unstable feature specified for `-Ctarget-feature`: `fp64`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: unstable feature specified for `-Ctarget-feature`: `msa`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

error: register `$f4` conflicts with register `$w4`
--> $DIR/reg-conflict.rs:28:33
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
warning: unstable feature specified for `-Ctarget-feature`: `d`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 2 warnings emitted

Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
warning: target feature `soft-float` cannot be enabled with `-Ctarget-feature`: use a soft-float target instead
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: target feature `soft-float` must be disabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 2 warnings emitted

Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
warning: unstable feature specified for `-Ctarget-feature`: `x87`
|
= note: this feature is not stably supported; its behavior can change in the future
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 1 warning emitted

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: target feature `neon` must be enabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 1 warning emitted

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
warning: target feature `d` must be enabled to ensure that the ABI of the current target can be implemented correctly
|
= note: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #116344 <https://github.com/rust-lang/rust/issues/116344>
= note: for more information, see issue #162235 <https://github.com/rust-lang/rust/issues/162235>

warning: 1 warning emitted

Loading
Loading