diff options
| author | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-19 17:06:52 -0400 |
|---|---|---|
| committer | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-29 18:26:10 -0400 |
| commit | 16513d689e4fe30e58a37dd773af5be9210ebcbd (patch) | |
| tree | 3b4375ba578709ef3142542c85d2ef411987ddea /compiler/rustc_driver/src | |
| parent | 25bdc8965e7a80cb3a72da79ca568953738fe433 (diff) | |
| download | rust-16513d689e4fe30e58a37dd773af5be9210ebcbd.tar.gz rust-16513d689e4fe30e58a37dd773af5be9210ebcbd.zip | |
Rename local_did to def_id
Signed-off-by: Miguel Guarniz <mi9uel9@gmail.com>
Diffstat (limited to 'compiler/rustc_driver/src')
| -rw-r--r-- | compiler/rustc_driver/src/pretty.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_driver/src/pretty.rs b/compiler/rustc_driver/src/pretty.rs index a514f1a9489..f66b1a2976f 100644 --- a/compiler/rustc_driver/src/pretty.rs +++ b/compiler/rustc_driver/src/pretty.rs @@ -328,7 +328,7 @@ impl<'tcx> pprust_hir::PpAnn for TypedAnnotation<'tcx> { let typeck_results = self.maybe_typeck_results.get().or_else(|| { self.tcx .hir() - .maybe_body_owned_by(self.tcx.hir().local_def_id(expr.hir_id)) + .maybe_body_owned_by(expr.hir_id.owner) .map(|body_id| self.tcx.typeck_body(body_id)) }); |
