-
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: rust-analyzer version: 0.3.2539-standalone (591e3b7 2025-07-13)
rustc version: rustc 1.90.0-nightly (a84ab0ce6 2025-07-06)
editor or extension: Vscode, Rust Analyzer
relevant settings: N/A
code snippet to reproduce:
struct NamedField {
out: Vec<u8>,
}
fn main() {
let s = NamedField { out: Vec::new() };
str::from_utf8(s.);
}
Expectation is an &out
field as follows:

Inside the dbg!
macro, the &out
suggestion is omitted, despite being just as useful.

Metadata
Metadata
Assignees
Labels
A-completionautocompletionautocompletionA-macromacro expansionmacro expansionC-bugCategory: bugCategory: bug