about summary refs log tree commit diff
path: root/src/test/ui/parser
diff options
context:
space:
mode:
authorWesley Wiser <wwiser@gmail.com>2020-12-19 16:30:56 -0500
committerWesley Wiser <wwiser@gmail.com>2020-12-22 09:33:16 -0500
commitf1eb88b28a84b0533ddd036a60bb5b8acbffabb2 (patch)
treed97f70bd40a68bd517da1e63b56d0c64d6b001f2 /src/test/ui/parser
parent9414f0b833734c344e795d590e9a845ce437c908 (diff)
downloadrust-f1eb88b28a84b0533ddd036a60bb5b8acbffabb2.tar.gz
rust-f1eb88b28a84b0533ddd036a60bb5b8acbffabb2.zip
Revert "Promote missing_fragment_specifier to hard error"
This reverts commit 02eae432e7476a0686633a8c2b7cb1d5aab1bd2c.
Diffstat (limited to 'src/test/ui/parser')
-rw-r--r--src/test/ui/parser/macro/issue-33569.rs1
-rw-r--r--src/test/ui/parser/macro/issue-33569.stderr16
2 files changed, 5 insertions, 12 deletions
diff --git a/src/test/ui/parser/macro/issue-33569.rs b/src/test/ui/parser/macro/issue-33569.rs
index cf81f0480a2..80e2d7c6545 100644
--- a/src/test/ui/parser/macro/issue-33569.rs
+++ b/src/test/ui/parser/macro/issue-33569.rs
@@ -2,7 +2,6 @@ macro_rules! foo {
     { $+ } => { //~ ERROR expected identifier, found `+`
                 //~^ ERROR missing fragment specifier
         $(x)(y) //~ ERROR expected one of: `*`, `+`, or `?`
-       //~^ ERROR attempted to repeat an expression containing no syntax variables
     }
 }
 
diff --git a/src/test/ui/parser/macro/issue-33569.stderr b/src/test/ui/parser/macro/issue-33569.stderr
index f54efaa6996..b4d38d3ce48 100644
--- a/src/test/ui/parser/macro/issue-33569.stderr
+++ b/src/test/ui/parser/macro/issue-33569.stderr
@@ -4,23 +4,17 @@ error: expected identifier, found `+`
 LL |     { $+ } => {
    |        ^
 
-error: missing fragment specifier
-  --> $DIR/issue-33569.rs:2:8
-   |
-LL |     { $+ } => {
-   |        ^
-
 error: expected one of: `*`, `+`, or `?`
   --> $DIR/issue-33569.rs:4:13
    |
 LL |         $(x)(y)
    |             ^^^
 
-error: attempted to repeat an expression containing no syntax variables matched as repeating at this depth
-  --> $DIR/issue-33569.rs:4:10
+error: missing fragment specifier
+  --> $DIR/issue-33569.rs:2:8
    |
-LL |         $(x)(y)
-   |          ^^^
+LL |     { $+ } => {
+   |        ^
 
-error: aborting due to 4 previous errors
+error: aborting due to 3 previous errors