mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-23 15:23:46 +00:00
Avoid call to lower_node_id when not needed
This commit is contained in:
parent
04d5f41c97
commit
a8d24742f8
@ -340,7 +340,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
|
||||
// method, it will not be considered an in-band
|
||||
// lifetime to be added, but rather a reference to a
|
||||
// parent lifetime.
|
||||
let lowered_trait_def_id = self.lower_node_id(id).expect_owner();
|
||||
let lowered_trait_def_id = hir_id.expect_owner();
|
||||
let (generics, (trait_ref, lowered_ty)) = self.add_in_band_defs(
|
||||
ast_generics,
|
||||
lowered_trait_def_id,
|
||||
|
Loading…
Reference in New Issue
Block a user