-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Closed
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingA-macromacro expansionmacro expansionC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now
Description
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:
#[tokio::main(heck)]
async fn main() {}
fn world() {
println!("hello");
println!("hello");
println!("hello");
println!("hello");
println!("hello");
println!("hello");
println!("hello");
println!("hello");
println!("hello");
}
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)
cynecx
Metadata
Metadata
Assignees
Labels
A-diagnosticsdiagnostics / error reportingdiagnostics / error reportingA-macromacro expansionmacro expansionC-bugCategory: bugCategory: bugS-actionableSomeone could pick this issue up and work on it right nowSomeone could pick this issue up and work on it right now