Conversation
Contributor
|
(rust_highfive has picked a reviewer for you, use r? to override) |
oli-obk
reviewed
Jun 21, 2020
|
|
||
| /// The type of value being tested. | ||
| /// This is always the same as the type of `discr`. | ||
| /// FIXME: remove this redundant information. Currently, it is relied on by pretty-printing. |
Contributor
There was a problem hiding this comment.
If you want to be more aggressive about it you can #[deprecate] it.
Member
Author
There was a problem hiding this comment.
Not sure what that would help with?
Contributor
There was a problem hiding this comment.
It would nudge people away from new usages of this field.
Contributor
|
@bors r+ |
Collaborator
|
📌 Commit 7447bf2 has been approved by |
Manishearth
added a commit
to Manishearth/rust
that referenced
this pull request
Jun 22, 2020
switch_ty is redundant This field is redundant, but we cannot remove it currently as pretty-printing relies on it (and it does not have access to `mir::Body` to compute the type itself). Cc @oli-obk @matthewjasper @jonas-schievink
bors
added a commit
to rust-lang-ci/rust
that referenced
this pull request
Jun 23, 2020
Rollup of 7 pull requests Successful merges: - rust-lang#71756 (add Windows system error codes that should map to io::ErrorKind::TimedOut) - rust-lang#73495 (Converted all platform-specific stdin/stdout/stderr implementations to use io:: traits) - rust-lang#73575 (Fix typo in error_codes doc) - rust-lang#73578 (Make is_freeze and is_copy_modulo_regions take TyCtxtAt) - rust-lang#73586 (switch_ty is redundant) - rust-lang#73600 (Fix spurious 'value moved here in previous iteration of loop' messages) - rust-lang#73610 (Clean up E0699 explanation) Failed merges: r? @ghost
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.
This field is redundant, but we cannot remove it currently as pretty-printing relies on it (and it does not have access to
mir::Bodyto compute the type itself).Cc @oli-obk @matthewjasper @jonas-schievink