-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Open
Labels
A-completionautocompletionautocompletionA-macromacro expansionmacro expansionC-bugCategory: bugCategory: bug
Description
rust-analyzer version: 0.3.2539-standalone
rustc version: rustc 1.90.0-nightly (a84ab0c 2025-07-06)
editor or extension: Vscode, Rust Analyzer
relevant settings: N/A
code snippet to reproduce:
use std::convert::identity;
fn main() {
let num = 42;
println!("{}", identity(num.re))
}
Rust Analyzer Suggestions:

After writing the whole keyword:

This issue is kind of difficult to reproduce, as everything works as expected in e.g. the dbg!
macro, outside of a macro, or when removing the outer identity function. I am not sure exactly what triggers it, but this combination of a println!
and the identity function is enough to trigger it.
Metadata
Metadata
Assignees
Labels
A-completionautocompletionautocompletionA-macromacro expansionmacro expansionC-bugCategory: bugCategory: bug