#[tokio::main]
proc macro attaches questionable spans to user code
#5518
Labels
A-tokio-macros
Area: The tokio-macros crate
C-request
Category: A non-feature request, e.g.: metadata updates, optimization suggestion, etc.
E-help-wanted
Call for participation: Help is requested to fix this issue.
E-medium
Call for participation: Experience needed to fix: Medium / intermediate
Version
tokio-macros 1.8.2
Platform
n/a
Description
In the following code, the
variable;
statement has incorrect spans attached to itself:The spans of
variable;
point totokio::runtime::Builder::new_multi_thread()
in the output of the macro. This causes rust-analyzer to (correctly) highlightvariable
as a function call and to show thenew_multi_thread
function on hover.Please consider not doing this, as it degrades IDE functionality.
The text was updated successfully, but these errors were encountered: