Skip to content

Commit c2571ea

Browse files
committed
rustc: riscv: adapt target_feature tests
1 parent d2c767f commit c2571ea

5 files changed

Lines changed: 5 additions & 5 deletions

tests/ui/target-feature/abi-incompatible-target-feature-attribute.riscv.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: target feature `d` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
22
--> $DIR/abi-incompatible-target-feature-attribute.rs:17:90
33
|
4-
LL | #[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "d"))]
4+
LL | #[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "v"))]
55
| ^^^^^^^^^^^^
66

77
error: aborting due to 1 previous error

tests/ui/target-feature/abi-incompatible-target-feature-attribute.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,6 @@
1414
extern crate minicore;
1515
use minicore::*;
1616

17-
#[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "d"))]
17+
#[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "v"))]
1818
//~^ERROR: cannot be enabled with
1919
pub unsafe fn my_fun() {}

tests/ui/target-feature/abi-incompatible-target-feature-attribute.x86.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
error: target feature `soft-float` cannot be enabled with `#[target_feature]`: use a soft-float target instead
22
--> $DIR/abi-incompatible-target-feature-attribute.rs:17:32
33
|
4-
LL | #[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "d"))]
4+
LL | #[cfg_attr(x86, target_feature(enable = "soft-float"))] #[cfg_attr(riscv, target_feature(enable = "v"))]
55
| ^^^^^^^^^^^^^^^^^^^^^
66

77
error: aborting due to 1 previous error

tests/ui/target-feature/abi-incompatible-target-feature-flag-enable.riscv.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
warning: unstable feature specified for `-Ctarget-feature`: `d`
22
|
3-
= note: this feature is not stably supported; its behavior can change in the future
3+
= note: this feature is allowed in cfg but unstable otherwise; its behavior can change in the future
44

55
warning: target feature `d` must be disabled to ensure that the ABI of the current target can be implemented correctly
66
|

tests/ui/target-feature/abi-required-target-feature-flag-disable.riscv.stderr

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
warning: unstable feature specified for `-Ctarget-feature`: `d`
22
|
3-
= note: this feature is not stably supported; its behavior can change in the future
3+
= note: this feature is allowed in cfg but unstable otherwise; its behavior can change in the future
44

55
warning: target feature `d` must be enabled to ensure that the ABI of the current target can be implemented correctly
66
|

0 commit comments

Comments
 (0)