Repository navigation
In irrefutable patterns, the FieldPat is skipped, which means the name: field is not printed - #165021
Merged
rust-bors[bot] merged 1 commit intoNov 11, 2026
Conversation
Collaborator
|
r? @adwinwhite rustbot has assigned @adwinwhite. Use Why was this reviewer chosen?The reviewer was selected based on:
|
AlexCeleste
force-pushed
the
thir-missing-fieldpat-names
branch
from
October 27, 2026 05:46
a49133d to
75409b3
Compare
fmease
reviewed
Nov 3, 2026
adwinwhite
reviewed
Nov 6, 2026
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
Contributor
Author
|
@rustbot ready |
adwinwhite
reviewed
Nov 9, 2026
Contributor
This comment has been minimized.
This comment has been minimized.
…e: field is not printed * In irrefutable patterns, the FieldPat is skipped, which means the name: field is not printed; since FieldPat can be listed out of order and the list can be incomplete, it is not generally possible to associate a given pattern within a Leaf or Variant with the actual field. the slightly janky indentation is consistent with the way the other PatKinds do it (with no comma) * avoid referring to std in THIR tests * review feedback (test too long) * review feedback (naming, explanation, test too long) * additional review feedback (test still too long)
Contributor
|
🔨 5 commits were squashed into 886a3f1. |
Contributor
rust-bors
Bot
force-pushed
the
thir-missing-fieldpat-names
branch
from
November 11, 2026 02:18
c64c8b0 to
886a3f1
Compare
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 11, 2026
Rollup of 9 pull requests Successful merges: - #165117 (std: use skip_unsupported_miri_tests to control when tests should be skipped in Miri due to missing shims) - #165727 (Normalize "beta release channel" in `const-supertrait-unstable` test) - #165750 (Wrap proc-macro `EscapeError` enum into a struct) - #164218 (Tweak private re-export errors to point at correct span and have more context) - #165021 (In irrefutable patterns, the FieldPat is skipped, which means the name: field is not printed) - #165537 (Canonicalization cleanups) - #165772 (Remove unnecessary mut from HirIdValidator::check_nested_id) - #165779 (make improper_ctypes accept `x87_f80`) - #165780 (std: map more errno values to ErrorKind on Hermit)
rust-bors Bot
pushed a commit
that referenced
this pull request
Nov 11, 2026
Rollup merge of #165021 - AlexCeleste:thir-missing-fieldpat-names, r=adwinwhite In irrefutable patterns, the FieldPat is skipped, which means the name: field is not printed since FieldPat can be listed out of order and the list can be incomplete, it is not generally possible to associate a given pattern within a Leaf or Variant with the actual field. the slightly janky indentation is consistent with the way the other PatKinds do it
mehmettoplu-rs
pushed a commit
to mehmettoplu-rs/miri
that referenced
this pull request
Nov 13, 2026
Rollup of 9 pull requests Successful merges: - rust-lang/rust#165117 (std: use skip_unsupported_miri_tests to control when tests should be skipped in Miri due to missing shims) - rust-lang/rust#165727 (Normalize "beta release channel" in `const-supertrait-unstable` test) - rust-lang/rust#165750 (Wrap proc-macro `EscapeError` enum into a struct) - rust-lang/rust#164218 (Tweak private re-export errors to point at correct span and have more context) - rust-lang/rust#165021 (In irrefutable patterns, the FieldPat is skipped, which means the name: field is not printed) - rust-lang/rust#165537 (Canonicalization cleanups) - rust-lang/rust#165772 (Remove unnecessary mut from HirIdValidator::check_nested_id) - rust-lang/rust#165779 (make improper_ctypes accept `x87_f80`) - rust-lang/rust#165780 (std: map more errno values to ErrorKind on Hermit)
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.
since FieldPat can be listed out of order and the list can be incomplete, it is not generally possible to associate a given pattern within a Leaf or Variant with the actual field.
the slightly janky indentation is consistent with the way the other PatKinds do it