Don't require visit_body
to take a lifetime that must outlive the function call
This commit is contained in:
parent
5870f1ccbb
commit
ceb45d5519
20 changed files with 27 additions and 31 deletions
|
@ -4748,7 +4748,7 @@ impl<'v> Visitor<'v> for ReturnsVisitor<'v> {
|
|||
}
|
||||
}
|
||||
|
||||
fn visit_body(&mut self, body: &'v hir::Body<'v>) {
|
||||
fn visit_body(&mut self, body: &hir::Body<'v>) {
|
||||
assert!(!self.in_block_tail);
|
||||
self.in_block_tail = true;
|
||||
hir::intravisit::walk_body(self, body);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue