[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/360fcd80785a081752452a74b455e94490eee813 against try#4d98531622e1718ae0bc3c7a1ab9cd8938428452+rustflags=-Dtail_expr_drop_order for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcrome110%2Frs-mahjong" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/crome110/rs-mahjong on toolchain 4d98531622e1718ae0bc3c7a1ab9cd8938428452 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "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-2-tc2/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3af8cf169b839a17863a40e8ff1137168a3c8a7f5eb7ccff94240e727b392a5 [INFO] running `Command { std: "docker" "start" "-a" "d3af8cf169b839a17863a40e8ff1137168a3c8a7f5eb7ccff94240e727b392a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3af8cf169b839a17863a40e8ff1137168a3c8a7f5eb7ccff94240e727b392a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3af8cf169b839a17863a40e8ff1137168a3c8a7f5eb7ccff94240e727b392a5", kill_on_drop: false }` [INFO] [stdout] d3af8cf169b839a17863a40e8ff1137168a3c8a7f5eb7ccff94240e727b392a5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/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 -Dtail_expr_drop_order" "-e" "RUSTDOCFLAGS=--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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+4d98531622e1718ae0bc3c7a1ab9cd8938428452" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f7e9e4c2c2e835b24ec1ea2adf8204a178ea29d427b88b9c6820bd5aef82d7fc [INFO] running `Command { std: "docker" "start" "-a" "f7e9e4c2c2e835b24ec1ea2adf8204a178ea29d427b88b9c6820bd5aef82d7fc", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling cc v1.0.37 [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling syn v0.15.38 [INFO] [stderr] Compiling failure_derive v0.1.5 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking rustc-demangle v0.1.15 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling backtrace-sys v0.1.29 [INFO] [stderr] Checking backtrace v0.3.32 [INFO] [stderr] Compiling synstructure v0.10.2 [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] | ^^^^^^^^^^^^^^^^^^^^^^^^ [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 | pub rule: Box Option>, [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 | pub fu: Option Fu>>, [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | pub rule: Box) -> u32>, [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^ [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 | pub rule: Box Option>, [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 | pub fn new(name: &str, rule: Box) -> u32>, sub: Option>) -> Self { [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 87 | pub fu: Option Fu>>, [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 105 | pub rule: Box) -> u32>, [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 91 | pub fn new(name: &str, sub: Option>, rule: Box Option>, fu: Option Fu>>) -> Self { [INFO] [stdout] | +++ [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] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 111 | pub fn new(name: &str, rule: Box) -> u32>, sub: Option>) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pong` is never used [INFO] [stdout] --> src/parse.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 157 | impl Node { [INFO] [stdout] | --------- method in this implementation [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: fields `situation`, `dora`, and `ura_dora` are never read [INFO] [stdout] --> src/evaluate.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Evaluator { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 13 | /// 確定している状況役(リーチ、ツモなど) [INFO] [stdout] 14 | situation: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | dora: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | /// 裏ドラ [INFO] [stdout] 26 | ura_dora: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `evaluate` and `evaluate_str` are never used [INFO] [stdout] --> src/evaluate.rs:532:12 [INFO] [stdout] | [INFO] [stdout] 531 | impl Evaluator { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 532 | pub fn evaluate(&self, parsed_hand: &ParsedHand, draw: bool, situation: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parse.rs:225:59 [INFO] [stdout] | [INFO] [stdout] 225 | &self.pong.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parse.rs:226:59 [INFO] [stdout] | [INFO] [stdout] 226 | &self.chow.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/evaluate.rs:621:12 [INFO] [stdout] | [INFO] [stdout] 620 | let parsed_hand = ParsedHand::new(&hand); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 621 | Ok(Evaluator::new(None, None, Vec::new(), Vec::new()).evaluate(&parsed_hand, draw, situation)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/evaluate.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 626 | let parsed_hand = ParsedHand::new(&hand); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 627 | Ok(Evaluator::new(None, None, Vec::new(), Vec::new()).evaluate_all(&parsed_hand, draw, situation)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/evaluate.rs:663:31 [INFO] [stdout] | [INFO] [stdout] 663 | waits.append(&mut Wait::from(&node, parsed_hand.winning.clone(), [INFO] [stdout] | _______________________________^ [INFO] [stdout] 664 | | draw, prevalent_wind.clone(), [INFO] [stdout] 665 | | seat_wind.clone()))); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `pong` is never used [INFO] [stdout] --> src/parse.rs:158:8 [INFO] [stdout] | [INFO] [stdout] 157 | impl Node { [INFO] [stdout] | --------- method in this implementation [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: fields `situation`, `dora`, and `ura_dora` are never read [INFO] [stdout] --> src/evaluate.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Evaluator { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 13 | /// 確定している状況役(リーチ、ツモなど) [INFO] [stdout] 14 | situation: Vec, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | dora: Vec, [INFO] [stdout] | ^^^^ [INFO] [stdout] 25 | /// 裏ドラ [INFO] [stdout] 26 | ura_dora: Vec, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `evaluate` and `evaluate_str` are never used [INFO] [stdout] --> src/evaluate.rs:532:12 [INFO] [stdout] | [INFO] [stdout] 531 | impl Evaluator { [INFO] [stdout] | -------------- methods in this implementation [INFO] [stdout] 532 | pub fn evaluate(&self, parsed_hand: &ParsedHand, draw: bool, situation: &Vec) -> Option { [INFO] [stdout] | ^^^^^^^^ [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] [stderr] error: could not compile `mahjong` (lib) due to 6 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parse.rs:225:59 [INFO] [stdout] | [INFO] [stdout] 225 | &self.pong.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [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] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/parse.rs:226:59 [INFO] [stdout] | [INFO] [stdout] 226 | &self.chow.clone().map(|ref node| vec.append(&mut node.search_leafs())); [INFO] [stdout] | -------- ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/evaluate.rs:621:12 [INFO] [stdout] | [INFO] [stdout] 620 | let parsed_hand = ParsedHand::new(&hand); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 621 | Ok(Evaluator::new(None, None, Vec::new(), Vec::new()).evaluate(&parsed_hand, draw, situation)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/evaluate.rs:627:12 [INFO] [stdout] | [INFO] [stdout] 626 | let parsed_hand = ParsedHand::new(&hand); [INFO] [stdout] | ----------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 627 | Ok(Evaluator::new(None, None, Vec::new(), Vec::new()).evaluate_all(&parsed_hand, draw, situation)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/evaluate.rs:663:31 [INFO] [stdout] | [INFO] [stdout] 663 | waits.append(&mut Wait::from(&node, parsed_hand.winning.clone(), [INFO] [stdout] | _______________________________^ [INFO] [stdout] 664 | | draw, prevalent_wind.clone(), [INFO] [stdout] 665 | | seat_wind.clone()))); [INFO] [stdout] | |___________________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `mahjong` (lib test) due to 6 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "f7e9e4c2c2e835b24ec1ea2adf8204a178ea29d427b88b9c6820bd5aef82d7fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7e9e4c2c2e835b24ec1ea2adf8204a178ea29d427b88b9c6820bd5aef82d7fc", kill_on_drop: false }` [INFO] [stdout] f7e9e4c2c2e835b24ec1ea2adf8204a178ea29d427b88b9c6820bd5aef82d7fc