Skip to content

Commit c73687f

Browse files
committed
give the abi-relevant target feature tests better names
1 parent 21b2dc1 commit c73687f

11 files changed

+6
-1
lines changed

tests/ui/target-feature/forbidden-hardfloat-target-feature-attribute.stderr renamed to tests/ui/target-feature/abi-incompatible-target-feature-attribute.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
error: target feature `d` cannot be enabled with `#[target_feature]`: this feature is incompatible with the target ABI
2-
--> $DIR/forbidden-hardfloat-target-feature-attribute.rs:10:18
2+
--> $DIR/abi-incompatible-target-feature-attribute.rs:10:18
33
|
44
LL | #[target_feature(enable = "d")]
55
| ^^^^^^^^^^^^

tests/ui/target-feature/allowed-softfloat-target-feature-flag-disable.rs renamed to tests/ui/target-feature/abi-irrelevant-target-feature-flag-disable.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
//! `x87` is a required target feature on some x86 targets, but not on this one as this one
2+
//! uses soft-floats. So ensure disabling the target feature here (which is a NOP) does
3+
//! not trigger a warning.
14
//@ compile-flags: --target=x86_64-unknown-none --crate-type=lib
25
//@ needs-llvm-components: x86
36
//@ compile-flags: -Ctarget-feature=-x87

tests/ui/target-feature/allowed-softfloat-target-feature-attribute.rs renamed to tests/ui/target-feature/abi-required-target-feature-attribute.rs

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
//! Enabling a target feature that is anyway required changes nothing, so this is allowed
2+
//! for `#[target_feature]`.
13
//@ compile-flags: --target=x86_64-unknown-none --crate-type=lib
24
//@ needs-llvm-components: x86
35
//@ build-pass

0 commit comments

Comments
 (0)