[INFO] updating cached repository shelbyd/rust-poker [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/shelbyd/rust-poker [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/shelbyd/rust-poker" "work/ex/beta-1.38-1/sources/1.37.0/gh/shelbyd/rust-poker"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/shelbyd/rust-poker'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/shelbyd/rust-poker" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/shelbyd/rust-poker"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/shelbyd/rust-poker'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 6b0e571f680bdc9670e3759634e79d25a8344ee6 [INFO] sha for GitHub repo shelbyd/rust-poker: 6b0e571f680bdc9670e3759634e79d25a8344ee6 [INFO] validating manifest of shelbyd/rust-poker on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of shelbyd/rust-poker on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing shelbyd/rust-poker [INFO] finished frobbing shelbyd/rust-poker [INFO] frobbed toml for shelbyd/rust-poker written to work/ex/beta-1.38-1/sources/1.37.0/gh/shelbyd/rust-poker/Cargo.toml [INFO] started frobbing shelbyd/rust-poker [INFO] finished frobbing shelbyd/rust-poker [INFO] frobbed toml for shelbyd/rust-poker written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/shelbyd/rust-poker/Cargo.toml [INFO] crate shelbyd/rust-poker already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/shelbyd/rust-poker/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" "+1.37.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] testing shelbyd/rust-poker against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-6/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/shelbyd/rust-poker:/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=warn" "-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" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 2b96918b55d6b167eccef90a270cfd817825ace354985d104246c4bb680a50ff [INFO] running `"docker" "start" "-a" "2b96918b55d6b167eccef90a270cfd817825ace354985d104246c4bb680a50ff"` [INFO] [stderr] Compiling rust_combinatorics v0.1.0 [INFO] [stderr] Compiling poker v0.0.1 (/opt/crater/workdir) [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/calculations.rs:12:10 [INFO] [stderr] | [INFO] [stderr] 12 | use std::rand::{thread_rng, Rng}; [INFO] [stderr] | ^^^^ could not find `rand` in `std` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `self::core::num::ToPrimitive` [INFO] [stderr] --> src/calculations.rs:15:5 [INFO] [stderr] | [INFO] [stderr] 15 | use self::core::num::ToPrimitive; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no `ToPrimitive` in `num` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::num::Float` [INFO] [stderr] --> src/calculations.rs:53:5 [INFO] [stderr] | [INFO] [stderr] 53 | use std::num::Float; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `Float` in `num` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `self::core::f32::consts::SQRT2`, `self::core::f32::consts::FRAC_2_SQRTPI` [INFO] [stderr] --> src/calculations.rs:61:31 [INFO] [stderr] | [INFO] [stderr] 61 | use self::core::f32::consts::{SQRT2, FRAC_2_SQRTPI}; [INFO] [stderr] | ^^^^^ ^^^^^^^^^^^^^ no `FRAC_2_SQRTPI` in `f32::consts` [INFO] [stderr] | | [INFO] [stderr] | no `SQRT2` in `f32::consts` [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 61 | use self::core::f32::consts::{SQRT_2, FRAC_2_SQRTPI}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 61 | use self::core::f32::consts::{SQRT2, FRAC_2_SQRT_PI}; [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::old_io` [INFO] [stderr] --> src/main.rs:21:9 [INFO] [stderr] | [INFO] [stderr] 21 | use std::old_io; [INFO] [stderr] | ^^^^^^^^^^^ no `old_io` in the root [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/calculations.rs:27:19 [INFO] [stderr] | [INFO] [stderr] 27 | let results = range(0, SAMPLES) [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/calculations.rs:34:23 [INFO] [stderr] | [INFO] [stderr] 34 | range(0, other_players) [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/calculations.rs:86:21 [INFO] [stderr] | [INFO] [stderr] 86 | FRAC_2_SQRTPI * range(0, 7) [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/calculations.rs:88:27 [INFO] [stderr] | [INFO] [stderr] 88 | let product = range(1, n + 1).map(|k| - x.powi(2) / k.to_f32().unwrap()).fold(1.0, |prod, value| prod * value); [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'test' [INFO] [stderr] --> src/hand.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | extern crate test; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `split_str` found for type `&str` in the current scope [INFO] [stderr] --> src/hand.rs:139:42 [INFO] [stderr] | [INFO] [stderr] 139 | let cards: Vec> = s.split_str(" ") [INFO] [stderr] | ^^^^^^^^^ help: there is a method with a similar name: `split_at` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/hand.rs:176:87 [INFO] [stderr] | [INFO] [stderr] 176 | let my_best_hand = self.cards.clone().choose(5).map(|cards| Hand::new(cards)).max(); [INFO] [stderr] | ^^^^^ expected struct `card::Card`, found &card::Card [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::vec::Vec` [INFO] [stderr] found type `std::vec::Vec<&card::Card>` [INFO] [stderr] [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> src/hand.rs:177:91 [INFO] [stderr] | [INFO] [stderr] 177 | let other_best_hand = other.cards.clone().choose(5).map(|cards| Hand::new(cards)).max(); [INFO] [stderr] | ^^^^^ expected struct `card::Card`, found &card::Card [INFO] [stderr] | [INFO] [stderr] = note: expected type `std::vec::Vec` [INFO] [stderr] found type `std::vec::Vec<&card::Card>` [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `exp2` found for type `{float}` in the current scope [INFO] [stderr] --> src/calculations.rs:74:32 [INFO] [stderr] | [INFO] [stderr] 74 | if change < 1.0 / 16.0.exp2() { [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: aborting due to 14 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0308, E0425, E0432, E0599, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0308`. [INFO] [stderr] error: Could not compile `poker`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "2b96918b55d6b167eccef90a270cfd817825ace354985d104246c4bb680a50ff"` [INFO] running `"docker" "rm" "-f" "2b96918b55d6b167eccef90a270cfd817825ace354985d104246c4bb680a50ff"` [INFO] [stdout] 2b96918b55d6b167eccef90a270cfd817825ace354985d104246c4bb680a50ff