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
In this case the macro isnt the problem, the same happens if you remove the !, the problem are the parentheses.
would a newtype wrapper over the text ranges we want in an edit prevent these issues?
We already have such a thing technically, FileRange which contains a FileId (opposed to a HirFileId, so that range is always a non-macro range). Usually the file id is just redundant which is why its barely used in these cases.
Veykril
changed the title
move_format_string_arg issue if arguments contains macro
move_format_string_arg issue if arguments contain parentheses/token trees
Sep 19, 2022
rust-analyzer version:
0.3.1212-standalone
rustc version:
rustc 1.63.0 (4b91a6ea7 2022-08-08)
relevant settings: nothing
I found a little glitch in the amazing
move_format_string_arg
:Apply assistant to
{x + x}
transform it inThe text was updated successfully, but these errors were encountered: