You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Rust-analyzer correctly determines that x in the format string is a named parameter that isn't specified in the function arguments, but renaming symbol x doesn't change it in the string. However, rust-analyzer then picks up that the identifier x doesn't exist anymore. If rust-analyzer is checking the named parameters for format strings and making sure they exist (and type check them to make sure they impl Display), I would expect it to also be able to rename it properly.
The text was updated successfully, but these errors were encountered:
Uh oh!
There was an error while loading. Please reload this page.
rust-analyzer version: rust-analyzer version: 0.0.0 (9eaf96c 2022-06-27)
rustc version: rustc 1.61.0 (fe5b13d68 2022-05-18)
relevant settings: N/A
As an example:
Rust-analyzer correctly determines that
x
in the format string is a named parameter that isn't specified in the function arguments, but renaming symbolx
doesn't change it in the string. However, rust-analyzer then picks up that the identifierx
doesn't exist anymore. If rust-analyzer is checking the named parameters for format strings and making sure they exist (and type check them to make sure they implDisplay
), I would expect it to also be able to rename it properly.The text was updated successfully, but these errors were encountered: