1
Fork 0

hir: Use InferArg in ArrayLen::Infer

This commit is contained in:
Vadim Petrochenkov 2024-01-27 18:59:20 +03:00
parent 5f8030dcc9
commit b2b5b91bfb
8 changed files with 16 additions and 11 deletions

View file

@ -146,8 +146,8 @@ impl<'v> Visitor<'v> for HirPlaceholderCollector {
}
}
fn visit_array_length(&mut self, length: &'v hir::ArrayLen) {
if let &hir::ArrayLen::Infer(_, span) = length {
self.0.push(span);
if let hir::ArrayLen::Infer(inf) = length {
self.0.push(inf.span);
}
intravisit::walk_array_len(self, length)
}