Skip to content

In irrefutable patterns, the FieldPat is skipped, which means the name: field is not printed - #165021

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
AlexCeleste:thir-missing-fieldpat-names
Nov 11, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
AlexCeleste:thir-missing-fieldpat-names

Conversation

@AlexCeleste

@AlexCeleste AlexCeleste commented Oct 27, 2026 •

Copy link
Copy Markdown
Contributor

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

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Oct 27, 2026
@rustbot

rustbot commented Oct 27, 2026

Copy link
Copy Markdown
Collaborator

r? @adwinwhite

rustbot has assigned @adwinwhite.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 77 candidates
  • Random selection from 20 candidates

@AlexCeleste
AlexCeleste force-pushed the thir-missing-fieldpat-names branch from a49133d to 75409b3 Compare October 27, 2026 05:46
@fmease fmease changed the title In irrefutable patterns, the FieldPat is skipped, which means the nam… In irrefutable patterns, the FieldPat is skipped, which means the name: field is not printed Nov 3, 2026

@adwinwhite adwinwhite left a comment •

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 6, 2026
@rustbot

rustbot commented Nov 6, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@AlexCeleste

Copy link
Copy Markdown
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 6, 2026
@adwinwhite adwinwhite added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 10, 2026
@adwinwhite

Copy link
Copy Markdown
Contributor

Thanks!

@bors rollup
@bors r+ squash

@rust-bors

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)
@rust-bors

rust-bors Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

🔨 5 commits were squashed into 886a3f1.

@rust-bors

rust-bors Bot commented Nov 11, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 886a3f1 has been tentatively approved by adwinwhite

It will be put into the queue for this repository once PR CI succeeds.

@rust-bors
rust-bors Bot force-pushed the thir-missing-fieldpat-names branch from c64c8b0 to 886a3f1 Compare November 11, 2026 02:18
@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 11, 2026
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
rust-bors Bot merged commit e6d6a84 into rust-lang:main Nov 11, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 11, 2026
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)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants