Skip to content

Commit 2c6f846

Browse files
committed
Drop this in error message to not reach 100 characters
1 parent e21d101 commit 2c6f846

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/librustc_parse/lexer/tokentrees.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ impl<'a> TokenTreesReader<'a> {
246246
if (parent.0.to(parent.1)).contains(span) {
247247
err.span_label(
248248
span,
249-
"this block is empty, you might have not meant to close it",
249+
"block is empty, you might have not meant to close it",
250250
);
251251
}
252252
else {

src/test/ui/parser/issue-70583-block-is-empty-2.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ impl ErrorHandled {
77
pub fn assert_reported(self) {
88
match self {
99
ErrorHandled::Reported => {}}
10-
//^~ ERROR this block is empty, you might have not meant to close it
10+
//^~ ERROR block is empty, you might have not meant to close it
1111
ErrorHandled::TooGeneric => panic!(),
1212
}
1313
}

src/test/ui/parser/issue-70583-block-is-empty-2.stderr

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ error: unexpected closing delimiter: `}`
22
--> $DIR/issue-70583-block-is-empty-2.rs:14:1
33
|
44
LL | ErrorHandled::Reported => {}}
5-
| -- this block is empty, you might have not meant to close it
5+
| -- block is empty, you might have not meant to close it
66
...
77
LL | }
88
| ^ unexpected closing delimiter

0 commit comments

Comments
 (0)