about summary refs log tree commit diff
path: root/tests/ui/drop
diff options
context:
space:
mode:
authorest31 <MTest31@outlook.com>2025-03-16 06:14:36 +0100
committerest31 <MTest31@outlook.com>2025-04-18 15:57:29 +0200
commit162daaa2fa9e78dad0219eb995a7903d778f7801 (patch)
tree0decabde875898d3a029e064d28aa873a661a9fd /tests/ui/drop
parentd75f8cde2f54daa18f9b68e1b221e2d412855086 (diff)
downloadrust-162daaa2fa9e78dad0219eb995a7903d778f7801.tar.gz
rust-162daaa2fa9e78dad0219eb995a7903d778f7801.zip
Remove let_chains feature gate from even more tests
Diffstat (limited to 'tests/ui/drop')
-rw-r--r--tests/ui/drop/drop-order-comparisons.e2021.fixed2
-rw-r--r--tests/ui/drop/drop-order-comparisons.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/drop/drop-order-comparisons.e2021.fixed b/tests/ui/drop/drop-order-comparisons.e2021.fixed
index 78cf421cfbf..71158cb8062 100644
--- a/tests/ui/drop/drop-order-comparisons.e2021.fixed
+++ b/tests/ui/drop/drop-order-comparisons.e2021.fixed
@@ -24,7 +24,7 @@
 //@ [e2024] edition: 2024
 //@ run-pass
 
-#![feature(let_chains)]
+#![cfg_attr(e2021, feature(let_chains))]
 #![cfg_attr(e2021, warn(rust_2024_compatibility))]
 
 fn t_bindings() {
diff --git a/tests/ui/drop/drop-order-comparisons.rs b/tests/ui/drop/drop-order-comparisons.rs
index 78c75a9449f..0492b3a4db7 100644
--- a/tests/ui/drop/drop-order-comparisons.rs
+++ b/tests/ui/drop/drop-order-comparisons.rs
@@ -24,7 +24,7 @@
 //@ [e2024] edition: 2024
 //@ run-pass
 
-#![feature(let_chains)]
+#![cfg_attr(e2021, feature(let_chains))]
 #![cfg_attr(e2021, warn(rust_2024_compatibility))]
 
 fn t_bindings() {