-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggest the pat_param
specifier before |
on 2021 edition
#91385
Conversation
We have a migration warning but no lint for users who have enabled the new edition.
20e5371
to
4c1d317
Compare
This comment has been minimized.
This comment has been minimized.
The test in the third commit seems to be the same as the one in the second. I guess one is supposed to not have |
Looks like a great improvement! |
@ecstatic-morse yeah, that seems like a preexisting mistake (the path implies that these might be duplicated to begin with). I would remove the edition flag on one of them (and rename it to make it clearer it is <=2018). r=me with that change and squashed commits. |
So there's already another pre-2021 test that is identical |
@bors r+ |
📌 Commit bfd95e1 has been approved by |
…askrgr Rollup of 7 pull requests Successful merges: - rust-lang#90538 (Document how recursion is handled for `ty::Ty`) - rust-lang#90851 (Add unchecked downcast methods) - rust-lang#91209 (Implement ``@snapshot`` check for htmldocck) - rust-lang#91385 (Suggest the `pat_param` specifier before `|` on 2021 edition ) - rust-lang#91478 (Remove incorrect newline from float cast suggestion) - rust-lang#91481 (Use let_else in some more places in rustc_lint) - rust-lang#91488 (Fix ICE when `yield`ing in function returning `impl Trait`) Failed merges: r? `@ghost` `@rustbot` modify labels: rollup
Ran into this today after writing some Rust for the first time in a while.
r? @estebank