-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Fix items_after_test_module
for non root modules, add applicable suggestion
#11611
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
Fix items_after_test_module
for non root modules, add applicable suggestion
#11611
Conversation
r? @blyxyas (rustbot has picked a reviewer for you, use r? to override) |
I was testing the
But it doesn't emit. Turns out that the lint doesn't emit on any module that isn't on the |
items_after_test_module
logic into check_crate
items_after_test_module
for non root modules, add applicable suggestion
0fbf52f
to
1eee413
Compare
Reworked the lint to cover that, also added a hidden suggestion that can be applied by |
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.
Just some mini-nits and a question and this should be ready (。・ω・。)
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.
Kinda weird how what should be submodule.rs
's standard error is actually stored in in_submodule.stderr
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.
It's because it's the stderr output from running the in_submodule.rs
test
1eee413
to
dcc4001
Compare
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.
LGTM, Thanks! ❤️ ( =ノωヽ=)
@bors r+ |
☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test |
Fixes #11050
Fixes #11153
changelog: [
items_after_test_module
]: Now suggests a machine-applicable suggestion.changelog: [
items:after_test_module
]: Also lints for non root modules