Remove further usage of &hir::Map
This commit is contained in:
parent
89ac81a6e6
commit
7eff2feb62
6 changed files with 24 additions and 27 deletions
|
@ -2226,7 +2226,7 @@ impl<'a, 'tcx> InferCtxt<'a, 'tcx> {
|
|||
bound_kind: GenericKind<'tcx>,
|
||||
sub: Region<'tcx>,
|
||||
) -> DiagnosticBuilder<'a> {
|
||||
let hir = &self.tcx.hir();
|
||||
let hir = self.tcx.hir();
|
||||
// Attempt to obtain the span of the parameter so we can
|
||||
// suggest adding an explicit lifetime bound to it.
|
||||
let generics = self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue