Skip to content

[WIP] Lint self-overlapping or-patterns under guard#143541

Closed
Nadrieril wants to merge 1 commit intorust-lang:masterfrom
Nadrieril:lint-overlapping-or-pat-under-guard
Closed

[WIP] Lint self-overlapping or-patterns under guard#143541
Nadrieril wants to merge 1 commit intorust-lang:masterfrom
Nadrieril:lint-overlapping-or-pat-under-guard

Conversation

@Nadrieril
Copy link
Copy Markdown
Member

This adds an error on or-patterns under match guard that may cause the guard to be run more than once, such as true | true if f(). This is for crater purposes.

r? ghost

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

5 participants