From 2c6f84668e9f985aff261d317d3188d053ca29d1 Mon Sep 17 00:00:00 2001 From: Kevin Per Date: Sat, 4 Apr 2020 08:01:42 +0000 Subject: [PATCH] Drop `this` in error message to not reach 100 characters --- src/librustc_parse/lexer/tokentrees.rs | 2 +- src/test/ui/parser/issue-70583-block-is-empty-2.rs | 2 +- src/test/ui/parser/issue-70583-block-is-empty-2.stderr | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/librustc_parse/lexer/tokentrees.rs b/src/librustc_parse/lexer/tokentrees.rs index 09bbfe10fe5..2dda90c3734 100644 --- a/src/librustc_parse/lexer/tokentrees.rs +++ b/src/librustc_parse/lexer/tokentrees.rs @@ -246,7 +246,7 @@ fn parse_token_tree(&mut self) -> PResult<'a, TreeAndJoint> { if (parent.0.to(parent.1)).contains(span) { err.span_label( span, - "this block is empty, you might have not meant to close it", + "block is empty, you might have not meant to close it", ); } else { diff --git a/src/test/ui/parser/issue-70583-block-is-empty-2.rs b/src/test/ui/parser/issue-70583-block-is-empty-2.rs index 4764d71936b..80f53338a68 100644 --- a/src/test/ui/parser/issue-70583-block-is-empty-2.rs +++ b/src/test/ui/parser/issue-70583-block-is-empty-2.rs @@ -7,7 +7,7 @@ impl ErrorHandled { pub fn assert_reported(self) { match self { ErrorHandled::Reported => {}} - //^~ ERROR this block is empty, you might have not meant to close it + //^~ ERROR block is empty, you might have not meant to close it ErrorHandled::TooGeneric => panic!(), } } diff --git a/src/test/ui/parser/issue-70583-block-is-empty-2.stderr b/src/test/ui/parser/issue-70583-block-is-empty-2.stderr index 9511d9847fb..5d37b216427 100644 --- a/src/test/ui/parser/issue-70583-block-is-empty-2.stderr +++ b/src/test/ui/parser/issue-70583-block-is-empty-2.stderr @@ -2,7 +2,7 @@ error: unexpected closing delimiter: `}` --> $DIR/issue-70583-block-is-empty-2.rs:14:1 | LL | ErrorHandled::Reported => {}} - | -- this block is empty, you might have not meant to close it + | -- block is empty, you might have not meant to close it ... LL | } | ^ unexpected closing delimiter