]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_driver/src/pretty.rs
rustc_typeck to rustc_hir_analysis
[rust.git] / compiler / rustc_driver / src / pretty.rs
index 2874fa0caff6fb297365abda296ab3ad942167e6..f9b1316d2eb5f632da4474ae56720ff1881cbf40 100644 (file)
@@ -329,7 +329,7 @@ fn post(&self, s: &mut pprust_hir::State<'_>, node: pprust_hir::AnnNode<'_>) {
             let typeck_results = self.maybe_typeck_results.get().or_else(|| {
                 self.tcx
                     .hir()
-                    .maybe_body_owned_by(expr.hir_id.owner)
+                    .maybe_body_owned_by(expr.hir_id.owner.def_id)
                     .map(|body_id| self.tcx.typeck_body(body_id))
             });
 
@@ -502,7 +502,7 @@ fn print_with_analysis(
 
         ThirTree => {
             let mut out = String::new();
-            abort_on_err(rustc_typeck::check_crate(tcx), tcx.sess);
+            abort_on_err(rustc_hir_analysis::check_crate(tcx), tcx.sess);
             debug!("pretty printing THIR tree");
             for did in tcx.hir().body_owners() {
                 let _ = writeln!(