Fix tests most unused pattern variable warnings#3286
Closed
erickt wants to merge 6 commits into
Closed
Conversation
Contributor
|
@nikomatsakis perhaps you can review this. Are we confident that none of these unused patterns indicate bugs? |
Contributor
Author
|
By the way, I just rebased this onto HEAD to merge in the Some/None changes. |
Contributor
|
@brson I'll take a look. |
Contributor
There was a problem hiding this comment.
@graydon this was one line that I was unsure about. It seemed like it could be a bug...? But prob not
Contributor
|
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. |
Contributor
|
This is merged. |
RalfJung
pushed a commit
to RalfJung/rust
that referenced
this pull request
Feb 17, 2024
Automatic Rustup
jaisnan
pushed a commit
to jaisnan/rust-dev
that referenced
this pull request
Jul 29, 2024
Dependency upgrade resulting from `cargo update`. Co-authored-by: tautschnig <1144736+tautschnig@users.noreply.github.com> Co-authored-by: Zyad Hassan <88045115+zhassan-aws@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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_botseems like it should be a variant, but it doesn't exist.