Make ambiguous_glob_reexports an FCW at deny#151146
Make ambiguous_glob_reexports an FCW at deny#151146traviscross wants to merge 1 commit intorust-lang:mainfrom
ambiguous_glob_reexports an FCW at deny#151146Conversation
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 |
|
🚧 Experiment ℹ️ Crater is a tool to run experiments across parts of the Rust ecosystem. Learn more |
|
🎉 Experiment
Footnotes
|
|
👌 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
Footnotes
|
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