[INFO] cloning repository https://github.com/crome110/rs-mahjong [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/crome110/rs-mahjong" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrome110%2Frs-mahjong", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrome110%2Frs-mahjong'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 360fcd80785a081752452a74b455e94490eee813 [INFO] checking crome110/rs-mahjong against master#33fdb797f59421c7bbecaa4588ed5d7a31a9494a for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrome110%2Frs-mahjong" "/workspace/builds/worker-70/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-70/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/crome110/rs-mahjong on toolchain 33fdb797f59421c7bbecaa4588ed5d7a31a9494a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/crome110/rs-mahjong [INFO] finished tweaking git repo https://github.com/crome110/rs-mahjong [INFO] tweaked toml for git repo https://github.com/crome110/rs-mahjong written to /workspace/builds/worker-70/source/Cargo.toml [INFO] crate git repo https://github.com/crome110/rs-mahjong already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 557fecf910113da7c3d4ce0627b28d923780bed24ccbf702010a9ae2da0bcf78 [INFO] running `Command { std: "docker" "start" "-a" "557fecf910113da7c3d4ce0627b28d923780bed24ccbf702010a9ae2da0bcf78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "557fecf910113da7c3d4ce0627b28d923780bed24ccbf702010a9ae2da0bcf78", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "557fecf910113da7c3d4ce0627b28d923780bed24ccbf702010a9ae2da0bcf78", kill_on_drop: false }` [INFO] [stdout] 557fecf910113da7c3d4ce0627b28d923780bed24ccbf702010a9ae2da0bcf78 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-70/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" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+33fdb797f59421c7bbecaa4588ed5d7a31a9494a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e8975231499bff81270cb8bf222670dbdac1f767ba282ba1427520e83883634b [INFO] running `Command { std: "docker" "start" "-a" "e8975231499bff81270cb8bf222670dbdac1f767ba282ba1427520e83883634b", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling syn v0.15.38 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling cc v1.0.37 [INFO] [stderr] Checking rustc-demangle v0.1.15 [INFO] [stderr] Compiling backtrace-sys v0.1.29 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Checking backtrace v0.3.32 [INFO] [stderr] Compiling synstructure v0.10.2 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking failure v0.1.5 [INFO] [stderr] Checking mahjong v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | pub rule: Box Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait) -> Option` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | pub fu: Option Fu>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&bool) -> Fu` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:91:70 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait) -> Option` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:91:112 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&bool) -> Fu` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | pub rule: Box) -> u32>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait, &Vec) -> u32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:111:42 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn new(name: &str, rule: Box) -> u32>, sub: Option>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait, &Vec) -> u32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:83:23 [INFO] [stdout] | [INFO] [stdout] 83 | pub rule: Box Option>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait) -> Option` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:87:28 [INFO] [stdout] | [INFO] [stdout] 87 | pub fu: Option Fu>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&bool) -> Fu` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:91:70 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait) -> Option` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:91:112 [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&bool) -> Fu` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:105:23 [INFO] [stdout] | [INFO] [stdout] 105 | pub rule: Box) -> u32>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait, &Vec) -> u32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/yaku.rs:111:42 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn new(name: &str, rule: Box) -> u32>, sub: Option>) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(&Wait, &Vec) -> u32` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pong` [INFO] [stdout] --> src/parse.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn pong(&self) -> &Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `situation` [INFO] [stdout] --> src/evaluate.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | situation: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dora` [INFO] [stdout] --> src/evaluate.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | dora: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ura_dora` [INFO] [stdout] --> src/evaluate.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | ura_dora: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate` [INFO] [stdout] --> src/evaluate.rs:532:12 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn evaluate(&self, parsed_hand: &ParsedHand, draw: bool, situation: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate_str` [INFO] [stdout] --> src/evaluate.rs:618:12 [INFO] [stdout] | [INFO] [stdout] 618 | pub fn evaluate_str(&self, string: &str, draw: bool, situation: &Vec) -> Result, failure::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/parse.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | &self.pong.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 225 | let _ = &self.pong.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/parse.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | &self.chow.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 226 | let _ = &self.chow.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `pong` [INFO] [stdout] --> src/parse.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 158 | fn pong(&self) -> &Box> { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `situation` [INFO] [stdout] --> src/evaluate.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | situation: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `dora` [INFO] [stdout] --> src/evaluate.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | dora: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `ura_dora` [INFO] [stdout] --> src/evaluate.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | ura_dora: Vec, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate` [INFO] [stdout] --> src/evaluate.rs:532:12 [INFO] [stdout] | [INFO] [stdout] 532 | pub fn evaluate(&self, parsed_hand: &ParsedHand, draw: bool, situation: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `evaluate_str` [INFO] [stdout] --> src/evaluate.rs:618:12 [INFO] [stdout] | [INFO] [stdout] 618 | pub fn evaluate_str(&self, string: &str, draw: bool, situation: &Vec) -> Result, failure::Error> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/parse.rs:225:9 [INFO] [stdout] | [INFO] [stdout] 225 | &self.pong.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 225 | let _ = &self.pong.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused borrow that must be used [INFO] [stdout] --> src/parse.rs:226:9 [INFO] [stdout] | [INFO] [stdout] 226 | &self.chow.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the borrow produces a value [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 226 | let _ = &self.chow.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 26.39s [INFO] running `Command { std: "docker" "inspect" "e8975231499bff81270cb8bf222670dbdac1f767ba282ba1427520e83883634b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e8975231499bff81270cb8bf222670dbdac1f767ba282ba1427520e83883634b", kill_on_drop: false }` [INFO] [stdout] e8975231499bff81270cb8bf222670dbdac1f767ba282ba1427520e83883634b