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

No completion after vec! #12644

Closed
lnicola opened this issue Jun 27, 2022 · 2 comments · Fixed by #12668
Closed

No completion after vec! #12644

lnicola opened this issue Jun 27, 2022 · 2 comments · Fixed by #12668
Labels
A-completion autocompletion C-bug Category: bug S-actionable Someone could pick this issue up and work on it right now

Comments

@lnicola
Copy link
Member

lnicola commented Jun 27, 2022

vec![1, 2, 3]. and vec!(1, 2, 3). don't return any completions, while (vec![1, 2, 3]). works.

@lnicola lnicola added A-completion autocompletion S-actionable Someone could pick this issue up and work on it right now C-bug Category: bug labels Jun 27, 2022
@Veykril
Copy link
Member

Veykril commented Jun 27, 2022

Looks like we don't record the macro call expression itself at all when lowering to HIR, given our HIR doesn't have a macro call expression.

@Veykril
Copy link
Member

Veykril commented Jun 28, 2022

Repro:

macro_rules! __rust_force_expr {
    ($e:expr) => {
        $e
    };
}
macro_rules! foo {
    ($elem:expr) => {
        __rust_force_expr!($elem)
    };
}
foo![0].$0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-completion autocompletion C-bug Category: bug S-actionable Someone could pick this issue up and work on it right now
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants