diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-05 14:17:56 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-06 14:04:02 +0300 |
| commit | ff40e37b98fb44366a329d1b0d9642d462cc6ab6 (patch) | |
| tree | 19ba8638a9ad0939e7f918765872f3c4e7c6bec1 /src/libsyntax_ext/assert.rs | |
| parent | 738e14565deb48800c06abc22f8e35e412f10010 (diff) | |
| download | rust-ff40e37b98fb44366a329d1b0d9642d462cc6ab6.tar.gz rust-ff40e37b98fb44366a329d1b0d9642d462cc6ab6.zip | |
Some code cleanup and tidy/test fixes
Diffstat (limited to 'src/libsyntax_ext/assert.rs')
| -rw-r--r-- | src/libsyntax_ext/assert.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/libsyntax_ext/assert.rs b/src/libsyntax_ext/assert.rs index ce1e3276af3..3886528c74c 100644 --- a/src/libsyntax_ext/assert.rs +++ b/src/libsyntax_ext/assert.rs @@ -103,7 +103,8 @@ fn parse_assert<'a>( // // Parse this as an actual message, and suggest inserting a comma. Eventually, this should be // turned into an error. - let custom_message = if let token::Literal(token::Lit { kind: token::Str, .. }) = parser.token.kind { + let custom_message = if let token::Literal(token::Lit { kind: token::Str, .. }) + = parser.token.kind { let mut err = cx.struct_span_warn(parser.span, "unexpected string literal"); let comma_span = cx.source_map().next_point(parser.prev_span); err.span_suggestion_short( |
