-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Fix tests most unused pattern variable warnings #3286
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
Conversation
@nikomatsakis perhaps you can review this. Are we confident that none of these unused patterns indicate bugs? |
By the way, I just rebased this onto HEAD to merge in the Some/None changes. |
@brson I'll take a look. |
@@ -378,7 +378,7 @@ impl printer { | |||
if !self.scan_stack_empty { | |||
let x = self.scan_top(); | |||
match copy self.token[x] { | |||
BEGIN(b) => { | |||
BEGIN(_) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@graydon this was one line that I was unsure about. It seemed like it could be a bug...? But prob not
I think it's pretty reasonable. There's only so many of those diffs you can look at until your eyes glaze over, but I didn't see anything that looked suspicious. |
This is merged. |
Automatic Rustup
Dependency upgrade resulting from `cargo update`. Co-authored-by: tautschnig <[email protected]> Co-authored-by: Zyad Hassan <[email protected]>
I almost fixed all the unused variable warnings, and found a couple cases where we weren't properly using an enum because it wasn't imported. There were a couple I didn't know how to handle though:
I'm not quite sure what the
sty @ ty::ty_fn(...)
means, andre_bot
seems like it should be a variant, but it doesn't exist.