Skip to content
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

Missing derive macro suggests importing regular macro #88228

Closed
m-ou-se opened this issue Aug 22, 2021 · 0 comments · Fixed by #88229
Closed

Missing derive macro suggests importing regular macro #88228

m-ou-se opened this issue Aug 22, 2021 · 0 comments · Fixed by #88229
Assignees
Labels
A-diagnostics Area: Messages for errors, warnings, and lints C-bug Category: This is a bug. D-confusing Diagnostics: Confusing error or lint that should be reworked. D-invalid-suggestion Diagnostics: A structured suggestion resulting in incorrect code. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Comments

@m-ou-se
Copy link
Member

m-ou-se commented Aug 22, 2021

Found while working on #88206

error: cannot find derive macro `println` in this scope
  --> src/main.rs:16:10
   |
16 | #[derive(println)]
   |          ^^^^^^^
   |
   = note: consider importing this macro:
           std::println
@m-ou-se m-ou-se added A-diagnostics Area: Messages for errors, warnings, and lints T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. D-confusing Diagnostics: Confusing error or lint that should be reworked. D-invalid-suggestion Diagnostics: A structured suggestion resulting in incorrect code. C-bug Category: This is a bug. labels Aug 22, 2021
@m-ou-se m-ou-se self-assigned this Aug 22, 2021
@bors bors closed this as completed in 518b27b Aug 22, 2021
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-bug Category: This is a bug. D-confusing Diagnostics: Confusing error or lint that should be reworked. D-invalid-suggestion Diagnostics: A structured suggestion resulting in incorrect code. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant