[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 against try#b1f2594eac607c1f051534800237eeedb5590a49 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRajivKurien%2FDining_Philosophers" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [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-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/RajivKurien/Dining_Philosophers on toolchain b1f2594eac607c1f051534800237eeedb5590a49 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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" "+b1f2594eac607c1f051534800237eeedb5590a49" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fcf2a2e7c39eb2be7ce34b25105e1b8d98e7a25e554a088fe6579693fa17b6bf [INFO] running `Command { std: "docker" "start" "-a" "fcf2a2e7c39eb2be7ce34b25105e1b8d98e7a25e554a088fe6579693fa17b6bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fcf2a2e7c39eb2be7ce34b25105e1b8d98e7a25e554a088fe6579693fa17b6bf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fcf2a2e7c39eb2be7ce34b25105e1b8d98e7a25e554a088fe6579693fa17b6bf", kill_on_drop: false }` [INFO] [stdout] fcf2a2e7c39eb2be7ce34b25105e1b8d98e7a25e554a088fe6579693fa17b6bf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+b1f2594eac607c1f051534800237eeedb5590a49" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ec5ef49ad018dd740facbf688c717bf7d65d25760abd5287eed01eb56a63216 [INFO] running `Command { std: "docker" "start" "-a" "1ec5ef49ad018dd740facbf688c717bf7d65d25760abd5287eed01eb56a63216", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.55 [INFO] [stderr] Checking quick-error v1.2.2 [INFO] [stderr] Checking termcolor v1.0.4 [INFO] [stderr] Checking log v0.4.6 [INFO] [stderr] Checking humantime v1.2.0 [INFO] [stderr] Checking atty v0.2.11 [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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible 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/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 a dyn-compatible 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/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 a dyn-compatible 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/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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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/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 a dyn-compatible 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/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 a dyn-compatible 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)]` (part of `#[warn(unused)]`) 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)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | sm: 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)]` (part of `#[warn(unused)]`) 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 a dyn-compatible 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/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 a dyn-compatible 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/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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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: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 a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 97 | fn transition(&mut self) -> Box { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Eating` is never constructed [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/eating.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Eating { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `drop_left`, and `drop_right` are never used [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/eating.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl Eating { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] 15 | pub fn new(left_fork: Fork, right_fork: Fork, table_interaction: TableInteraction) -> Eating { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn drop_left(&mut self, table_interaction: TableInteraction) -> RightThinking { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | fn drop_right(&mut self, table_interaction: TableInteraction) -> LeftThinking { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LeftThinking` is never constructed [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/left_thinking.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct LeftThinking { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `take_right`, and `drop_left` are 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 items in this implementation [INFO] [stdout] 14 | pub fn new(left_fork: Fork, table_interaction: TableInteraction) -> LeftThinking { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn take_right(&mut self, fork: Fork, table_interaction: TableInteraction) -> Eating { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn drop_left(&mut self, table_interaction: TableInteraction) -> Thinking { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RightThinking` is never constructed [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct RightThinking { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `take_left`, and `drop_right` are never used [INFO] [stdout] --> src/dining_philosophers/resource_hierarchy_impl/right_thinking.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl RightThinking { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 14 | pub fn new(right_fork: Fork, table_interaction: TableInteraction) -> RightThinking { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn take_left(&mut self, fork: Fork, table_interaction: TableInteraction) -> Eating { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn drop_right(&mut self, table_interaction: TableInteraction) -> Thinking { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_fork` and `return_fork` are never used [INFO] [stdout] --> src/dining_philosophers/table.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 10 | impl Table { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | fn get_fork(&mut self, position: usize) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 45 | fn return_fork(&mut self, fork: Fork, position: usize) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `table` is never read [INFO] [stdout] --> src/dining_philosophers/table.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 51 | pub struct TableInteraction { [INFO] [stdout] | ---------------- field in this struct [INFO] [stdout] 52 | pub position: usize, [INFO] [stdout] 53 | pub table: Arc>, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TableInteraction` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_left_fork`, `return_left_fork`, `get_right_fork`, and `return_right_fork` are never used [INFO] [stdout] --> src/dining_philosophers/table.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 62 | impl TableInteraction { [INFO] [stdout] | --------------------- methods in this implementation [INFO] [stdout] 63 | pub fn get_left_fork(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn return_left_fork(&self, fork: Fork) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 70 | pub fn get_right_fork(&self) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn return_right_fork(&self, fork: Fork) { [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: variants `LeftThinking` and `RightThinking` are never constructed [INFO] [stdout] --> src/dining_philosophers/philosopher/state_machine.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum State { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 3 | Thinking, [INFO] [stdout] 4 | LeftThinking, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 5 | RightThinking, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `State` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [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 a dyn-compatible 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/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 a dyn-compatible 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: 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.61s [INFO] running `Command { std: "docker" "inspect" "1ec5ef49ad018dd740facbf688c717bf7d65d25760abd5287eed01eb56a63216", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ec5ef49ad018dd740facbf688c717bf7d65d25760abd5287eed01eb56a63216", kill_on_drop: false }` [INFO] [stdout] 1ec5ef49ad018dd740facbf688c717bf7d65d25760abd5287eed01eb56a63216