rustc_hir: Relax lifetime requirements on Visitor::visit_path
This commit is contained in:
parent
9c0bc3028a
commit
6cd4dd3091
16 changed files with 19 additions and 19 deletions
|
@ -814,7 +814,7 @@ impl<'a, 'tcx> Visitor<'tcx> for LifetimeContext<'a, 'tcx> {
|
|||
}
|
||||
}
|
||||
|
||||
fn visit_path(&mut self, path: &'tcx hir::Path<'tcx>, _: hir::HirId) {
|
||||
fn visit_path(&mut self, path: &hir::Path<'tcx>, _: hir::HirId) {
|
||||
for (i, segment) in path.segments.iter().enumerate() {
|
||||
let depth = path.segments.len() - i - 1;
|
||||
if let Some(ref args) = segment.args {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue