about summary refs log tree commit diff
path: root/compiler/rustc_trait_selection/src/traits
diff options
context:
space:
mode:
authorFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2022-02-10 13:04:59 +0100
committerFrank Steffahn <frank.steffahn@stu.uni-kiel.de>2022-02-10 13:04:59 +0100
commit7eff2feb62be2ab39b110a434acdc3f852b5a7a3 (patch)
tree78eb6ca0292967bd77d03fca566efd1e1a13b984 /compiler/rustc_trait_selection/src/traits
parent89ac81a6e6f2b5e81e418f544c1efb73cc06d6f4 (diff)
downloadrust-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.rs2
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), .. }) => {