Skip to content

Commit

Permalink
Auto merge of #4131 - phansch:rustup2, r=phansch
Browse files Browse the repository at this point in the history
  • Loading branch information
bors committed May 23, 2019
2 parents 9c85b02 + a316179 commit c984f77
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions clippy_lints/src/write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,10 +274,10 @@ fn check_tts<'a>(cx: &EarlyContext<'a>, tts: &TokenStream, is_write: bool) -> (O
let mut is_raw = false;
if let TokenStream(Some(tokens)) = &tts {
for token in tokens.iter() {
if let (TokenTree::Token(_, token::Token::Literal(lit, _)), _) = token {
match lit {
token::Lit::Str_(_) => break,
token::Lit::StrRaw(_, _) => {
if let (TokenTree::Token(_, token::Token::Literal(lit)), _) = token {
match lit.kind {
token::Str => break,
token::StrRaw(_) => {
is_raw = true;
break;
},
Expand Down
2 changes: 1 addition & 1 deletion tests/ui/crashes/ice-3891.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error: invalid suffix `x` for numeric literal
error: invalid suffix `x` for integer literal
--> $DIR/ice-3891.rs:2:5
|
LL | 1x;
Expand Down

0 comments on commit c984f77

Please sign in to comment.