diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-05-24 02:04:56 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2019-06-06 14:01:57 +0300 |
| commit | eac3846b65b068a5cbdfafc786e258554b875dae (patch) | |
| tree | 7f8aeac93382bd664ac49d1791181cf6d659dcc3 /src/libsyntax/parse/mod.rs | |
| parent | daf1ed0e98e75c64c3b883fd845b37bfa42358de (diff) | |
| download | rust-eac3846b65b068a5cbdfafc786e258554b875dae.tar.gz rust-eac3846b65b068a5cbdfafc786e258554b875dae.zip | |
Always use token kinds through `token` module rather than `Token` type
Diffstat (limited to 'src/libsyntax/parse/mod.rs')
| -rw-r--r-- | src/libsyntax/parse/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/mod.rs b/src/libsyntax/parse/mod.rs index f7a7aba9ecb..60d04ae9d94 100644 --- a/src/libsyntax/parse/mod.rs +++ b/src/libsyntax/parse/mod.rs @@ -311,7 +311,7 @@ pub fn maybe_file_to_stream( for unmatched in unmatched_braces { let mut db = sess.span_diagnostic.struct_span_err(unmatched.found_span, &format!( "incorrect close delimiter: `{}`", - token_to_string(&token::Token::CloseDelim(unmatched.found_delim)), + token_to_string(&token::CloseDelim(unmatched.found_delim)), )); db.span_label(unmatched.found_span, "incorrect close delimiter"); if let Some(sp) = unmatched.candidate_span { |
