[INFO] cloning repository https://github.com/frostRed/head_first_design_patterns_rust
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/frostRed/head_first_design_patterns_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfrostRed%2Fhead_first_design_patterns_rust"`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfrostRed%2Fhead_first_design_patterns_rust'...
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 779447adaf64ad62404312d51b8363b8602c3552
[INFO] testing frostRed/head_first_design_patterns_rust against 1.100.0-beta.13+cargoflags=--release for beta-release-1.101-2
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FfrostRed%2Fhead_first_design_patterns_rust" "/workspace/builds/worker-3-tc1/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/frostRed/head_first_design_patterns_rust
[INFO] finished tweaking git repo https://github.com/frostRed/head_first_design_patterns_rust
[INFO] tweaked toml for git repo https://github.com/frostRed/head_first_design_patterns_rust written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/frostRed/head_first_design_patterns_rust on toolchain 1.100.0-beta.13
[INFO] running `"cargo" "+1.100.0-beta.13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate git repo https://github.com/frostRed/head_first_design_patterns_rust already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.100.0-beta.13" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] 172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb
[INFO] running `"docker" "start" "172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb"`
[INFO] running `"docker" "inspect" "172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling lazy_static v1.2.0
[INFO] [stderr]    Compiling head_first_design_patterns v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0554]: `#![feature]` may not be used on the beta release channel
[INFO] [stdout]  --> src/lib.rs:1:1
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(vec_remove_item)]
[INFO] [stdout]   | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary braces around block return value
[INFO] [stdout]   --> src/singleton.rs:50:49
[INFO] [stdout]    |
[INFO] [stdout] 50 |     pub static ref C: RwLock<ChocolateBoiler> = { RwLock::new(ChocolateBoiler::new()) };
[INFO] [stdout]    |                                                 ^^                                   ^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_braces)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] help: remove these braces
[INFO] [stdout]    |
[INFO] [stdout] 50 -     pub static ref C: RwLock<ChocolateBoiler> = { RwLock::new(ChocolateBoiler::new()) };
[INFO] [stdout] 50 +     pub static ref C: RwLock<ChocolateBoiler> = RwLock::new(ChocolateBoiler::new());
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Read`
[INFO] [stdout]  --> src/template_method.rs:5:21
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{self, Read};
[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 imports: `Beverage`, `DarkRost`, `Espresso`, `HouseBlend`, `Mocha`, `Soy`, and `Whip`
[INFO] [stdout]   --> src/lib.rs:19:24
[INFO] [stdout]    |
[INFO] [stdout] 19 | use crate::decorator::{Beverage, DarkRost, Espresso, HouseBlend, Mocha, Soy, Whip};
[INFO] [stdout]    |                        ^^^^^^^^  ^^^^^^^^  ^^^^^^^^  ^^^^^^^^^^  ^^^^^  ^^^  ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `ChicagoPizzaStore`, `NYPizzaStore`, `PizzaStore`, and `Pizza`
[INFO] [stdout]   --> src/lib.rs:20:29
[INFO] [stdout]    |
[INFO] [stdout] 20 | use crate::factory_method::{ChicagoPizzaStore, NYPizzaStore, Pizza, PizzaStore};
[INFO] [stdout]    |                             ^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^  ^^^^^  ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `CurrentConditionsDisplay`, `Subject`, and `WeatherDate`
[INFO] [stdout]   --> src/lib.rs:21:23
[INFO] [stdout]    |
[INFO] [stdout] 21 | use crate::observer::{CurrentConditionsDisplay, Subject, WeatherDate};
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `C` and `ChocolateBoiler`
[INFO] [stdout]   --> src/lib.rs:22:24
[INFO] [stdout]    |
[INFO] [stdout] 22 | use crate::singleton::{ChocolateBoiler, C};
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^  ^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `Duck`, `FlyBehavior`, `FlyRocketPowered`, `MallardDuck`, and `ModelDuck`
[INFO] [stdout]   --> src/lib.rs:23:23
[INFO] [stdout]    |
[INFO] [stdout] 23 | use crate::strategy::{Duck, FlyBehavior, FlyRocketPowered, MallardDuck, ModelDuck};
[INFO] [stdout]    |                       ^^^^  ^^^^^^^^^^^  ^^^^^^^^^^^^^^^^  ^^^^^^^^^^^  ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0635]: unknown feature `vec_remove_item`
[INFO] [stdout]  --> src/lib.rs:1:12
[INFO] [stdout]   |
[INFO] [stdout] 1 | #![feature(vec_remove_item)]
[INFO] [stdout]   |            ^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:83:36
[INFO] [stdout]    |
[INFO] [stdout] 83 |     quack_behavior: Rc<RefCell<Box<QuackBehavior>>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[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] 83 |     quack_behavior: Rc<RefCell<Box<dyn QuackBehavior>>>,
[INFO] [stdout]    |                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:84:34
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fly_behavior: Rc<RefCell<Box<FlyBehavior>>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 84 |     fly_behavior: Rc<RefCell<Box<dyn FlyBehavior>>>,
[INFO] [stdout]    |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:113:36
[INFO] [stdout]     |
[INFO] [stdout] 113 |     quack_behavior: Rc<RefCell<Box<QuackBehavior>>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 113 |     quack_behavior: Rc<RefCell<Box<dyn QuackBehavior>>>,
[INFO] [stdout]     |                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:114:34
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fly_behavior: Rc<RefCell<Box<FlyBehavior>>>,
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 114 |     fly_behavior: Rc<RefCell<Box<dyn FlyBehavior>>>,
[INFO] [stdout]     |                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:19:48
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn quack_behavior(&self) -> Rc<RefCell<Box<QuackBehavior>>>;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 19 |     fn quack_behavior(&self) -> Rc<RefCell<Box<dyn QuackBehavior>>>;
[INFO] [stdout]    |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:24:46
[INFO] [stdout]    |
[INFO] [stdout] 24 |     fn fly_behavior(&self) -> Rc<RefCell<Box<FlyBehavior>>>;
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 24 |     fn fly_behavior(&self) -> Rc<RefCell<Box<dyn FlyBehavior>>>;
[INFO] [stdout]    |                                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:29:50
[INFO] [stdout]    |
[INFO] [stdout] 29 |     fn set_fly_behavior(&self, fly_behavior: Box<FlyBehavior>) {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 29 |     fn set_fly_behavior(&self, fly_behavior: Box<dyn FlyBehavior>) {
[INFO] [stdout]    |                                                  +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:103:48
[INFO] [stdout]     |
[INFO] [stdout] 103 |     fn quack_behavior(&self) -> Rc<RefCell<Box<QuackBehavior>>> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 103 |     fn quack_behavior(&self) -> Rc<RefCell<Box<dyn QuackBehavior>>> {
[INFO] [stdout]     |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:106:46
[INFO] [stdout]     |
[INFO] [stdout] 106 |     fn fly_behavior(&self) -> Rc<RefCell<Box<FlyBehavior>>> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 106 |     fn fly_behavior(&self) -> Rc<RefCell<Box<dyn FlyBehavior>>> {
[INFO] [stdout]     |                                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:131:48
[INFO] [stdout]     |
[INFO] [stdout] 131 |     fn quack_behavior(&self) -> Rc<RefCell<Box<QuackBehavior>>> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 131 |     fn quack_behavior(&self) -> Rc<RefCell<Box<dyn QuackBehavior>>> {
[INFO] [stdout]     |                                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:134:46
[INFO] [stdout]     |
[INFO] [stdout] 134 |     fn fly_behavior(&self) -> Rc<RefCell<Box<FlyBehavior>>> {
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 134 |     fn fly_behavior(&self) -> Rc<RefCell<Box<dyn FlyBehavior>>> {
[INFO] [stdout]     |                                              +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `remove_item` found for struct `Vec<Rc<RefCell<T>>>` in the current scope
[INFO] [stdout]   --> src/observer.rs:57:24
[INFO] [stdout]    |
[INFO] [stdout] 57 |         self.observers.remove_item(&o)
[INFO] [stdout]    |                        ^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout] help: there is a method `remove` with a similar name
[INFO] [stdout]    |
[INFO] [stdout] 57 -         self.observers.remove_item(&o)
[INFO] [stdout] 57 +         self.observers.remove(&o)
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:90:73
[INFO] [stdout]    |
[INFO] [stdout] 90 |         let fly = Rc::new(RefCell::new(Box::new(FlyWithWings {}) as Box<FlyBehavior>));
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 90 |         let fly = Rc::new(RefCell::new(Box::new(FlyWithWings {}) as Box<dyn FlyBehavior>));
[INFO] [stdout]    |                                                                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/strategy.rs:91:68
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let quack = Rc::new(RefCell::new(Box::new(Quack {}) as Box<QuackBehavior>));
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 91 |         let quack = Rc::new(RefCell::new(Box::new(Quack {}) as Box<dyn QuackBehavior>));
[INFO] [stdout]    |                                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:119:69
[INFO] [stdout]     |
[INFO] [stdout] 119 |         let fly = Rc::new(RefCell::new(Box::new(FlyNoWay {}) as Box<FlyBehavior>));
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 119 |         let fly = Rc::new(RefCell::new(Box::new(FlyNoWay {}) as Box<dyn FlyBehavior>));
[INFO] [stdout]     |                                                                     +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]    --> src/strategy.rs:120:68
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let quack = Rc::new(RefCell::new(Box::new(Quack {}) as Box<QuackBehavior>));
[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 <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]     |
[INFO] [stdout] 120 |         let quack = Rc::new(RefCell::new(Box::new(Quack {}) as Box<dyn QuackBehavior>));
[INFO] [stdout]     |                                                                    +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]    --> src/command.rs:213:13
[INFO] [stdout]     |
[INFO] [stdout] 213 |         for i in 0..7 {
[INFO] [stdout]     |             ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `dvd`
[INFO] [stdout]   --> src/facade.rs:15:23
[INFO] [stdout]    |
[INFO] [stdout] 15 |     fn set_dvd(&self, dvd: &DvdPlayer) {
[INFO] [stdout]    |                       ^^^ help: if this is intentional, prefix it with an underscore: `_dvd`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `menu_component`
[INFO] [stdout]   --> src/composite.rs:27:23
[INFO] [stdout]    |
[INFO] [stdout] 27 |     fn add(&mut self, menu_component: Rc<dyn MenuComponent>) -> Result<(), MenuComponentErr> {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_menu_component`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `menu_component`
[INFO] [stdout]   --> src/composite.rs:30:26
[INFO] [stdout]    |
[INFO] [stdout] 30 |     fn remove(&mut self, menu_component: Rc<dyn MenuComponent>) -> Result<(), MenuComponentErr> {
[INFO] [stdout]    |                          ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_menu_component`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `i`
[INFO] [stdout]   --> src/composite.rs:33:21
[INFO] [stdout]    |
[INFO] [stdout] 33 |     fn child(&self, i: usize) -> Result<Rc<dyn MenuComponent>, MenuComponentErr> {
[INFO] [stdout]    |                     ^ help: if this is intentional, prefix it with an underscore: `_i`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `menu_component`
[INFO] [stdout]    --> src/composite.rs:127:26
[INFO] [stdout]     |
[INFO] [stdout] 127 |     fn remove(&mut self, menu_component: Rc<dyn MenuComponent>) -> Result<(), MenuComponentErr> {
[INFO] [stdout]     |                          ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_menu_component`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `v`
[INFO] [stdout]    --> src/composite.rs:128:21
[INFO] [stdout]     |
[INFO] [stdout] 128 |         if let Some(ref mut v) = self.menu_components {
[INFO] [stdout]     |                     ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_v`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/state.rs:32:13
[INFO] [stdout]    |
[INFO] [stdout] 32 |         let mut g = GumballMachine {
[INFO] [stdout]    |             ----^
[INFO] [stdout]    |             |
[INFO] [stdout]    |             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0554, E0599, E0635.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0554`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `head_first_design_patterns` (lib) due to 3 previous errors; 30 warnings emitted
[INFO] running `"docker" "inspect" "172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb"`
[INFO] running `"docker" "rm" "-f" "172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb"`
[INFO] [stdout] 172e16720ea4db33e66f2e5b1cf20e513fe783582cdd3631e73620ad225d75cb
