Skip to content

Commit a8d2474

Browse files
committed
Avoid call to lower_node_id when not needed
1 parent 04d5f41 commit a8d2474

File tree

1 file changed

+1
-1
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-1
lines changed

compiler/rustc_ast_lowering/src/item.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -340,7 +340,7 @@ impl<'hir> LoweringContext<'_, 'hir> {
340340
// method, it will not be considered an in-band
341341
// lifetime to be added, but rather a reference to a
342342
// parent lifetime.
343-
let lowered_trait_def_id = self.lower_node_id(id).expect_owner();
343+
let lowered_trait_def_id = hir_id.expect_owner();
344344
let (generics, (trait_ref, lowered_ty)) = self.add_in_band_defs(
345345
ast_generics,
346346
lowered_trait_def_id,

0 commit comments

Comments
 (0)