]> git.lizzy.rs Git - rust.git/blobdiff - src/librustc_driver/pretty.rs
pprust: use as_deref
[rust.git] / src / librustc_driver / pretty.rs
index 8804a05b596ee1fa421ac6f6aaa97ff5614f05c7..6ef6dcf87eddb6b552f0d2cc64ca32158f128458 100644 (file)
@@ -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();