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

Match arm assist is confused by use Enum::* #4749

Open
Veetaha opened this issue Jun 4, 2020 · 1 comment
Open

Match arm assist is confused by use Enum::* #4749

Veetaha opened this issue Jun 4, 2020 · 1 comment
Labels
A-assists A-pattern pattern handling related things E-unknown It's unclear if the issue is E-hard or E-easy without digging in S-actionable Someone could pick this issue up and work on it right now

Comments

@Veetaha
Copy link
Contributor

Veetaha commented Jun 4, 2020

Match arm assist incorrectly detects missing match arms when enum members have multiple ways to be referenced (I suppose):
bug_match_arms

Code from repro:

enum Foo {
    Bar
}
use Foo::*;

fn main() {
    match Foo::Bar {
        Foo::Bar => {}
    }
}
@matklad matklad added the E-unknown It's unclear if the issue is E-hard or E-easy without digging in label Jul 11, 2020
@lnicola lnicola added the S-actionable Someone could pick this issue up and work on it right now label Jan 17, 2021
@jonas-schievink
Copy link
Contributor

Triage: Still an issue, but unrelated to inner item support.

@Nadrieril Nadrieril added the A-pattern pattern handling related things label Jan 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-assists A-pattern pattern handling related things E-unknown It's unclear if the issue is E-hard or E-easy without digging in S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

No branches or pull requests

6 participants