]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_driver/pretty.rs
Auto merge of #65672 - ecstatic-morse:unified-dataflow-proto, r=pnkfelix
[rust.git] / src / librustc_driver / pretty.rs
index 84fa5fb786bfb51717b3b8abc2b7506b4cfa5470..6ef6dcf87eddb6b552f0d2cc64ca32158f128458 100644 (file)
@@ -1,13 +1,13 @@
 //! The various pretty-printing routines.
 
-use rustc::hir;
-use rustc::hir::def_id::LOCAL_CRATE;
 use rustc::hir::map as hir_map;
-use rustc::hir::print as pprust_hir;
 use rustc::session::config::{Input, PpMode, PpSourceMode};
 use rustc::session::Session;
 use rustc::ty::{self, TyCtxt};
 use rustc::util::common::ErrorReported;
+use rustc_hir as hir;
+use rustc_hir::def_id::LOCAL_CRATE;
+use rustc_hir::print as pprust_hir;
 use rustc_mir::util::{write_mir_graphviz, write_mir_pretty};
 
 use rustc_span::FileName;
@@ -429,7 +429,6 @@ pub fn print_after_hir_lowering<'tcx>(
         PpmSource(s) => {
             // Silently ignores an identified node.
             let out = &mut out;
-            let src = src.clone();
             call_with_pp_support(&s, tcx.sess, Some(tcx), move |annotation| {
                 debug!("pretty printing source code {:?}", s);
                 let sess = annotation.sess();
@@ -447,7 +446,6 @@ pub fn print_after_hir_lowering<'tcx>(
 
         PpmHir(s) => {
             let out = &mut out;
-            let src = src.clone();
             call_with_pp_support_hir(&s, tcx, move |annotation, krate| {
                 debug!("pretty printing source code {:?}", s);
                 let sess = annotation.sess();