[INFO] updating cached repository https://github.com/shelbyd/rust-poker [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 6b0e571f680bdc9670e3759634e79d25a8344ee6 [INFO] testing shelbyd/rust-poker against 1.44.0 for beta-1.45-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshelbyd%2Frust-poker" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shelbyd/rust-poker on toolchain 1.44.0 [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/shelbyd/rust-poker [INFO] finished tweaking git repo https://github.com/shelbyd/rust-poker [INFO] tweaked toml for git repo https://github.com/shelbyd/rust-poker written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/shelbyd/rust-poker already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /workspace/builds/worker-1/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+1.44.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+1.44.0" "build" "--frozen"` [INFO] [stdout] f094703a5331a0a55ffad6feead8416ecce6143aabb64dffe3de973576ca037e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "f094703a5331a0a55ffad6feead8416ecce6143aabb64dffe3de973576ca037e"` [INFO] [stderr] sudo: setrlimit(RLIMIT_CORE): Operation not permitted [INFO] [stderr] Compiling rust_combinatorics v0.1.0 [INFO] [stderr] Compiling poker v0.0.1 (/opt/rustwide/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] | [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: see issue #50297 for more information [INFO] [stderr] [INFO] [stderr] error[E0599]: no method named `split_str` found for reference `&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 an associated function 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 struct `std::vec::Vec` [INFO] [stderr] found struct `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 struct `std::vec::Vec` [INFO] [stderr] found struct `std::vec::Vec<&card::Card>` [INFO] [stderr] [INFO] [stderr] error[E0689]: can't call method `exp2` on ambiguous numeric type `{float}` [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] help: you must specify a concrete type for this numeric value, like `f32` [INFO] [stderr] | [INFO] [stderr] 74 | if change < 1.0 / 16.0_f32.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, E0689. [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" "f094703a5331a0a55ffad6feead8416ecce6143aabb64dffe3de973576ca037e"` [INFO] running `"docker" "rm" "-f" "f094703a5331a0a55ffad6feead8416ecce6143aabb64dffe3de973576ca037e"` [INFO] [stdout] f094703a5331a0a55ffad6feead8416ecce6143aabb64dffe3de973576ca037e