about summary refs log tree commit diff
path: root/src/libsyntax/parse/diagnostics.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-10 16:08:26 +0200
committerGitHub <noreply@github.com>2019-07-10 16:08:26 +0200
commit3c299a987cfd9522c4e1f6e53ed79123b4a4acab (patch)
tree7b38859ec1d80e79e50861dac5caa24d231572db /src/libsyntax/parse/diagnostics.rs
parentd0cec040de22555519e991f08a48ec0b1b62fbc6 (diff)
parent56a9237b595b4523f2be3123d52662739e89d4c2 (diff)
downloadrust-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.rs2
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);