Fixing tests

This commit is contained in:
Kevin Per 2020-04-03 07:24:02 +00:00
parent 053a696ade
commit d5cba6c895
5 changed files with 7 additions and 5 deletions

View File

@ -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);

View File

@ -16,5 +16,5 @@ fn struct_generic(x: Vec<i32>) {
for v in x {
println!("{}", v);
}
}
}
} //~ ERROR unexpected closing delimiter: `}`

View File

@ -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

View File

@ -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!(),
}
}

View File

@ -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 | }