diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2022-08-11 22:53:08 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-11 22:53:08 +0200 |
| commit | 8237efc52d909c482092fbf60356cfca59bf8ea0 (patch) | |
| tree | 3a817b002a70d7151595c25a24a45463cc22aa4d /compiler/rustc_lint/src/levels.rs | |
| parent | cefcfda6e63f934b44368261c6972f75dbe791f6 (diff) | |
| parent | b8b851f42e9a322179526f55d3fecf2a83bfeb11 (diff) | |
Rollup merge of #100392 - nnethercote:simplify-visitors, r=cjgillot
Simplify visitors By removing some unused arguments. r? `@cjgillot`
Diffstat (limited to 'compiler/rustc_lint/src/levels.rs')
| -rw-r--r-- | compiler/rustc_lint/src/levels.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/compiler/rustc_lint/src/levels.rs b/compiler/rustc_lint/src/levels.rs index 00e96f20d1a..7ab9302d835 100644 --- a/compiler/rustc_lint/src/levels.rs +++ b/compiler/rustc_lint/src/levels.rs @@ -772,14 +772,9 @@ impl<'tcx> intravisit::Visitor<'tcx> for LintLevelMapBuilder<'tcx> { }) } - fn visit_variant( - &mut self, - v: &'tcx hir::Variant<'tcx>, - g: &'tcx hir::Generics<'tcx>, - item_id: hir::HirId, - ) { + fn visit_variant(&mut self, v: &'tcx hir::Variant<'tcx>) { self.with_lint_attrs(v.id, |builder| { - intravisit::walk_variant(builder, v, g, item_id); + intravisit::walk_variant(builder, v); }) } |
