[INFO] cloning repository https://github.com/RajivKurien/Dining_Philosophers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RajivKurien/Dining_Philosophers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRajivKurien%2FDining_Philosophers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRajivKurien%2FDining_Philosophers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bdaba33bcf72c35cb9f9a7b7f54acc982ebc5f1d [INFO] checking RajivKurien/Dining_Philosophers/bdaba33bcf72c35cb9f9a7b7f54acc982ebc5f1d 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%2FRajivKurien%2FDining_Philosophers" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RajivKurien/Dining_Philosophers 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/RajivKurien/Dining_Philosophers [INFO] finished tweaking git repo https://github.com/RajivKurien/Dining_Philosophers [INFO] tweaked toml for git repo https://github.com/RajivKurien/Dining_Philosophers written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/RajivKurien/Dining_Philosophers 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] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] 0e185ddc8b5262fb20172ec157ce27ee20598f0ae9e7e54211ac3c662ce3ed80 [INFO] running `Command { std: "docker" "start" "-a" "0e185ddc8b5262fb20172ec157ce27ee20598f0ae9e7e54211ac3c662ce3ed80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0e185ddc8b5262fb20172ec157ce27ee20598f0ae9e7e54211ac3c662ce3ed80", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0e185ddc8b5262fb20172ec157ce27ee20598f0ae9e7e54211ac3c662ce3ed80", kill_on_drop: false }` [INFO] [stdout] 0e185ddc8b5262fb20172ec157ce27ee20598f0ae9e7e54211ac3c662ce3ed80 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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] db99b3874e72885188abcab8a2aeaba462b66bd929d049e411a7cec72725fb53 [INFO] running `Command { std: "docker" "start" "-a" "db99b3874e72885188abcab8a2aeaba462b66bd929d049e411a7cec72725fb53", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling libc v0.2.55 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Checking ucd-util v0.1.3 [INFO] [stderr] Checking lazy_static v1.3.0 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking utf8-ranges v1.0.2 [INFO] [stderr] Checking cfg-if v0.1.9 [INFO] [stderr] Checking termcolor v1.0.4 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking thread_local v0.3.6 [INFO] [stderr] Checking humantime v1.2.0 [INFO] [stderr] Checking regex-syntax v0.6.6 [INFO] [stderr] Checking atty v0.2.11 [INFO] [stderr] Checking aho-corasick v0.7.3 [INFO] [stderr] Checking env_logger v0.6.1 [INFO] [stderr] Checking Dining_Philosophers v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::dining_philosophers::fork::Fork` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dining_philosophers::fork::Fork; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::resource_hierarchy_impl::left_thinking::LeftThinking` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::dining_philosophers::resource_hierarchy_impl::left_thinking::LeftThinking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::resource_hierarchy_impl::right_thinking::RightThinking` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dining_philosophers::resource_hierarchy_impl::right_thinking::RightThinking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/philosopher/philosopher.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | sm: Box, [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] 7 | sm: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:78:37 [INFO] [stdout] | [INFO] [stdout] 78 | fn transition(&mut self) -> Box { [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] 78 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/philosopher/state_machine.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | fn transition(&mut self) -> Box; [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] 10 | fn transition(&mut self) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/eating.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | fn transition(&mut self) -> Box { [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] 34 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 19 | fn transition(&mut self) -> Box { [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] 19 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | fn transition(&mut self) -> Box { [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] 30 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:27:37 [INFO] [stdout] | [INFO] [stdout] 27 | fn transition(&mut self) -> Box { [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] 27 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/philosopher/philosopher.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(id: usize, sm: Box) -> 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] 12 | pub fn new(id: usize, sm: Box) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::fork::Fork` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::dining_philosophers::fork::Fork; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::resource_hierarchy_impl::left_thinking::LeftThinking` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use crate::dining_philosophers::resource_hierarchy_impl::left_thinking::LeftThinking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::resource_hierarchy_impl::right_thinking::RightThinking` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::dining_philosophers::resource_hierarchy_impl::right_thinking::RightThinking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::fork::Fork` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | use crate::dining_philosophers::fork::Fork; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::resource_hierarchy_impl::left_thinking::LeftThinking` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 34 | use crate::dining_philosophers::resource_hierarchy_impl::left_thinking::LeftThinking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::dining_philosophers::resource_hierarchy_impl::right_thinking::RightThinking` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 35 | use crate::dining_philosophers::resource_hierarchy_impl::right_thinking::RightThinking; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/philosopher/philosopher.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | sm: Box, [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] 7 | sm: Box, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:78:37 [INFO] [stdout] | [INFO] [stdout] 78 | fn transition(&mut self) -> Box { [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] 78 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/philosopher/state_machine.rs:10:37 [INFO] [stdout] | [INFO] [stdout] 10 | fn transition(&mut self) -> Box; [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] 10 | fn transition(&mut self) -> Box; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_interaction` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(table_interaction: TableInteraction) -> Thinking { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_interaction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/eating.rs:34:37 [INFO] [stdout] | [INFO] [stdout] 34 | fn transition(&mut self) -> Box { [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] 34 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:19:37 [INFO] [stdout] | [INFO] [stdout] 19 | fn transition(&mut self) -> Box { [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] 19 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:30:37 [INFO] [stdout] | [INFO] [stdout] 30 | fn transition(&mut self) -> Box { [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] 30 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `drop_right` is never used [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/eating.rs:27:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl Eating { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 27 | fn drop_right(&mut self, table_interaction: TableInteraction) -> LeftThinking { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl LeftThinking { [INFO] [stdout] | ----------------- associated function in this implementation [INFO] [stdout] 14 | pub fn new(left_fork: Fork, table_interaction: TableInteraction) -> LeftThinking { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `history` and `id` are never used [INFO] [stdout] --> src/dining_philosophers/philosopher/philosopher.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 11 | impl Philosopher { [INFO] [stdout] | ---------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 37 | fn history(&self) -> &Vec { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 41 | fn id(&self) -> usize { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:27:37 [INFO] [stdout] | [INFO] [stdout] 27 | fn transition(&mut self) -> Box { [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] 27 | fn transition(&mut self) -> Box { [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/dining_philosophers/resource_hierarchy_impl/eating.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(left_fork: Fork, right_fork: Fork, table_interaction: TableInteraction) -> Eating { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 19 | table_interaction: Some(table_interaction), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [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] 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/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(left_fork: Fork, table_interaction: TableInteraction) -> LeftThinking { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 17 | table_interaction: Some(table_interaction), [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:15:74 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(right_fork: Fork, table_interaction: TableInteraction) -> RightThinking { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 15 | RightThinking { right_fork: Some(right_fork), table_interaction: Some(table_interaction) } [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] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/philosopher/philosopher.rs:12:35 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn new(id: usize, sm: Box) -> 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] 12 | pub fn new(id: usize, sm: Box) -> Self { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors; 15 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Dining_Philosophers` (bin "Dining_Philosophers") due to 4 previous errors; 15 warnings emitted [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/philosopher/philosopher.rs:97:41 [INFO] [stdout] | [INFO] [stdout] 97 | fn transition(&mut self) -> Box { [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] 97 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/eating.rs:96:27 [INFO] [stdout] | [INFO] [stdout] 96 | let mut unit: Box = Box::new(Eating::new(left_fork, right_fork, table_interaction)); [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] 96 | let mut unit: Box = Box::new(Eating::new(left_fork, right_fork, table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/eating.rs:110:27 [INFO] [stdout] | [INFO] [stdout] 110 | let mut unit: Box = Box::new(Eating::new(left_fork, right_fork, table_interaction)); [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] 110 | let mut unit: Box = Box::new(Eating::new(left_fork, right_fork, table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:98:27 [INFO] [stdout] | [INFO] [stdout] 98 | let mut unit: Box = Box::new(LeftThinking::new(fork, table_interaction)); [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] 98 | let mut unit: Box = Box::new(LeftThinking::new(fork, table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:109:27 [INFO] [stdout] | [INFO] [stdout] 109 | let mut unit: Box = Box::new(LeftThinking::new(fork.take().unwrap(), table_interaction)); [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] 109 | let mut unit: Box = Box::new(LeftThinking::new(fork.take().unwrap(), table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:120:27 [INFO] [stdout] | [INFO] [stdout] 120 | let mut unit: Box = Box::new(LeftThinking::new(fork.take().unwrap(), table_interaction)); [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] 120 | let mut unit: Box = Box::new(LeftThinking::new(fork.take().unwrap(), table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:94:27 [INFO] [stdout] | [INFO] [stdout] 94 | let mut unit: Box = Box::new(RightThinking::new(fork, table_interaction)); [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] 94 | let mut unit: Box = Box::new(RightThinking::new(fork, table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:106:27 [INFO] [stdout] | [INFO] [stdout] 106 | let mut unit: Box = Box::new(RightThinking::new(fork.take().unwrap(), table_interaction)); [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] 106 | let mut unit: Box = Box::new(RightThinking::new(fork.take().unwrap(), table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:117:27 [INFO] [stdout] | [INFO] [stdout] 117 | let mut unit: Box = Box::new(RightThinking::new(fork, table_interaction)); [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] 117 | let mut unit: Box = Box::new(RightThinking::new(fork, table_interaction)); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `table_interaction` [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/thinking.rs:13:16 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(table_interaction: TableInteraction) -> Thinking { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_table_interaction` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [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/dining_philosophers/resource_hierarchy_impl/eating.rs:19:32 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn new(left_fork: Fork, right_fork: Fork, table_interaction: TableInteraction) -> Eating { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 19 | table_interaction: Some(table_interaction), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [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] 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/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:17:32 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(left_fork: Fork, table_interaction: TableInteraction) -> LeftThinking { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 17 | table_interaction: Some(table_interaction), [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: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:15:74 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(right_fork: Fork, table_interaction: TableInteraction) -> RightThinking { [INFO] [stdout] | ----------------------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 15 | RightThinking { right_fork: Some(right_fork), table_interaction: Some(table_interaction) } [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 3 previous errors; 24 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `Dining_Philosophers` (bin "Dining_Philosophers" test) due to 4 previous errors; 24 warnings emitted [INFO] running `Command { std: "docker" "inspect" "db99b3874e72885188abcab8a2aeaba462b66bd929d049e411a7cec72725fb53", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db99b3874e72885188abcab8a2aeaba462b66bd929d049e411a7cec72725fb53", kill_on_drop: false }` [INFO] [stdout] db99b3874e72885188abcab8a2aeaba462b66bd929d049e411a7cec72725fb53