Skip to content

Commit 956265d

Browse files
committed
lowering: elide some lifetimes
1 parent bcab59e commit 956265d

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/librustc_ast_lowering/item.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ pub(super) struct ItemLowerer<'a, 'lowering, 'hir> {
2525
pub(super) lctx: &'a mut LoweringContext<'lowering, 'hir>,
2626
}
2727

28-
impl<'a, 'lowering, 'hir> ItemLowerer<'a, 'lowering, 'hir> {
28+
impl ItemLowerer<'_, '_, '_> {
2929
fn with_trait_impl_ref(&mut self, impl_ref: &Option<TraitRef>, f: impl FnOnce(&mut Self)) {
3030
let old = self.lctx.is_in_trait_impl;
3131
self.lctx.is_in_trait_impl = if let &None = impl_ref { false } else { true };
@@ -34,7 +34,7 @@ impl<'a, 'lowering, 'hir> ItemLowerer<'a, 'lowering, 'hir> {
3434
}
3535
}
3636

37-
impl<'a, 'lowering, 'hir> Visitor<'a> for ItemLowerer<'a, 'lowering, 'hir> {
37+
impl<'a> Visitor<'a> for ItemLowerer<'a, '_, '_> {
3838
fn visit_mod(&mut self, m: &'a Mod, _s: Span, _attrs: &[Attribute], n: NodeId) {
3939
let hir_id = self.lctx.lower_node_id(n);
4040

src/librustc_ast_lowering/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -445,7 +445,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
445445
}
446446
}
447447

448-
impl<'tcx, 'lowering, 'hir> Visitor<'tcx> for MiscCollector<'tcx, 'lowering, 'hir> {
448+
impl<'tcx> Visitor<'tcx> for MiscCollector<'tcx, '_, '_> {
449449
fn visit_pat(&mut self, p: &'tcx Pat) {
450450
if let PatKind::Paren(..) | PatKind::Rest = p.kind {
451451
// Doesn't generate a HIR node

0 commit comments

Comments
 (0)