Remove unused argument from visit_poly_trait_ref
.
This commit is contained in:
parent
9ec5bda0dc
commit
7e3fd33a66
8 changed files with 21 additions and 37 deletions
|
@ -258,13 +258,9 @@ impl<'tcx, T: LateLintPass<'tcx>> hir_visit::Visitor<'tcx> for LateContextAndPas
|
|||
hir_visit::walk_where_predicate(self, p);
|
||||
}
|
||||
|
||||
fn visit_poly_trait_ref(
|
||||
&mut self,
|
||||
t: &'tcx hir::PolyTraitRef<'tcx>,
|
||||
m: hir::TraitBoundModifier,
|
||||
) {
|
||||
lint_callback!(self, check_poly_trait_ref, t, m);
|
||||
hir_visit::walk_poly_trait_ref(self, t, m);
|
||||
fn visit_poly_trait_ref(&mut self, t: &'tcx hir::PolyTraitRef<'tcx>) {
|
||||
lint_callback!(self, check_poly_trait_ref, t);
|
||||
hir_visit::walk_poly_trait_ref(self, t);
|
||||
}
|
||||
|
||||
fn visit_trait_item(&mut self, trait_item: &'tcx hir::TraitItem<'tcx>) {
|
||||
|
|
|
@ -31,7 +31,7 @@ macro_rules! late_lint_methods {
|
|||
fn check_ty(a: &$hir hir::Ty<$hir>);
|
||||
fn check_generic_param(a: &$hir hir::GenericParam<$hir>);
|
||||
fn check_generics(a: &$hir hir::Generics<$hir>);
|
||||
fn check_poly_trait_ref(a: &$hir hir::PolyTraitRef<$hir>, b: hir::TraitBoundModifier);
|
||||
fn check_poly_trait_ref(a: &$hir hir::PolyTraitRef<$hir>);
|
||||
fn check_fn(
|
||||
a: rustc_hir::intravisit::FnKind<$hir>,
|
||||
b: &$hir hir::FnDecl<$hir>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue