diff options
| author | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-05-29 09:08:22 +0000 |
|---|---|---|
| committer | Oli Scherer <git-spam-no-reply9815368754983@oli-obk.de> | 2024-05-29 10:04:08 +0000 |
| commit | ceb45d55190eb00d30b8762bc4c34cf71c53b637 (patch) | |
| tree | af6ffc2dd4e90d69a9ee6359b76b0e4ce01c633d /compiler/rustc_lint/src/late.rs | |
| parent | 5870f1ccbbb2661c92cdc356231386210a64d723 (diff) | |
| download | rust-ceb45d55190eb00d30b8762bc4c34cf71c53b637.tar.gz rust-ceb45d55190eb00d30b8762bc4c34cf71c53b637.zip | |
Don't require `visit_body` to take a lifetime that must outlive the function call
Diffstat (limited to 'compiler/rustc_lint/src/late.rs')
| -rw-r--r-- | compiler/rustc_lint/src/late.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_lint/src/late.rs b/compiler/rustc_lint/src/late.rs index b638ab10e11..aa328fb87b2 100644 --- a/compiler/rustc_lint/src/late.rs +++ b/compiler/rustc_lint/src/late.rs @@ -125,7 +125,7 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas }); } - fn visit_body(&mut self, body: &'tcx hir::Body<'tcx>) { + fn visit_body(&mut self, body: &hir::Body<'tcx>) { lint_callback!(self, check_body, body); hir_visit::walk_body(self, body); lint_callback!(self, check_body_post, body); |
