about summary refs log tree commit diff
diff options
context:
space:
mode:
authorWANG Rui <wangrui@loongson.cn>2025-05-09 11:26:08 +0800
committerWANG Rui <wangrui@loongson.cn>2025-05-09 11:26:08 +0800
commit4a662c25dc0715a2ab5ef91dfb8cb869d1ae0d7c (patch)
treea19223e552c36bca17b5ee1972258b66b0d8ff97
parent72393a672d5ffc6f02bd10d71c37715bded3dbfd (diff)
downloadrust-4a662c25dc0715a2ab5ef91dfb8cb869d1ae0d7c.tar.gz
rust-4a662c25dc0715a2ab5ef91dfb8cb869d1ae0d7c.zip
Update target feature tests
-rw-r--r--tests/ui/target-feature/abi-required-target-feature-flag-disable.loongarch.stderr6
-rw-r--r--tests/ui/target-feature/abi-required-target-feature-flag-disable.rs2
2 files changed, 2 insertions, 6 deletions
diff --git a/tests/ui/target-feature/abi-required-target-feature-flag-disable.loongarch.stderr b/tests/ui/target-feature/abi-required-target-feature-flag-disable.loongarch.stderr
index 35102e0571f..a69544a34c9 100644
--- a/tests/ui/target-feature/abi-required-target-feature-flag-disable.loongarch.stderr
+++ b/tests/ui/target-feature/abi-required-target-feature-flag-disable.loongarch.stderr
@@ -3,9 +3,5 @@ warning: target feature `d` must be enabled to ensure that the ABI of the curren
    = 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>
 
-warning: unstable feature specified for `-Ctarget-feature`: `d`
-   |
-   = note: this feature is not stably supported; its behavior can change in the future
-
-warning: 2 warnings emitted
+warning: 1 warning emitted
 
diff --git a/tests/ui/target-feature/abi-required-target-feature-flag-disable.rs b/tests/ui/target-feature/abi-required-target-feature-flag-disable.rs
index c3ce05baa64..98723e99c36 100644
--- a/tests/ui/target-feature/abi-required-target-feature-flag-disable.rs
+++ b/tests/ui/target-feature/abi-required-target-feature-flag-disable.rs
@@ -24,4 +24,4 @@
 pub trait Sized {}
 
 //~? WARN must be enabled to ensure that the ABI of the current target can be implemented correctly
-//[x86,riscv,loongarch]~? WARN unstable feature specified for `-Ctarget-feature`
+//[x86,riscv]~? WARN unstable feature specified for `-Ctarget-feature`