Simplify rustc_ast::visit::Visitor::visit_poly_trait_ref.

It is passed an argument that is never used.
This commit is contained in:
Nicholas Nethercote 2022-08-11 11:05:26 +10:00
parent f719599c0f
commit eb688958d3

View file

@ -89,7 +89,7 @@ impl EarlyLintPass for UnusedUnit {
}
}
fn check_poly_trait_ref(&mut self, cx: &EarlyContext<'_>, poly: &ast::PolyTraitRef, _: &ast::TraitBoundModifier) {
fn check_poly_trait_ref(&mut self, cx: &EarlyContext<'_>, poly: &ast::PolyTraitRef) {
let segments = &poly.trait_ref.path.segments;
if_chain! {