diff options
| author | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-15 23:13:04 -0400 |
|---|---|---|
| committer | Miguel Guarniz <mi9uel9@gmail.com> | 2022-07-29 18:25:58 -0400 |
| commit | 25bdc8965e7a80cb3a72da79ca568953738fe433 (patch) | |
| tree | 9e5c141b84918483db882f87c8d1bbb6b3702da1 /compiler/rustc_driver/src | |
| parent | 3924dac7bb29bc8eb348059c901e8f912399c857 (diff) | |
| download | rust-25bdc8965e7a80cb3a72da79ca568953738fe433.tar.gz rust-25bdc8965e7a80cb3a72da79ca568953738fe433.zip | |
Change maybe_body_owned_by to take local 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 12bac956adb..a514f1a9489 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_to_hir_id(expr.hir_id.owner)) + .maybe_body_owned_by(self.tcx.hir().local_def_id(expr.hir_id)) .map(|body_id| self.tcx.typeck_body(body_id)) }); |
