diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-10 16:08:26 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-10 16:08:26 +0200 |
| commit | 3c299a987cfd9522c4e1f6e53ed79123b4a4acab (patch) | |
| tree | 7b38859ec1d80e79e50861dac5caa24d231572db /src/libsyntax/parse/diagnostics.rs | |
| parent | d0cec040de22555519e991f08a48ec0b1b62fbc6 (diff) | |
| parent | 56a9237b595b4523f2be3123d52662739e89d4c2 (diff) | |
| download | rust-3c299a987cfd9522c4e1f6e53ed79123b4a4acab.tar.gz rust-3c299a987cfd9522c4e1f6e53ed79123b4a4acab.zip | |
Rollup merge of #62532 - Mark-Simulacrum:syntax-print-cleanup, r=petrochenkov
Some more cleanups to syntax::print All of these changes should be functionally equivalent to previous code. Each commit mostly stands alone and this PR is easiest to review by-commit.
Diffstat (limited to 'src/libsyntax/parse/diagnostics.rs')
| -rw-r--r-- | src/libsyntax/parse/diagnostics.rs | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/libsyntax/parse/diagnostics.rs b/src/libsyntax/parse/diagnostics.rs index edcdb18a037..ae24047ac82 100644 --- a/src/libsyntax/parse/diagnostics.rs +++ b/src/libsyntax/parse/diagnostics.rs @@ -611,8 +611,6 @@ impl<'a> Parser<'a> { match ty.node { TyKind::Rptr(ref lifetime, ref mut_ty) => { let sum_with_parens = pprust::to_string(|s| { - use crate::print::pprust::PrintState; - s.s.word("&"); s.print_opt_lifetime(lifetime); s.print_mutability(mut_ty.mutbl); |
