diff options
| author | Santiago Pastorino <spastorino@gmail.com> | 2022-02-15 17:56:03 -0300 |
|---|---|---|
| committer | Santiago Pastorino <spastorino@gmail.com> | 2022-02-20 10:17:29 -0300 |
| commit | a8d24742f8a7d72d4ae70001c728a5f1a9175539 (patch) | |
| tree | e06149f7828bcc5ea33bed5bfa0608af49a2fb07 | |
| parent | 04d5f41c97c5c49770374b8115d18b9f77afaf3d (diff) | |
Avoid call to lower_node_id when not needed
| -rw-r--r-- | compiler/rustc_ast_lowering/src/item.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_ast_lowering/src/item.rs b/compiler/rustc_ast_lowering/src/item.rs index a01e3e7997d..0e2304fd2fd 100644 --- a/compiler/rustc_ast_lowering/src/item.rs +++ b/compiler/rustc_ast_lowering/src/item.rs @@ -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, |
