-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
No error emitted for use clippy;
#83334
Comments
This is working as expected, "Cannot use through an import" errors are reported for attributes that are detected textually by their users (tool attributes by tools, derive helpers by proc macros, built-in attributes by rustc), and renaming would break their use.
|
Hmm, interesting. By the way, why doesn't
|
Interestingly, this doesn't work with |
Because lint naming has zero relation to name resolution. |
I was asking because I thought tool modules might be allowed to be imported because you could rename them, but I guess it's niche enough that there hasn't been a need. I'll close this issue then. |
errors with
but
just says
Note that actually using the import gives an error:
Found this while playing around with the MCVE in #83317.
The text was updated successfully, but these errors were encountered: