-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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
Mismatched type for cyclic dev-dependency on same crate #79381
Labels
A-resolve
Area: Name resolution
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Comments
lausek
changed the title
Mismatched type for dev-dependency on same crate
Mismatched type for cyclic dev-dependency on same crate
Nov 24, 2020
Do you know if this is a regression; i.e., if it used to work? |
No, I'm not aware of this code being able to function. |
Noratrieb
added
the
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
label
Apr 5, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-resolve
Area: Name resolution
C-bug
Category: This is a bug.
T-compiler
Relevant to the compiler team, which will review and decide on the PR/issue.
Repository @kaichaosun
See above link for minimal viable example. There are two crates, one is test-utils, another is client. This is the client code with a dev-dependency on test-utils:
This is test-utils code with a dependency on client:
Running
cargo test
(cargo test +stable
) in the workspace shows this error:I expect this code to correctly determine that the types are compatible, because they effectively reference the same crate.
Meta
rustc --version --verbose
:Other Issue: #59305
Discussion on Rust forum: https://users.rust-lang.org/t/cyclic-dev-dependency-get-type-mismatch-error/48391/1
The text was updated successfully, but these errors were encountered: