Excess placeholders in format string cause some errors to be silent #13130
Labels
A-diagnostics
diagnostics / error reporting
A-vscode
vscode plugin issues
C-bug
Category: bug
S-actionable
Someone could pick this issue up and work on it right now
rust-analyzer version: rust-analyzer version: 0.3.1178-standalone (a670ff8 2022-08-21)
rustc version: rustc 1.63.0 (4b91a6ea7 2022-08-08)
All 3 lines in
main()
have an error, but only the labeled one shows up for me in VSCode. After removing theformat!
line, the unknown value error properly shows up forundeclared;
. 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.The text was updated successfully, but these errors were encountered: