-
-
Notifications
You must be signed in to change notification settings - Fork 14.4k
Make ambiguous_glob_reexports an FCW at deny
#151146
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: main
Are you sure you want to change the base?
Make ambiguous_glob_reexports an FCW at deny
#151146
Conversation
Is there any good reason for someone to intentionally create an ambiguous glob reexport? No such reasons come to mind offhand. We lint strongly against use of these ambiguous glob reexports, so not linting strongly at the def-site pushes cost, relatively, to users rather than upstreams. It'd be better to push this cost upstream. Let's make `ambiguous_glob_reexports` an FCW that lints at deny-by-default and that warns in dependencies. TODO: I'm not fixing the tests at this point as I just want to do a crater run.
|
@bors try |
This comment has been minimized.
This comment has been minimized.
… r=<try> Make `ambiguous_glob_reexports` an FCW at deny
|
💥 Test timed out after |
|
@bors try |
… r=<try> Make `ambiguous_glob_reexports` an FCW at deny
This comment has been minimized.
This comment has been minimized.
|
This is a lint and not a language rule because it uses the "effective visibility" tables (whether something is reachable from outside of the crate) for reporting, and those tables are not necessarily precise (can conservatively mark things as reachable). So I'm skeptical about making this an FCW, but deny-by-default is probably fine. |
|
Makes sense. @craterbot check |
|
👌 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
Is there any good reason for someone to intentionally create an ambiguous glob reexport? No such reasons come to mind offhand.
We lint strongly against use of these ambiguous glob reexports, so not linting strongly at the def-site pushes cost, relatively, to users rather than upstreams. It'd be better to push this cost upstream.
Let's make
ambiguous_glob_reexportsan FCW that lints at deny-by-default and that warns in dependencies.TODO: I'm not fixing the tests at this point as I just want to do a crater run.
Related
ambiguous_glob_importslint #114095