about summary refs log tree commit diff
path: root/tests/ui/feature-gates/soft-syntax-gates-without-errors.rs
diff options
context:
space:
mode:
authorclubby789 <jamie@hill-daniel.co.uk>2025-03-29 17:24:03 +0000
committerclubby789 <jamie@hill-daniel.co.uk>2025-04-03 21:41:58 +0000
commit303c1b45c29f8bb186a9a95cb56643d1aef773fa (patch)
treebb20ddf2dafd0064173d5d4164a351503453f9ea /tests/ui/feature-gates/soft-syntax-gates-without-errors.rs
parentd83f4153251ad3e85e975fa3e613378eba913c0b (diff)
downloadrust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.tar.gz
rust-303c1b45c29f8bb186a9a95cb56643d1aef773fa.zip
Use `cfg(false)` in UI tests
Diffstat (limited to 'tests/ui/feature-gates/soft-syntax-gates-without-errors.rs')
-rw-r--r--tests/ui/feature-gates/soft-syntax-gates-without-errors.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/tests/ui/feature-gates/soft-syntax-gates-without-errors.rs b/tests/ui/feature-gates/soft-syntax-gates-without-errors.rs
index 056c8fb04f4..72d0bf1ccd5 100644
--- a/tests/ui/feature-gates/soft-syntax-gates-without-errors.rs
+++ b/tests/ui/feature-gates/soft-syntax-gates-without-errors.rs
@@ -2,7 +2,7 @@
 // This file is used to test the behavior of the early-pass syntax warnings.
 // If macro syntax is stabilized, replace with a different unstable syntax.
 
-#[cfg(FALSE)]
+#[cfg(false)]
 macro b() {}
 //~^ WARN: `macro` is experimental
 //~| WARN: unstable syntax
@@ -11,13 +11,13 @@ macro_rules! identity {
     ($($x:tt)*) => ($($x)*);
 }
 
-#[cfg(FALSE)]
+#[cfg(false)]
 identity! {
     macro d() {} // No error
 }
 
 identity! {
-    #[cfg(FALSE)]
+    #[cfg(false)]
     macro e() {}
     //~^ WARN: `macro` is experimental
     //~| WARN: unstable syntax