-
Notifications
You must be signed in to change notification settings - Fork 13.5k
suggest declaring modules when file found but module not defined #142730
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
base: master
Are you sure you want to change the base?
suggest declaring modules when file found but module not defined #142730
Conversation
@rustbot label A-diagnostics |
This comment has been minimized.
This comment has been minimized.
rustbot has assigned @petrochenkov. Use |
This comment has been minimized.
This comment has been minimized.
7174cb4
to
397c51b
Compare
c1a4a41
to
18ca511
Compare
18ca511
to
184ef96
Compare
Could you also add a new test exercising the various naming schemes (like |
184ef96
to
2f55dce
Compare
2f55dce
to
3583423
Compare
im not sure how to make a test with a normal directory structure? everything seems to use #[path = auxiliary/]... |
Well, |
@rustbot ready |
tests/ui/modules/module_suggestion_when_module_not_found/success.rs
Outdated
Show resolved
Hide resolved
tests/ui/modules/module_suggestion_when_module_not_found/suggestion.rs
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think with this file you don't need //@ ignore-auxiliary
annotations?
(Or vice versa, with //@ ignore-auxiliary
annotations you don't need this file)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This wasn't actually addressed for tests/ui/modules/module_suggestion_when_module_not_found/submodule/compiletest-ignore-dir
, only for tests/ui/modules/module_suggestion_when_module_not_found/success/compiletest-ignore-dir
.
f2c196e
to
62c2fa3
Compare
@rustbot ready |
This comment has been minimized.
This comment has been minimized.
62c2fa3
to
8fef7b9
Compare
r=me with #142730 (comment) addressed. |
Reminder, once the PR becomes ready for a review, use |
suggests declaring modules when a module is found but not defined, i.e
or
which currently is just
but now would have this nice help: