Skip to content

Add test for matches in rustc_must_match_exhaustively - #157668

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jdonszelmann:matches-must-match-exhaustively
Jun 10, 2026
Merged

Add test for matches in rustc_must_match_exhaustively#157668
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
jdonszelmann:matches-must-match-exhaustively

Conversation

@jdonszelmann

Copy link
Copy Markdown
Contributor

@rustbotrustbot 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 Jun 9, 2026
lqd
lqd approved these changes Jun 9, 2026

@lqdlqd left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

r=me if you don't need lcnr's approval per se :)

View changes since this review

@jdonszelmann

Copy link
Copy Markdown
ContributorAuthor

I don't <3, @bors r=lqd rollup

@rust-bors

rust-borsBot commented Jun 9, 2026

Copy link
Copy Markdown
Contributor

📌 Commit ca657d2 has been approved by lqd

It is now in the queue for this repository.

@rust-borsrust-borsBot 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-review Status: Awaiting review from the assignee but also interested parties. labels Jun 9, 2026
GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request Jun 9, 2026
…haustively, r=lqd
Add test for matches in `rustc_must_match_exhaustively`
r? @lcnr
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 9, 2026
…haustively, r=lqd
Add test for matches in `rustc_must_match_exhaustively`
r? @lcnr
@jhprattjhpratt mentioned this pull request Jun 9, 2026
rust-borsBot pushed a commit that referenced this pull request Jun 9, 2026
Rollup of 18 pull requests
Successful merges:
- #152852 (Remove driver_lint_caps)
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
@jhprattjhpratt mentioned this pull request Jun 9, 2026
rust-borsBot pushed a commit that referenced this pull request Jun 9, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
rust-borsBot pushed a commit that referenced this pull request Jun 10, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
rust-borsBot pushed a commit that referenced this pull request Jun 10, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
rust-borsBot pushed a commit that referenced this pull request Jun 10, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
rust-borsBot pushed a commit that referenced this pull request Jun 10, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
rust-borsBot pushed a commit that referenced this pull request Jun 10, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
rust-borsBot pushed a commit that referenced this pull request Jun 10, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
rust-borsBot pushed a commit that referenced this pull request Jun 10, 2026
Rollup of 17 pull requests
Successful merges:
- #157166 (Change type of async context parameter after state transform.)
- #157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- #157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- #157571 (Remove ProcMacro enum from proc macro ABI)
- #148183 (rustdoc: Test & document `test_harness` code block attribute)
- #153847 (Fix marker trait winnowing depending on impl order)
- #156067 (Fix async drop glue for Box<T>)
- #156399 (fix improper ctypes in Znext solver)
- #157338 (Make `Literal::byte_character_value` work with bytes as well)
- #157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- #157605 (Arg splat experiment - syntax impl)
- #157630 (Add multibyte JSON diagnostic regression test)
- #157633 (Reorder `impl` restriction rendering and add bottom margin)
- #157642 (Report duplicate relaxed bounds during ast lowering)
- #157652 (fix doc for unicode normalization faq on `casefold` APIs)
- #157661 (Update to ar_archive_writer v0.5.2)
- #157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- #157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
@rust-bors
rust-borsBot merged commit 063064a into rust-lang:mainJun 10, 2026
12 checks passed
rust-timer added a commit that referenced this pull request Jun 10, 2026
Rollup merge of #157668 - jdonszelmann:matches-must-match-exhaustively, r=lqd
Add test for matches in `rustc_must_match_exhaustively`
r? @lcnr
@rustbotrustbot added this to the 1.98.0 milestone Jun 10, 2026
pullBot pushed a commit to Kokoro2336/rust-analyzer that referenced this pull request Jun 11, 2026
Rollup of 17 pull requests
Successful merges:
- rust-lang/rust#157166 (Change type of async context parameter after state transform.)
- rust-lang/rust#157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- rust-lang/rust#157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- rust-lang/rust#157571 (Remove ProcMacro enum from proc macro ABI)
- rust-lang/rust#148183 (rustdoc: Test & document `test_harness` code block attribute)
- rust-lang/rust#153847 (Fix marker trait winnowing depending on impl order)
- rust-lang/rust#156067 (Fix async drop glue for Box<T>)
- rust-lang/rust#156399 (fix improper ctypes in Znext solver)
- rust-lang/rust#157338 (Make `Literal::byte_character_value` work with bytes as well)
- rust-lang/rust#157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- rust-lang/rust#157605 (Arg splat experiment - syntax impl)
- rust-lang/rust#157630 (Add multibyte JSON diagnostic regression test)
- rust-lang/rust#157633 (Reorder `impl` restriction rendering and add bottom margin)
- rust-lang/rust#157642 (Report duplicate relaxed bounds during ast lowering)
- rust-lang/rust#157652 (fix doc for unicode normalization faq on `casefold` APIs)
- rust-lang/rust#157661 (Update to ar_archive_writer v0.5.2)
- rust-lang/rust#157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- rust-lang/rust#157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
ghaaj pushed a commit to ghaaj/polygrammar that referenced this pull request Aug 7, 2026
Rollup of 17 pull requests
Successful merges:
- rust-lang/rust#157166 (Change type of async context parameter after state transform.)
- rust-lang/rust#157335 (bootstrap: Handle dotted table keys when parsing bootstrap.toml)
- rust-lang/rust#157503 (Disable `tests/debuginfo/pretty-std.rs` `OsString` cdb check)
- rust-lang/rust#157571 (Remove ProcMacro enum from proc macro ABI)
- rust-lang/rust#148183 (rustdoc: Test & document `test_harness` code block attribute)
- rust-lang/rust#153847 (Fix marker trait winnowing depending on impl order)
- rust-lang/rust#156067 (Fix async drop glue for Box<T>)
- rust-lang/rust#156399 (fix improper ctypes in Znext solver)
- rust-lang/rust#157338 (Make `Literal::byte_character_value` work with bytes as well)
- rust-lang/rust#157410 (Implement rustc_public::CrateDef{,Type} for FieldDef)
- rust-lang/rust#157605 (Arg splat experiment - syntax impl)
- rust-lang/rust#157630 (Add multibyte JSON diagnostic regression test)
- rust-lang/rust#157633 (Reorder `impl` restriction rendering and add bottom margin)
- rust-lang/rust#157642 (Report duplicate relaxed bounds during ast lowering)
- rust-lang/rust#157652 (fix doc for unicode normalization faq on `casefold` APIs)
- rust-lang/rust#157661 (Update to ar_archive_writer v0.5.2)
- rust-lang/rust#157668 (Add test for matches in `rustc_must_match_exhaustively`)
Failed merges:
- rust-lang/rust#157670 (Rename `errors.rs` file to `diagnostics.rs` (4/N))
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-compilerRelevant 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

@jdonszelmann@lqd@lcnr@rustbot