unreachable_pub
false negative when an unreachable type is mentioned in a type alias
#116604
Labels
A-lint
Area: Lints (warnings about flaws in source code) such as unused_mut.
A-visibility
Area: Visibility / privacy
C-bug
Category: This is a bug.
L-unreachable_pub
Lint: unreachable_pub
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
I tried this code:
I expected an
unreachable_pub
lint becauseFooError
is unreachable. Instead, there is no diagnostic output.The
FooError
type is in principle nameable via defining a suitable trait and associated type, but this is probably not the intent of theunreachable_pub
lint; the author probably wants to be told to reexportFooError
.Meta
rustc --version --verbose
:@rustbot label +A-lint +A-visibility
The text was updated successfully, but these errors were encountered: