about summary refs log tree commit diff
path: root/src/librustc_driver
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2020-04-19 13:00:18 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2020-05-08 13:13:15 +0200
commitd4e143ed2f248a808fb5f1cf959f630d419cc01b (patch)
tree4418c7d53db14542c6eb4736aa2a308d2447bde9 /src/librustc_driver
parenta51e004e1bf7f9bba151dd9104a217c1ace6a0a2 (diff)
Remove ast::{Ident, Name} reexports.
Diffstat (limited to 'src/librustc_driver')
-rw-r--r--src/librustc_driver/pretty.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc_driver/pretty.rs b/src/librustc_driver/pretty.rs
index 610e9b90510..a443b8f464f 100644
--- a/src/librustc_driver/pretty.rs
+++ b/src/librustc_driver/pretty.rs
@@ -11,6 +11,7 @@ use rustc_middle::ty::{self, TyCtxt};
 use rustc_mir::util::{write_mir_graphviz, write_mir_pretty};
 use rustc_session::config::{Input, PpMode, PpSourceMode};
 use rustc_session::Session;
+use rustc_span::symbol::Ident;
 use rustc_span::FileName;
 
 use std::cell::Cell;
@@ -284,7 +285,7 @@ impl<'a> PrinterSupport for HygieneAnnotation<'a> {
 impl<'a> pprust::PpAnn for HygieneAnnotation<'a> {
     fn post(&self, s: &mut pprust::State<'_>, node: pprust::AnnNode<'_>) {
         match node {
-            pprust::AnnNode::Ident(&ast::Ident { name, span }) => {
+            pprust::AnnNode::Ident(&Ident { name, span }) => {
                 s.s.space();
                 s.synth_comment(format!("{}{:?}", name.as_u32(), span.ctxt()))
             }