-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
bad suggestion line for use
statements with a derive
#44995
Comments
use
statements with a deriveuse
statements with a derive
use
statements with a deriveuse
statements with a derive
This remains after the regression in #44566 was fixed. |
As mentioned in #44566, this is impossible to fix right now, because these attributes do not exist anymore at the lint stage. Solutions are noted in #44215 (comment) |
cc #45216. |
Can this be given a higher priority, it seems to me like a big gotcha for beginners. An additional way to fix this might be to track the location where |
This now suggests the right span.
|
After #44215, this gives the following error message:
This suggests placing the
use
-statement at line 2, which is between the#[derive]
and thepub struct X;
line, while we want to place theuse
statement before the#[derive]
.cc @oli-obk
The text was updated successfully, but these errors were encountered: