We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 99be522 commit fed1709Copy full SHA for fed1709
clippy_lints/src/misc_early.rs
@@ -199,6 +199,10 @@ declare_clippy_lint! {
199
/// **What it does:** Checks for tuple patterns with a wildcard
200
/// pattern (`_`) is next to a rest pattern (`..`).
201
///
202
+ /// _NOTE_: While `_, ..` means there is at least one element left, `..`
203
+ /// means there are 0 or more elements left. This can make a difference
204
+ /// when refactoring, but shouldn't result in errors in the refactored code,
205
+ /// since the wildcard pattern isn't used anyway.
206
/// **Why is this bad?** The wildcard pattern is unneeded as the rest pattern
207
/// can match that element as well.
208
0 commit comments