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
+1 -1
View File
@@ -89,7 +89,7 @@ fn check_expr(&mut self, cx: &EarlyContext<'_>, e: &ast::Expr) {
}
}
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! {