about summary refs log tree commit diff
path: root/tests/ui/rust-2018
diff options
context:
space:
mode:
authorUrgau <urgau@numericable.fr>2024-04-07 00:33:37 +0200
committerUrgau <urgau@numericable.fr>2024-05-04 11:30:38 +0200
commitd4e26fbb5301b465a037c4d2ff54024ebd7f73d8 (patch)
treed88675775f0531d394efd16a5906d9440b30875f /tests/ui/rust-2018
parent517374150cfb48e907aec059f3639eba3a9c1e1c (diff)
downloadrust-d4e26fbb5301b465a037c4d2ff54024ebd7f73d8.tar.gz
rust-d4e26fbb5301b465a037c4d2ff54024ebd7f73d8.zip
compiletest: add enable-by-default check-cfg
Diffstat (limited to 'tests/ui/rust-2018')
-rw-r--r--tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed2
-rw-r--r--tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs2
2 files changed, 2 insertions, 2 deletions
diff --git a/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed b/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed
index f4506dd929e..878d1dc72cc 100644
--- a/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed
+++ b/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.fixed
@@ -4,7 +4,7 @@
 //@ edition:2018
 
 #![deny(rust_2018_idioms)]
-#![allow(dead_code)]
+#![allow(dead_code, unexpected_cfgs)]
 
 // The suggestion span should include the attribute.
 
diff --git a/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs b/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs
index 4f1cb71dc51..573942bd095 100644
--- a/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs
+++ b/tests/ui/rust-2018/issue-54400-unused-extern-crate-attr-span.rs
@@ -4,7 +4,7 @@
 //@ edition:2018
 
 #![deny(rust_2018_idioms)]
-#![allow(dead_code)]
+#![allow(dead_code, unexpected_cfgs)]
 
 // The suggestion span should include the attribute.