Closed joshlf closed 6 years ago
That's the const propagator again. Might be a regression but should be easy to fix.
I remember I tried reproducing this a while ago but failed to figure out how to use your version control ui.
Can you provide me with a commit id and a link I can paste into git clone
?
Disclaimer: I just tried this with nightly 2018-09-28, and the bug doesn't happen. In case this is still useful to you, though, here's how you can get it set up. Unfortunately this is going to be pretty complicated, but it's a lot less complicated than using our custom version control system.
$ git init
$ git fetch https://fuchsia.googlesource.com/garnet refs/changes/98/160698/18 && git checkout FETCH_HEAD
$ rm .cargo/config # Remove a Cargo config that only works if you've got the whole project checked out
Create the file public/rust/crates/zerocopy/Cargo.toml
with the following contents:
[package]
name = "zerocopy"
version = "0.0.0"
Create the file bin/recovery_netstack/Cargo.toml
with the following contents:
[package]
name = "recovery_netstack"
version = "0.0.0"
[dependencies]
zerocopy = { path = "../../public/rust/crates/zerocopy" }
byteorder = { version = "1.2.6", features = ["i128"] }
failure = "*"
rand = "0.4"
Then:
$ cd bin/recovery_netstack
$ cargo test
Oh wow, that's a mouth full. Since this seems fixed, I'll just close this issue.
Thanks for the guidelines, I bookmarked this for if/when I run into gerrit again
I wouldn't take that as general-purpose advice. On any Gerrit page, there's a "Download" button that will give you some useful options. For a single-repo project, it should be very straightforward. Fuchsia is silly and uses a) a custom tool to manage and sync our multiple Git repos and, b) a GN build system which means that we don't have Cargo.toml files in our source.
When running
cargo test
on this code (in particular, patch set 18), I get the following error:Thread stack and query stack:
```text thread 'main' panicked at 'BoxMisc
rustc 1.28.0-nightly (a805a2a5e 2018-06-10) running on x86_64-apple-darwin
compiler flags: -C debuginfo=2 -C incremental