[INFO] cloning repository peteyycz/learning-rust [INFO] running `"git" "clone" "--bare" "git://github.com/peteyycz/learning-rust.git" "work/cache/sources/gh/peteyycz/learning-rust"` [INFO] [stderr] Cloning into bare repository 'work/cache/sources/gh/peteyycz/learning-rust'... [INFO] running `"git" "clone" "work/cache/sources/gh/peteyycz/learning-rust" "work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/peteyycz/learning-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/peteyycz/learning-rust'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/peteyycz/learning-rust" "work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/peteyycz/learning-rust"` [INFO] [stderr] Cloning into 'work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/peteyycz/learning-rust'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] cf656bbc7ed9ae8b8abca06dc4b29fa0263c7eb3 [INFO] sha for GitHub repo peteyycz/learning-rust: cf656bbc7ed9ae8b8abca06dc4b29fa0263c7eb3 [INFO] validating manifest of peteyycz/learning-rust on toolchain master#c8865d8e195813ade6b84434ac9f8850e7112d1a [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of peteyycz/learning-rust on toolchain try#e212b7d492c96d3837691ba29d32d5f468933fb8 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing peteyycz/learning-rust [INFO] finished frobbing peteyycz/learning-rust [INFO] frobbed toml for peteyycz/learning-rust written to work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/peteyycz/learning-rust/Cargo.toml [INFO] started frobbing peteyycz/learning-rust [INFO] finished frobbing peteyycz/learning-rust [INFO] frobbed toml for peteyycz/learning-rust written to work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/peteyycz/learning-rust/Cargo.toml [INFO] crate peteyycz/learning-rust already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/big/crater/work/ex/pr-61629/sources/master#c8865d8e195813ade6b84434ac9f8850e7112d1a/gh/peteyycz/learning-rust/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+c8865d8e195813ade6b84434ac9f8850e7112d1a-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing peteyycz/learning-rust against try#e212b7d492c96d3837691ba29d32d5f468933fb8 for pr-61629 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-61629/worker-2/try#e212b7d492c96d3837691ba29d32d5f468933fb8:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-61629/sources/try#e212b7d492c96d3837691ba29d32d5f468933fb8/gh/peteyycz/learning-rust:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+e212b7d492c96d3837691ba29d32d5f468933fb8-alt" "build" "--frozen"` [INFO] [stdout] 0d0504539ddc5a6294b269292cbd9e5052876fd5b27efb441fc040cc5e9d2d33 [INFO] running `"docker" "start" "-a" "0d0504539ddc5a6294b269292cbd9e5052876fd5b27efb441fc040cc5e9d2d33"` [INFO] [stderr] Compiling snake v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unused import: `rand::Rng` [INFO] [stderr] --> src/main.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use rand::Rng; [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:17:28 [INFO] [stderr] | [INFO] [stderr] 17 | let rand_row: u8 = between.ind_sample(&mut rng); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found usize [INFO] [stderr] help: you can convert an `usize` to `u8` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 17 | let rand_row: u8 = between.ind_sample(&mut rng).try_into().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:18:30 [INFO] [stderr] | [INFO] [stderr] 18 | let rand_value: u8 = between.ind_sample(&mut rng); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found usize [INFO] [stderr] help: you can convert an `usize` to `u8` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 18 | let rand_value: u8 = between.ind_sample(&mut rng).try_into().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/main.rs:19:28 [INFO] [stderr] | [INFO] [stderr] 19 | let rand_col: u8 = between.ind_sample(&mut rng); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected u8, found usize [INFO] [stderr] help: you can convert an `usize` to `u8` and panic if the converted value wouldn't fit [INFO] [stderr] | [INFO] [stderr] 19 | let rand_col: u8 = between.ind_sample(&mut rng).try_into().unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 3 previous errors [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `snake`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "0d0504539ddc5a6294b269292cbd9e5052876fd5b27efb441fc040cc5e9d2d33"` [INFO] running `"docker" "rm" "-f" "0d0504539ddc5a6294b269292cbd9e5052876fd5b27efb441fc040cc5e9d2d33"` [INFO] [stdout] 0d0504539ddc5a6294b269292cbd9e5052876fd5b27efb441fc040cc5e9d2d33