lowering: elide some lifetimes
This commit is contained in:
parent
bcab59ed83
commit
956265d55b
2 changed files with 3 additions and 3 deletions
|
@ -25,7 +25,7 @@ pub(super) struct ItemLowerer<'a, 'lowering, 'hir> {
|
||||||
pub(super) lctx: &'a mut LoweringContext<'lowering, 'hir>,
|
pub(super) lctx: &'a mut LoweringContext<'lowering, 'hir>,
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'lowering, 'hir> ItemLowerer<'a, 'lowering, 'hir> {
|
impl ItemLowerer<'_, '_, '_> {
|
||||||
fn with_trait_impl_ref(&mut self, impl_ref: &Option<TraitRef>, f: impl FnOnce(&mut Self)) {
|
fn with_trait_impl_ref(&mut self, impl_ref: &Option<TraitRef>, f: impl FnOnce(&mut Self)) {
|
||||||
let old = self.lctx.is_in_trait_impl;
|
let old = self.lctx.is_in_trait_impl;
|
||||||
self.lctx.is_in_trait_impl = if let &None = impl_ref { false } else { true };
|
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> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'a, 'lowering, 'hir> Visitor<'a> for ItemLowerer<'a, 'lowering, 'hir> {
|
impl<'a> Visitor<'a> for ItemLowerer<'a, '_, '_> {
|
||||||
fn visit_mod(&mut self, m: &'a Mod, _s: Span, _attrs: &[Attribute], n: NodeId) {
|
fn visit_mod(&mut self, m: &'a Mod, _s: Span, _attrs: &[Attribute], n: NodeId) {
|
||||||
let hir_id = self.lctx.lower_node_id(n);
|
let hir_id = self.lctx.lower_node_id(n);
|
||||||
|
|
||||||
|
|
|
@ -445,7 +445,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl<'tcx, 'lowering, 'hir> Visitor<'tcx> for MiscCollector<'tcx, 'lowering, 'hir> {
|
impl<'tcx> Visitor<'tcx> for MiscCollector<'tcx, '_, '_> {
|
||||||
fn visit_pat(&mut self, p: &'tcx Pat) {
|
fn visit_pat(&mut self, p: &'tcx Pat) {
|
||||||
if let PatKind::Paren(..) | PatKind::Rest = p.kind {
|
if let PatKind::Paren(..) | PatKind::Rest = p.kind {
|
||||||
// Doesn't generate a HIR node
|
// Doesn't generate a HIR node
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue