-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Declaring modules inside decl macros 2.0 #46342
Comments
Name
This is a diagnostic bug, inaccessible names like
Diagnostic bug as well, erroneous imports should not be reported as unused. |
Makes sense. But it still can be exported and named by crate consumers. Is it how intended? Maybe a separate bug? |
Do you mean |
Yes. Then here is a minimal example: https://github.com/valff/hygiene_bug |
I see. |
Ok, now it is clear for me. Thank you for your time! |
There are some legitimate issues reported here. |
This no longer emits the incorrect suggestion did you mean …?:
Therefore I consider this fixed unless you'd like to see a note explaining def-site hygiene? Edit: Fixed by #90202. |
Not sure if it is a bug or confusing error messages. Consider the following code:
Playground
Output:
What is confusing:
foo
is accessible, why thenfoo::Bar
not?rustc --version --verbose
:The text was updated successfully, but these errors were encountered: