Autocompleting a trait that is defined in a macro omits spaces between tokens #12278
Labels
A-completion
autocompletion
A-macro
macro expansion
C-bug
Category: bug
S-actionable
Someone could pick this issue up and work on it right now
Uh oh!
There was an error while loading. Please reload this page.
rust-analyzer version:
94fa8a653 2022-05-12 nightly
rustc version:
rustc 1.62.0-nightly (de1bc0008 2022-04-21)
relevant settings: Rustup on Ubuntu 22.04, with VS Code 1.67.1
In VSCode, I typed in the following code:
When I press "enter" to autocomplete the method, the following is generated:
Note the lack of space between
&mut
andself
, as well as&mut
andu32
. This leads to a compile error when I try to compile or evenrustfmt
this code. Removing the trait from the macro prevents this from happening.The text was updated successfully, but these errors were encountered: