proc macro errors are attached to the wrong location in diagnostics. #12657
Labels
A-diagnostics
diagnostics / error reporting
A-macro
macro expansion
C-bug
Category: bug
S-actionable
Someone could pick this issue up and work on it right now
I'm using
tokio::main
from the tokio 1.19 crate as an example here, but this seems to occur with any proc macro:Consider the following code where "heck" produces a proc macro error:
The diagnostics is attached to a seemingly random line:
rust-analyzer version: 0.0.0 (b0102bd 2022-06-28)
rustc 1.63.0-nightly (12cd71f4d 2022-06-01)
The text was updated successfully, but these errors were encountered: