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

Suppress unused_qualifications lint #92

Merged
merged 2 commits into from Jun 15, 2020
Merged

Suppress unused_qualifications lint #92

merged 2 commits into from Jun 15, 2020

Conversation

dtolnay
Copy link
Owner

@dtolnay dtolnay commented Jun 15, 2020

Expansion of derive(Error) macro can't know whether something like std::error::Error is already imported in the caller's scope so it must emit qualified paths and suppress unused_qualifications.

Fixes #91.

@dtolnay dtolnay merged commit bcb60bd into master Jun 15, 2020
@dtolnay dtolnay deleted the qual branch June 15, 2020 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Macro triggers unused_qualifications lint
1 participant