-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Incorrect suggestion location for import with outer attribute at top of file #55335
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
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
This is the code that selects the suggestion span: rust/src/librustc_resolve/lib.rs Lines 634 to 700 in f99911a
|
This is caused by #45216. The suggestion is correct if the derive attribute is replaced by |
Current output:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-diagnostics
Area: Messages for errors, warnings, and lints
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
E.g.,
gives
Note that line 2 is between the derive and the the struct.
Moved from rust-lang/rls#1085
The text was updated successfully, but these errors were encountered: