diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-06-09 00:20:38 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-09 00:20:38 +0200 |
| commit | 6b71fba9c1371a46e94917fabe042b6e3a14cf0a (patch) | |
| tree | 8ac3e87f2d3fec1a4cff83a44b5ed18148a62abf /src/libsyntax/parse/diagnostics.rs | |
| parent | 18ca48d746c345f780914cc85d6049ff9a179635 (diff) | |
| parent | 9aaa7c770c976e35b1614f1f6bf120204c5727c8 (diff) | |
| download | rust-6b71fba9c1371a46e94917fabe042b6e3a14cf0a.tar.gz rust-6b71fba9c1371a46e94917fabe042b6e3a14cf0a.zip | |
Rollup merge of #61669 - petrochenkov:tokderef2, r=oli-obk
syntax: Remove `Deref` impl from `Token` Follow up to https://github.com/rust-lang/rust/pull/61541 r? @oli-obk
Diffstat (limited to 'src/libsyntax/parse/diagnostics.rs')
| -rw-r--r-- | src/libsyntax/parse/diagnostics.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/diagnostics.rs b/src/libsyntax/parse/diagnostics.rs index c4db9a9df45..9d2ac5b4b51 100644 --- a/src/libsyntax/parse/diagnostics.rs +++ b/src/libsyntax/parse/diagnostics.rs @@ -729,7 +729,7 @@ impl<'a> Parser<'a> { &mut self, t: &TokenKind, ) -> PResult<'a, bool /* recovered */> { - let token_str = pprust::token_to_string(t); + let token_str = pprust::token_kind_to_string(t); let this_token_str = self.this_token_descr(); let (prev_sp, sp) = match (&self.token.kind, self.subparser_name) { // Point at the end of the macro call when reaching end of macro arguments. |
