Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add match pattern diagnostics regression test #81897

Conversation

vandenheuvel
Copy link
Contributor

@vandenheuvel vandenheuvel commented Feb 8, 2021

Closes #72377 by adding a regression test.

This test case fails on stable but now works on beta and nightly. It should have worked already for years, the crucial point whether it is mentioned that some uncovered patterns are not explicitly mentioned.

@rust-highfive
Copy link
Collaborator

r? @Mark-Simulacrum

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 8, 2021
@rust-log-analyzer

This comment has been minimized.

@vandenheuvel vandenheuvel force-pushed the match_exhaustive_diagnostics_regression_test branch from 0b61d07 to 1bcd946 Compare February 8, 2021 22:26
@rust-log-analyzer

This comment has been minimized.

@vandenheuvel vandenheuvel force-pushed the match_exhaustive_diagnostics_regression_test branch from 1bcd946 to 451f591 Compare February 8, 2021 23:09
@rust-log-analyzer

This comment has been minimized.

@vandenheuvel vandenheuvel force-pushed the match_exhaustive_diagnostics_regression_test branch from 451f591 to e3bfc24 Compare February 9, 2021 11:04
@rust-log-analyzer

This comment has been minimized.

@vandenheuvel vandenheuvel force-pushed the match_exhaustive_diagnostics_regression_test branch from e3bfc24 to 5339b43 Compare February 9, 2021 12:07
@vandenheuvel vandenheuvel marked this pull request as ready for review February 9, 2021 13:15
@Mark-Simulacrum
Copy link
Member

r=me with spuriously added timings.ods removed

@Mark-Simulacrum Mark-Simulacrum 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 Feb 13, 2021
@vandenheuvel vandenheuvel force-pushed the match_exhaustive_diagnostics_regression_test branch from 5339b43 to 5fe8490 Compare February 13, 2021 13:13
@vandenheuvel
Copy link
Contributor Author

@Mark-Simulacrum removed that, thanks for paying attention.

@Mark-Simulacrum
Copy link
Member

@bors r+ rollup

@bors
Copy link
Contributor

bors commented Feb 14, 2021

📌 Commit 5fe8490 has been approved by Mark-Simulacrum

@bors bors 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 Feb 14, 2021
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Feb 15, 2021
…ostics_regression_test, r=Mark-Simulacrum

Add match pattern diagnostics regression test

Closes rust-lang#72377 by adding a regression test.

This test case fails on stable but now works on beta and nightly. It *should* have worked already for years, the crucial point whether it is mentioned that some uncovered patterns are not explicitly mentioned.
JohnTitor added a commit to JohnTitor/rust that referenced this pull request Feb 15, 2021
…ostics_regression_test, r=Mark-Simulacrum

Add match pattern diagnostics regression test

Closes rust-lang#72377 by adding a regression test.

This test case fails on stable but now works on beta and nightly. It *should* have worked already for years, the crucial point whether it is mentioned that some uncovered patterns are not explicitly mentioned.
bors added a commit to rust-lang-ci/rust that referenced this pull request Feb 16, 2021
…as-schievink

Rollup of 19 pull requests

Successful merges:

 - rust-lang#81503 (Suggest to create a new `const` item if the `fn` in the array is a `const fn`)
 - rust-lang#81897 (Add match pattern diagnostics regression test)
 - rust-lang#81975 (Seal the CommandExt, OsStrExt and OsStringExt traits)
 - rust-lang#82009 (const_generics: Dont evaluate array length const when handling errors)
 - rust-lang#82060 (Fix typos in BTreeSet::{first, last} docs)
 - rust-lang#82061 (CTFE validation: catch ReadPointerAsBytes and better error)
 - rust-lang#82063 (Fixed minor typo in catch_unwind docs)
 - rust-lang#82067 (const_generics: Fix incorrect ty::ParamEnv::empty() usage)
 - rust-lang#82077 (Edit `rustc_arena::DropArena` docs)
 - rust-lang#82096 (Fix a typo)
 - rust-lang#82106 (Remove unnecessary `Option` in `default_doc`)
 - rust-lang#82107 (expand: Some cleanup)
 - rust-lang#82118 (Add missing env!-decl variant)
 - rust-lang#82119 (Fix typo in link to CreateSymbolicLinkW documentation.)
 - rust-lang#82120 (Stabilize Arguments::as_str)
 - rust-lang#82129 (Remove redundant bool_to_option feature gate)
 - rust-lang#82133 (Update link for extern prelude.)
 - rust-lang#82141 (32-bit ARM: Emit `lr` instead of `r14` when specified as an `asm!` output register.)
 - rust-lang#82147 (:arrow_up: rust-analyzer)

Failed merges:

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit cd27820 into rust-lang:master Feb 16, 2021
@rustbot rustbot added this to the 1.52.0 milestone Feb 16, 2021
@vandenheuvel vandenheuvel deleted the match_exhaustive_diagnostics_regression_test branch February 17, 2021 09:05
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Message reporting missing patterns for inexhaustive match is misleading
6 participants