Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upRust 1.18 regression, isbfc 0.0.1, igo 0.0.2 #42365
Comments
brson
added
the
regression-from-stable-to-beta
label
Jun 1, 2017
This comment has been minimized.
This comment has been minimized.
brson
added
the
T-cargo
label
Jun 1, 2017
This comment has been minimized.
This comment has been minimized.
|
cc @ids1024 |
This comment has been minimized.
This comment has been minimized.
|
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. |
This comment has been minimized.
This comment has been minimized.
|
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 |
This comment has been minimized.
This comment has been minimized.
|
Thanks for the investigation @ids1024! This is close enough to the release that it's likely to leak into 1.18 though :( |
brson
added
regression-from-stable-to-stable
P-low
E-needstest
I-needs-decision
and removed
regression-from-stable-to-beta
E-needstest
labels
Jun 15, 2017
This comment has been minimized.
This comment has been minimized.
|
cc @rust-lang/cargo, would anyone be willing to help out investigating this? |
This comment has been minimized.
This comment has been minimized.
|
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. |
bors
added a commit
to rust-lang/cargo
that referenced
this issue
Jun 17, 2017
This comment has been minimized.
This comment has been minimized.
|
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. |
Mark-Simulacrum
removed
the
I-needs-decision
label
Jul 13, 2017
This comment has been minimized.
This comment has been minimized.
|
Closing. I think this was fixed, we can reconsider if necessary and reopen. |
brson commentedJun 1, 2017
A similar widespread bug was fixed previously (#41797), but I still see a regression in these two crates: