We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
request handler panicked: Can't find [email protected] in AstIdMap
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
In this code
struct Foo; macro_rules! Fooo { () => { Foo } } trait Trait<T> { type Ty: Trait<T>; } impl Trait<Fooo!()> for () { // <<--- “Implement missing members” } fn main() { println!("Hello, world!"); }
I’m executing Implement missing members quick fix at the location indicated.
Implement missing members
Error message:
request handler panicked: Can't find [email protected] in AstIdMap: [SyntaxNodePtr { kind: STRUCT, range: 0..11 }, SyntaxNodePtr { kind: MACRO_RULES, range: 13..52 }, SyntaxNodePtr { kind: TRAIT, range: 54..95 }, SyntaxNodePtr { kind: IMPL, range: 97..132 }, SyntaxNodePtr { kind: FN, range: 134..178 }, SyntaxNodePtr { kind: TYPE_ALIAS, range: 75..93 }, SyntaxNodePtr { kind: MACRO_CALL, range: 108..115 }, SyntaxNodePtr { kind: BLOCK_EXPR, range: 144..178 }, SyntaxNodePtr { kind: MACRO_CALL, range: 150..175 }]
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rust-analyzer version: 0.3.1665-standalone
rustc version: (eg. output of rustc -V)
rustc -V
rustc 1.74.0-nightly (65ea825f4 2023-09-18)
relevant settings: (eg. client settings, or environment variables like CARGO, RUSTC, RUSTUP_HOME or CARGO_HOME) (I don’t think these are relevant)
CARGO
RUSTC
RUSTUP_HOME
CARGO_HOME
The text was updated successfully, but these errors were encountered:
probably similar issue to #10388 (we really need a type hir mapping, otherwise this will keep happening wth type macros i reckon)
Sorry, something went wrong.
Successfully merging a pull request may close this issue.
In this code
I’m executing
Implement missing members
quick fix at the location indicated.Error message:
rust-analyzer version: (eg. output of "rust-analyzer: Show RA Version" command, accessible in VSCode via Ctrl/⌘+Shift+P)
rustc version: (eg. output of
rustc -V
)relevant settings: (eg. client settings, or environment variables like
CARGO
,RUSTC
,RUSTUP_HOME
orCARGO_HOME
)(I don’t think these are relevant)
The text was updated successfully, but these errors were encountered: