-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Rust 1.18 regression, isbfc 0.0.1, igo 0.0.2 #42365
Comments
cc @ids1024 |
Here is a minimal test case, with the caveat that I probably really shouldn't have organized that crate the way I did: Cargo.toml [package]
name = "bugtest"
version = "0.1.0"
[[bin]]
name = "bugtest"
[[bin]]
name = "bugtest2" src/lib.rs fn test() {
} src/main.rs fn main() {
} src/bin/bugtest2.rs fn main() {
} Edit: This arguably shouldn't have worked in the first place. |
Anyway, the cause of the issue (and I've verified that igo is the same) is that the crate contains a library and binary with the name of the crate, as well as another binary, but also an explicit |
Thanks for the investigation @ids1024! This is close enough to the release that it's likely to leak into 1.18 though :( |
cc @rust-lang/cargo, would anyone be willing to help out investigating this? |
I've looked into it and it seems ... complicated. It's another fallout from rust-lang/cargo#3609 I guess, so cc @jmatraszek. Here's the test for Cargo:
The problem is that the logic for inferring a binary path is quite fiddly and fallbacks to a default instead of erroring, so I am not sure how to fix this particular case without breaking some other. |
Simplify inferred binary names Fix for rust-lang/rust#42365, which probably breaks other stuff :(
Looks like this is fixed in cargo. We probably need to confirm this is fixed on a particular branch, and get it into the relnotes. |
Closing. I think this was fixed, we can reconsider if necessary and reopen. |
A similar widespread bug was fixed previously (#41797), but I still see a regression in these two crates:
The text was updated successfully, but these errors were encountered: