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

Racer shouldn't need type annotations to understand enum variants #785

Closed
TedDriggs opened this issue Aug 8, 2017 · 1 comment
Closed
Assignees

Comments

@TedDriggs
Copy link
Contributor

Repro code:

fn foo() {
    let bar = Some("Hello");
    bar.unwrap_or_d~efault();
}

Expected: Completion at the cursor should find unwrap_or_default
Observed: Completion finds nothing, because it "can't find the type of an EnumVariant"

The least invasive fix seems to be identifying the call to the enum variant and resolving its parent enum type.

@TedDriggs TedDriggs self-assigned this Aug 8, 2017
@kngwyu kngwyu mentioned this issue Feb 8, 2018
@kngwyu kngwyu closed this as completed May 10, 2018
@kngwyu
Copy link
Collaborator

kngwyu commented May 10, 2018

Closed via #825

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants