diff options
| author | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2022-02-10 13:04:59 +0100 |
|---|---|---|
| committer | Frank Steffahn <frank.steffahn@stu.uni-kiel.de> | 2022-02-10 13:04:59 +0100 |
| commit | 7eff2feb62be2ab39b110a434acdc3f852b5a7a3 (patch) | |
| tree | 78eb6ca0292967bd77d03fca566efd1e1a13b984 /compiler/rustc_trait_selection/src/traits | |
| parent | 89ac81a6e6f2b5e81e418f544c1efb73cc06d6f4 (diff) | |
| download | rust-7eff2feb62be2ab39b110a434acdc3f852b5a7a3.tar.gz rust-7eff2feb62be2ab39b110a434acdc3f852b5a7a3.zip | |
Remove further usage of `&hir::Map`
Diffstat (limited to 'compiler/rustc_trait_selection/src/traits')
| -rw-r--r-- | compiler/rustc_trait_selection/src/traits/error_reporting/on_unimplemented.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_trait_selection/src/traits/error_reporting/on_unimplemented.rs b/compiler/rustc_trait_selection/src/traits/error_reporting/on_unimplemented.rs index 1540725246b..4e7a34d5951 100644 --- a/compiler/rustc_trait_selection/src/traits/error_reporting/on_unimplemented.rs +++ b/compiler/rustc_trait_selection/src/traits/error_reporting/on_unimplemented.rs @@ -77,7 +77,7 @@ impl<'a, 'tcx> InferCtxtExt<'tcx> for InferCtxt<'a, 'tcx> { /// Used to set on_unimplemented's `ItemContext` /// to be the enclosing (async) block/function/closure fn describe_enclosure(&self, hir_id: hir::HirId) -> Option<&'static str> { - let hir = &self.tcx.hir(); + let hir = self.tcx.hir(); let node = hir.find(hir_id)?; match &node { hir::Node::Item(hir::Item { kind: hir::ItemKind::Fn(sig, _, body_id), .. }) => { |
