diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-03-06 17:24:13 +1100 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2024-04-16 16:29:15 +1000 |
| commit | 4b27cc8b7ab0551475ce1799e8cc43c5d1327f7e (patch) | |
| tree | 826866fa8e9f9a7f6648fcf95a17202ba84f8d7a /compiler/rustc_passes/src/upvars.rs | |
| parent | e93f75428934cce6c14b34fdb44d06affe3f4802 (diff) | |
| download | rust-4b27cc8b7ab0551475ce1799e8cc43c5d1327f7e.tar.gz rust-4b27cc8b7ab0551475ce1799e8cc43c5d1327f7e.zip | |
Avoid lots of `hir::HirId{,Map,Set}` qualifiers.
Because they're a bit redundant.
Diffstat (limited to 'compiler/rustc_passes/src/upvars.rs')
| -rw-r--r-- | compiler/rustc_passes/src/upvars.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_passes/src/upvars.rs b/compiler/rustc_passes/src/upvars.rs index 4d44e8762b0..2eed58d10bb 100644 --- a/compiler/rustc_passes/src/upvars.rs +++ b/compiler/rustc_passes/src/upvars.rs @@ -66,7 +66,7 @@ impl CaptureCollector<'_, '_> { } impl<'tcx> Visitor<'tcx> for CaptureCollector<'_, 'tcx> { - fn visit_path(&mut self, path: &hir::Path<'tcx>, _: hir::HirId) { + fn visit_path(&mut self, path: &hir::Path<'tcx>, _: HirId) { if let Res::Local(var_id) = path.res { self.visit_local_use(var_id, path.span); } |
