-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingA-vscodevscode plugin issuesvscode plugin issuesC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
rust-analyzer version: rust-analyzer version: 0.3.1178-standalone (a670ff8 2022-08-21)
rustc version: rustc 1.63.0 (4b91a6ea7 2022-08-08)
fn main() {
format!("{}{}", undeclared);
undeclared;
type; // <-- red underline
}
All 3 lines in main()
have an error, but only the labeled one shows up for me in VSCode. After removing the format!
line, the unknown value error properly shows up for undeclared;
. Moving the lines and adding different errors mostly shows that some error types consistently don't show up near the macro invocation, and others do.
Interestingly, format!("{}", two, things);
displays the correct errors, so not any placeholder/argument count mismatch causes this. {:?}
placeholders cause the same issue.
Metadata
Metadata
Assignees
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingA-vscodevscode plugin issuesvscode plugin issuesC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now