diff options
| author | Michael Goulet <michael@errs.io> | 2024-02-10 03:52:13 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-02-10 03:52:13 +0000 |
| commit | e6f5af967132139ba584ad3c04df8dac83dc2640 (patch) | |
| tree | ac5dd44eb0db10227db9d9139a6c7ef52479b1d6 /compiler/rustc_ast_lowering/src | |
| parent | fde695a2d19fc13a5773b8e9168341c67a21912e (diff) | |
| download | rust-e6f5af967132139ba584ad3c04df8dac83dc2640.tar.gz rust-e6f5af967132139ba584ad3c04df8dac83dc2640.zip | |
Remove unused fn
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/lib.rs | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/compiler/rustc_ast_lowering/src/lib.rs b/compiler/rustc_ast_lowering/src/lib.rs index 7c89600fa28..5f7439060b3 100644 --- a/compiler/rustc_ast_lowering/src/lib.rs +++ b/compiler/rustc_ast_lowering/src/lib.rs @@ -197,7 +197,6 @@ trait ResolverAstLoweringExt { fn get_label_res(&self, id: NodeId) -> Option<NodeId>; fn get_lifetime_res(&self, id: NodeId) -> Option<LifetimeRes>; fn take_extra_lifetime_params(&mut self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)>; - fn remap_extra_lifetime_params(&mut self, from: NodeId, to: NodeId); } impl ResolverAstLoweringExt for ResolverAstLowering { @@ -256,11 +255,6 @@ impl ResolverAstLoweringExt for ResolverAstLowering { fn take_extra_lifetime_params(&mut self, id: NodeId) -> Vec<(Ident, NodeId, LifetimeRes)> { self.extra_lifetime_params_map.remove(&id).unwrap_or_default() } - - fn remap_extra_lifetime_params(&mut self, from: NodeId, to: NodeId) { - let lifetimes = self.extra_lifetime_params_map.remove(&from).unwrap_or_default(); - self.extra_lifetime_params_map.insert(to, lifetimes); - } } /// Context of `impl Trait` in code, which determines whether it is allowed in an HIR subtree, |
