Skip to content

Commit dcd8c8e

Browse files
committed
Auto merge of rust-lang#77524 - Patryk27:fixes/66228, r=estebank
Rework diagnostics for wrong number of generic args (fixes rust-lang#66228 and rust-lang#71924) This PR reworks the `wrong number of {} arguments` message, so that it provides more details and contextual hints.
2 parents dfb41f4 + 2c6dc88 commit dcd8c8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clippy_lints/src/utils/hir_utils.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -744,7 +744,7 @@ impl<'a, 'tcx> SpanlessHash<'a, 'tcx> {
744744
}
745745
for segment in path.segments {
746746
segment.ident.name.hash(&mut self.s);
747-
self.hash_generic_args(segment.generic_args().args);
747+
self.hash_generic_args(segment.args().args);
748748
}
749749
},
750750
QPath::TypeRelative(ref ty, ref segment) => {

0 commit comments

Comments
 (0)