self.impl_or_trait_item(
- self.tcx.impl_trait_ref(impl_did).unwrap().def_id,
-
- item_name
- )
- }).unwrap();
- let note_span = self.tcx.map.span_if_local(item.def_id()).or_else(|| {
- self.tcx.map.span_if_local(impl_did)
- });
+ self.impl_or_trait_item(self.tcx
+ .impl_trait_ref(impl_did)
+ .unwrap()
+ .def_id,
+
+ item_name)
+ })
+ .unwrap();
+ let note_span = self.tcx
+ .map
+ .span_if_local(item.def_id())
+ .or_else(|| self.tcx.map.span_if_local(impl_did));
see the
item_nameparam.https://github.com/rust-lang/rust/pull/36736/files/1d1168ccea6ee1ede476cefb424c384ba7904bb5#diff-45ff4c3ed02cc75f5b8162af5d9c782bL98