about summary refs log tree commit diff
diff options
context:
space:
mode:
authorCaleb Cartwright <caleb.cartwright@outlook.com>2021-05-04 18:06:53 -0500
committerCaleb Cartwright <calebcartwright@users.noreply.github.com>2021-05-04 18:38:22 -0500
commit2a3635d5d1218c726ff58af4bc35418836143f69 (patch)
tree256dd56bf4227abb67da63c51bca007dea4cf2f2
parentf87414729fc4f18484ab6456701b4a430e5aafc1 (diff)
downloadrust-2a3635d5d1218c726ff58af4bc35418836143f69.tar.gz
rust-2a3635d5d1218c726ff58af4bc35418836143f69.zip
tests: remove snippets with inner attrs on non-block expressions
-rw-r--r--rust-toolchain2
-rw-r--r--tests/source/match.rs2
-rw-r--r--tests/target/issue-3592.rs13
-rw-r--r--tests/target/match.rs1
4 files changed, 2 insertions, 16 deletions
diff --git a/rust-toolchain b/rust-toolchain
index d0654ca157b..b7d71e79b1b 100644
--- a/rust-toolchain
+++ b/rust-toolchain
@@ -1,3 +1,3 @@
 [toolchain]
-channel = "nightly-2021-05-01"
+channel = "nightly-2021-05-04"
 components = ["rustc-dev"]
diff --git a/tests/source/match.rs b/tests/source/match.rs
index f54082f92eb..da20517203a 100644
--- a/tests/source/match.rs
+++ b/tests/source/match.rs
@@ -410,7 +410,7 @@ fn match_with_near_max_width() {
 
 fn match_with_trailing_spaces() {
     match x {    
-        #![allow(simple_match)]
+        
         Some(..) => 0,
         None => 1,
     }
diff --git a/tests/target/issue-3592.rs b/tests/target/issue-3592.rs
deleted file mode 100644
index 3142268e081..00000000000
--- a/tests/target/issue-3592.rs
+++ /dev/null
@@ -1,13 +0,0 @@
-fn r() -> (Biz, ()) {
-    (
-        Biz {
-            #![cfg(unix)]
-            field: 9
-        },
-        Biz {
-            #![cfg(not(unix))]
-            field: 200
-        },
-        (),
-    )
-}
diff --git a/tests/target/match.rs b/tests/target/match.rs
index 123c4c55f6a..e2c522bea10 100644
--- a/tests/target/match.rs
+++ b/tests/target/match.rs
@@ -441,7 +441,6 @@ fn match_with_near_max_width() {
 
 fn match_with_trailing_spaces() {
     match x {
-        #![allow(simple_match)]
         Some(..) => 0,
         None => 1,
     }