Fixing tests
This commit is contained in:
parent
053a696ade
commit
d5cba6c895
@ -172,7 +172,6 @@ fn parse_token_tree(&mut self) -> PResult<'a, TreeAndJoint> {
|
||||
let mut unclosed_delimiter = None;
|
||||
let mut candidate = None;
|
||||
|
||||
|
||||
if self.last_unclosed_found_span != Some(self.token.span) {
|
||||
// do not complain about the same unclosed delimiter multiple times
|
||||
self.last_unclosed_found_span = Some(self.token.span);
|
||||
|
@ -16,5 +16,5 @@ fn struct_generic(x: Vec<i32>) {
|
||||
for v in x {
|
||||
println!("{}", v);
|
||||
}
|
||||
}
|
||||
}
|
||||
} //~ ERROR unexpected closing delimiter: `}`
|
||||
|
@ -1,6 +1,9 @@
|
||||
error: unexpected closing delimiter: `}`
|
||||
--> $DIR/issue-70583-block-is-empty-1.rs:20:1
|
||||
|
|
||||
LL | ErrorHandled::Reported => {}
|
||||
| -- this block is empty, you might have not meant to close it
|
||||
...
|
||||
LL | }
|
||||
| ^ unexpected closing delimiter
|
||||
|
||||
|
@ -6,8 +6,8 @@ pub enum ErrorHandled {
|
||||
impl ErrorHandled {
|
||||
pub fn assert_reported(self) {
|
||||
match self {
|
||||
ErrorHandled::Reported => {}}
|
||||
//^~ ERROR this block is empty, you might have not mean to close it
|
||||
ErrorHandled::Reported => {}}
|
||||
//^~ ERROR this block is empty, you might have not meant to close it
|
||||
ErrorHandled::TooGeneric => panic!(),
|
||||
}
|
||||
}
|
||||
|
@ -1,7 +1,7 @@
|
||||
error: unexpected closing delimiter: `}`
|
||||
--> $DIR/issue-70583-block-is-empty-2.rs:14:1
|
||||
|
|
||||
LL | ErrorHandled::Reported => {}}
|
||||
LL | ErrorHandled::Reported => {}}
|
||||
| -- this block is empty, you might have not meant to close it
|
||||
...
|
||||
LL | }
|
||||
|
Loading…
Reference in New Issue
Block a user