-
Notifications
You must be signed in to change notification settings - Fork 1.6k
expected a type, found an import
warning false positive of "disallowed-types"
#14767
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
Comments
Why would you put something in |
In reality, we have a large workspace where foo is a library in it. And we don't want other crates in this workspace to depend on some types of foo. So we put them in disallowed-types. The problem is that foo itself emits strange warning(described in this issue). |
@ldm0 Suppose adding |
The issue is that it's not resolving through the re-export, that can be fixed directly For the meantime |
Summary
"disallowed-types"'s false positive
Lint Name
disallowed-types
Reproducer
Minimal reproduction: https://github.com/ldm0/rust_test2
I saw this happen:
I expected to see no warning emitted.
Version
Additional Labels
No response
The text was updated successfully, but these errors were encountered: