Change "A non-empty glob must import something with the glob's visibility" to be a lint? #62334
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-resolve
Area: Name resolution
E-easy
Call for participation: Easy difficulty. Experience needed to fix: Not much. Good first issue.
E-mentor
Call for participation: This issue has a mentor. Use #t-compiler/help on Zulip for discussion.
T-lang
Relevant to the language team, which will review and decide on the PR/issue.
Consider the following three examples: A and C are accepted and B has a compilation error. However, the message reported in B looks more like a lint than a compilation error.
A consequence of this error is that adding a non-public function to a module (e.g. the
bar
in B) may break code that imports from that module. This causes surprises when refactoring.Shouldn't "A non-empty glob must import something with the glob's visibility" be a lint?
The original discussion is here: https://users.rust-lang.org/t/a-non-empty-glob-must-import-something-with-the-globs-visibility-uhhh-okay-but-why
A
B
C
The text was updated successfully, but these errors were encountered: