We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We should rewrite this lint as a PreExpansionPass. We should rewrite a lot of lints as PreExpansionPasses...
PreExpansionPass
error: you seem to be trying to use match for destructuring a single pattern. Consider using `if let` --> $DIR/matches.rs:40:5 | 40 | / match tup { 41 | | &(v, 1) => println!("{}", v), 42 | | _ => println!("none"), 43 | | } | |_____^ help: try this | 40 | if let &(v, 1) = tup { 41 | # [ cfg ( not ( stage0 ) ) ] { 42 | ( $ crate :: io :: _print ( format_args_nl ! ( $ ( $ arg ) * ) ) ) ; } # [ 43 | cfg ( stage0 ) ] { print ! ( "{}/n" , format_args ! ( $ ( $ arg ) * ) ) } } else { 44 | ( $ crate :: io :: _print ( format_args_nl ! ( $ ( $ arg ) * ) ) ) ; } |
The text was updated successfully, but these errors were encountered:
Is the PreExpansion pass a recently introduced lint pass?
Sorry, something went wrong.
Yep rust-lang/rust#52375
I'm not sure how to reproduce this. Probably obsolete. And pre-expansion passes are discouraged these days.
No branches or pull requests
We should rewrite this lint as a
PreExpansionPass
. We should rewrite a lot of lints asPreExpansionPass
es...The text was updated successfully, but these errors were encountered: