-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Make lint ambiguous_glob_imports
deny-by-default and report-in-deps
#143011
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?
Make lint ambiguous_glob_imports
deny-by-default and report-in-deps
#143011
Conversation
r? @fee1-dead rustbot has assigned @fee1-dead. Use |
There were 2 tests that I marked |
@@ -1,4 +1,5 @@ | |||
//@ check-pass | |||
//@ ignore-test | |||
// ^^ don't know how to change this test |
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 test
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.
Ah, a test uses another test as a dependency.
I think you can use #[warn(ambiguous_glob_imports)]
in tests/ui/imports/ambiguous-1.rs
to make the dependency compile.
@@ -1,4 +1,5 @@ | |||
//@ build-pass | |||
//@ ignore-test | |||
// ^^ don't know how to change this test |
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 test
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.
Same as in #143011 (comment).
@bors try |
…=<try> Make lint `ambiguous_glob_imports` deny-by-default and report-in-deps This pr aims to finish the second part of #114095. It converts the `ambiguous_glob_imports` lint from a warning to an error. Currently, only the lint definition and the related tests are changed, a crater run should provide us with information on whether we should go for this.
☀️ Try build successful - checks-actions |
@craterbot check |
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
🎉 Experiment
|
The results are good, 15 regressions from the lint change. |
This pr aims to finish the second part of #114095. It converts the
ambiguous_glob_imports
lint from a warning to an error.Currently, only the lint definition and the related tests are changed, a crater run should provide us with information on whether we should go for this.