[INFO] cloning repository https://github.com/fwcd/RustyGUI [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fwcd/RustyGUI" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffwcd%2FRustyGUI", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffwcd%2FRustyGUI'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f766bdd2ad820ec834d81af79df021cd07ada160 [INFO] testing fwcd/RustyGUI against 1.60.0 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffwcd%2FRustyGUI" "/workspace/builds/worker-22/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-22/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fwcd/RustyGUI on toolchain 1.60.0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fwcd/RustyGUI [INFO] finished tweaking git repo https://github.com/fwcd/RustyGUI [INFO] tweaked toml for git repo https://github.com/fwcd/RustyGUI written to /workspace/builds/worker-22/source/Cargo.toml [INFO] crate git repo https://github.com/fwcd/RustyGUI already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.60.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded c_vec v1.3.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0f2f5f0e0d41bd175ff32f1b2d2b34f22a2af874f42b0256bf0acd07ad8489a1 [INFO] running `Command { std: "docker" "start" "-a" "0f2f5f0e0d41bd175ff32f1b2d2b34f22a2af874f42b0256bf0acd07ad8489a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0f2f5f0e0d41bd175ff32f1b2d2b34f22a2af874f42b0256bf0acd07ad8489a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0f2f5f0e0d41bd175ff32f1b2d2b34f22a2af874f42b0256bf0acd07ad8489a1", kill_on_drop: false }` [INFO] [stdout] 0f2f5f0e0d41bd175ff32f1b2d2b34f22a2af874f42b0256bf0acd07ad8489a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-22/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+1.60.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a38f457ee53ccdc0cd76184ed968e85fb97319b29ba21aec90d92a7f45de1cfb [INFO] running `Command { std: "docker" "start" "-a" "a38f457ee53ccdc0cd76184ed968e85fb97319b29ba21aec90d92a7f45de1cfb", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling num-traits v0.2.5 [INFO] [stderr] Compiling cfg-if v0.1.4 [INFO] [stderr] Compiling libc v0.2.42 [INFO] [stderr] Compiling num-integer v0.1.39 [INFO] [stderr] Compiling num-iter v0.1.37 [INFO] [stderr] Compiling rustygui v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling c_vec v1.3.1 [INFO] [stderr] Compiling log v0.4.3 [INFO] [stderr] Compiling sdl2-sys v0.31.0 [INFO] [stderr] Compiling rand v0.4.2 [INFO] [stderr] Compiling time v0.1.40 [INFO] [stderr] Compiling simple_logger v0.5.0 [INFO] [stderr] Compiling rand v0.3.22 [INFO] [stderr] Compiling num v0.1.42 [INFO] [stderr] Compiling sdl2 v0.31.0 [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/utils/math.rs:2:32 [INFO] [stdout] | [INFO] [stdout] 2 | if value <= 0 { 0u32 } else { (value as u32) } [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 2 - if value <= 0 { 0u32 } else { (value as u32) } [INFO] [stdout] 2 + if value <= 0 { 0u32 } else { value as u32 } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/button.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 16 | action: Option) + 'a>>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - action: Option) + 'a>>, [INFO] [stdout] 16 + action: Option) + 'a>>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 21 | layout: Box, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - layout: Box, [INFO] [stdout] 21 + layout: Box, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/gui.rs:20:29 [INFO] [stdout] | [INFO] [stdout] 20 | dragged: Option>, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - dragged: Option>, [INFO] [stdout] 20 + dragged: Option>, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/base.rs:13:26 [INFO] [stdout] | [INFO] [stdout] 13 | this: Option> [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - this: Option> [INFO] [stdout] 13 + this: Option> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/listener.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | listeners: Vec + 'a>> [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - listeners: Vec + 'a>> [INFO] [stdout] 8 + listeners: Vec + 'a>> [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouted_widget.rs:7:17 [INFO] [stdout] | [INFO] [stdout] 7 | widget: Shared, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 - widget: Shared, [INFO] [stdout] 7 + widget: Shared, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/utils/listener.rs:16:38 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn add(&mut self, listener: Box>) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - pub fn add(&mut self, listener: Box>) { [INFO] [stdout] 16 + pub fn add(&mut self, listener: Box>) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/core/gui_application.rs:13:39 [INFO] [stdout] | [INFO] [stdout] 13 | fn render(&mut self, _graphics: &mut Graphics) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - fn render(&mut self, _graphics: &mut Graphics) {} [INFO] [stdout] 13 + fn render(&mut self, _graphics: &mut dyn Graphics) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:20:38 [INFO] [stdout] | [INFO] [stdout] 20 | fn render(&mut self, graphics: &mut Graphics, theme: &Theme); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 20 - fn render(&mut self, graphics: &mut Graphics, theme: &Theme); [INFO] [stdout] 20 + fn render(&mut self, graphics: &mut dyn Graphics, theme: &Theme); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:22:38 [INFO] [stdout] | [INFO] [stdout] 22 | fn preferred_size(&self, graphics: &Graphics) -> Size; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 22 - fn preferred_size(&self, graphics: &Graphics) -> Size; [INFO] [stdout] 22 + fn preferred_size(&self, graphics: &dyn Graphics) -> Size; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:26:40 [INFO] [stdout] | [INFO] [stdout] 26 | fn preferred_bounds(&self, graphics: &Graphics) -> WidgetBounds { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - fn preferred_bounds(&self, graphics: &Graphics) -> WidgetBounds { [INFO] [stdout] 26 + fn preferred_bounds(&self, graphics: &dyn Graphics) -> WidgetBounds { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:50:48 [INFO] [stdout] | [INFO] [stdout] 50 | fn update_layout_deeply(&mut self, graphics: &Graphics) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 50 - fn update_layout_deeply(&mut self, graphics: &Graphics) { [INFO] [stdout] 50 + fn update_layout_deeply(&mut self, graphics: &dyn Graphics) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:57:41 [INFO] [stdout] | [INFO] [stdout] 57 | fn update_layout(&mut self, graphics: &Graphics) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 - fn update_layout(&mut self, graphics: &Graphics) { [INFO] [stdout] 57 + fn update_layout(&mut self, graphics: &dyn Graphics) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:67:54 [INFO] [stdout] | [INFO] [stdout] 67 | fn internal_on_update_layout(&mut self, _graphics: &Graphics) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 - fn internal_on_update_layout(&mut self, _graphics: &Graphics) {} [INFO] [stdout] 67 + fn internal_on_update_layout(&mut self, _graphics: &dyn Graphics) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:69:51 [INFO] [stdout] | [INFO] [stdout] 69 | fn update_layout_if_needed(&mut self, graphics: &Graphics) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 - fn update_layout_if_needed(&mut self, graphics: &Graphics) { [INFO] [stdout] 69 + fn update_layout_if_needed(&mut self, graphics: &dyn Graphics) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:83:43 [INFO] [stdout] | [INFO] [stdout] 83 | fn for_each_child(&mut self, _each: &mut FnMut(RefMut)) {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - fn for_each_child(&mut self, _each: &mut FnMut(RefMut)) {} [INFO] [stdout] 83 + fn for_each_child(&mut self, _each: &mut dyn FnMut(RefMut)) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:83:56 [INFO] [stdout] | [INFO] [stdout] 83 | fn for_each_child(&mut self, _each: &mut FnMut(RefMut)) {} [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - fn for_each_child(&mut self, _each: &mut FnMut(RefMut)) {} [INFO] [stdout] 83 + fn for_each_child(&mut self, _each: &mut FnMut(RefMut)) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:127:38 [INFO] [stdout] | [INFO] [stdout] 127 | fn this(&self) -> Option> { self.base().this() } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 127 - fn this(&self) -> Option> { self.base().this() } [INFO] [stdout] 127 + fn this(&self) -> Option> { self.base().this() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget.rs:129:42 [INFO] [stdout] | [INFO] [stdout] 129 | fn set_this(&mut self, this: WeakShared) { self.base_mut().set_this(this) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 129 - fn set_this(&mut self, this: WeakShared) { self.base_mut().set_this(this) } [INFO] [stdout] 129 + fn set_this(&mut self, this: WeakShared) { self.base_mut().set_this(this) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget_gui_app.rs:34:38 [INFO] [stdout] | [INFO] [stdout] 34 | fn render(&mut self, graphics: &mut Graphics) { self.gui.borrow_mut().render(graphics) } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 - fn render(&mut self, graphics: &mut Graphics) { self.gui.borrow_mut().render(graphics) } [INFO] [stdout] 34 + fn render(&mut self, graphics: &mut dyn Graphics) { self.gui.borrow_mut().render(graphics) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/button.rs:58:43 [INFO] [stdout] | [INFO] [stdout] 58 | fn cloned_action(&self) -> Option) + 'a>> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 58 - fn cloned_action(&self) -> Option) + 'a>> { [INFO] [stdout] 58 + fn cloned_action(&self) -> Option) + 'a>> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/button.rs:64:38 [INFO] [stdout] | [INFO] [stdout] 64 | fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 64 - fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] 64 + fn render(&mut self, graphics: &mut dyn Graphics, theme: &Theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/button.rs:82:38 [INFO] [stdout] | [INFO] [stdout] 82 | fn preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 82 - fn preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] 82 + fn preferred_size(&self, graphics: &dyn Graphics) -> Size { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/button.rs:102:42 [INFO] [stdout] | [INFO] [stdout] 102 | fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 102 - fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] 102 + fn for_each_child(&mut self, each: &mut dyn FnMut(RefMut)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/button.rs:102:55 [INFO] [stdout] | [INFO] [stdout] 102 | fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 102 - fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] 102 + fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/slider.rs:83:38 [INFO] [stdout] | [INFO] [stdout] 83 | fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 83 - fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] 83 + fn render(&mut self, graphics: &mut dyn Graphics, theme: &Theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/slider.rs:103:39 [INFO] [stdout] | [INFO] [stdout] 103 | fn preferred_size(&self, _graphics: &Graphics) -> Size { self.preferred_size } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 103 - fn preferred_size(&self, _graphics: &Graphics) -> Size { self.preferred_size } [INFO] [stdout] 103 + fn preferred_size(&self, _graphics: &dyn Graphics) -> Size { self.preferred_size } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/label.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] 33 + fn render(&mut self, graphics: &mut dyn Graphics, theme: &Theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/label.rs:38:38 [INFO] [stdout] | [INFO] [stdout] 38 | fn preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 38 - fn preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] 38 + fn preferred_size(&self, graphics: &dyn Graphics) -> Size { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/empty.rs:16:39 [INFO] [stdout] | [INFO] [stdout] 16 | fn render(&mut self, _graphics: &mut Graphics, _theme: &Theme) {} [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 16 - fn render(&mut self, _graphics: &mut Graphics, _theme: &Theme) {} [INFO] [stdout] 16 + fn render(&mut self, _graphics: &mut dyn Graphics, _theme: &Theme) {} [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/empty.rs:18:39 [INFO] [stdout] | [INFO] [stdout] 18 | fn preferred_size(&self, _graphics: &Graphics) -> Size { Size::of(0, 0) } [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 18 - fn preferred_size(&self, _graphics: &Graphics) -> Size { Size::of(0, 0) } [INFO] [stdout] 18 + fn preferred_size(&self, _graphics: &dyn Graphics) -> Size { Size::of(0, 0) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:43:43 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn set_layout(&mut self, layout: Box) { self.layout = layout } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 43 - pub fn set_layout(&mut self, layout: Box) { self.layout = layout } [INFO] [stdout] 43 + pub fn set_layout(&mut self, layout: Box) { self.layout = layout } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn add_shared(&mut self, child: Shared) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 - pub fn add_shared(&mut self, child: Shared) { [INFO] [stdout] 65 + pub fn add_shared(&mut self, child: Shared) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:69:48 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn insert_shared(&mut self, child: Shared, layout_hint: &str) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 - pub fn insert_shared(&mut self, child: Shared, layout_hint: &str) { [INFO] [stdout] 69 + pub fn insert_shared(&mut self, child: Shared, layout_hint: &str) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:75:49 [INFO] [stdout] | [INFO] [stdout] 75 | pub fn insert_with_id(&mut self, child: Shared, layout_hint: &str, id: i32) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 75 - pub fn insert_with_id(&mut self, child: Shared, layout_hint: &str, id: i32) { [INFO] [stdout] 75 + pub fn insert_with_id(&mut self, child: Shared, layout_hint: &str, id: i32) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:108:46 [INFO] [stdout] | [INFO] [stdout] 108 | fn compute_preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 108 - fn compute_preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] 108 + fn compute_preferred_size(&self, graphics: &dyn Graphics) -> Size { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:125:38 [INFO] [stdout] | [INFO] [stdout] 125 | fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 125 - fn render(&mut self, graphics: &mut Graphics, theme: &Theme) { [INFO] [stdout] 125 + fn render(&mut self, graphics: &mut dyn Graphics, theme: &Theme) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:138:38 [INFO] [stdout] | [INFO] [stdout] 138 | fn preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 - fn preferred_size(&self, graphics: &Graphics) -> Size { [INFO] [stdout] 138 + fn preferred_size(&self, graphics: &dyn Graphics) -> Size { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:146:53 [INFO] [stdout] | [INFO] [stdout] 146 | fn internal_on_update_layout(&mut self, graphics: &Graphics) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 146 - fn internal_on_update_layout(&mut self, graphics: &Graphics) { [INFO] [stdout] 146 + fn internal_on_update_layout(&mut self, graphics: &dyn Graphics) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:151:42 [INFO] [stdout] | [INFO] [stdout] 151 | fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 151 - fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] 151 + fn for_each_child(&mut self, each: &mut dyn FnMut(RefMut)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/container.rs:151:55 [INFO] [stdout] | [INFO] [stdout] 151 | fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 151 - fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] 151 + fn for_each_child(&mut self, each: &mut FnMut(RefMut)) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouted_widget.rs:13:27 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn of(widget: Shared, layout_hint: &str, id: i32) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 - pub fn of(widget: Shared, layout_hint: &str, id: i32) -> Self { [INFO] [stdout] 13 + pub fn of(widget: Shared, layout_hint: &str, id: i32) -> Self { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouted_widget.rs:21:33 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn widget(&self) -> Shared { self.widget.clone() } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - pub fn widget(&self) -> Shared { self.widget.clone() } [INFO] [stdout] 21 + pub fn widget(&self) -> Shared { self.widget.clone() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouted_widget.rs:23:30 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn borrow(&self) -> Ref { self.widget.borrow() } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 23 - pub fn borrow(&self) -> Ref { self.widget.borrow() } [INFO] [stdout] 23 + pub fn borrow(&self) -> Ref { self.widget.borrow() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouted_widget.rs:25:37 [INFO] [stdout] | [INFO] [stdout] 25 | pub fn borrow_mut(&self) -> RefMut { self.widget.borrow_mut() } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - pub fn borrow_mut(&self) -> RefMut { self.widget.borrow_mut() } [INFO] [stdout] 25 + pub fn borrow_mut(&self) -> RefMut { self.widget.borrow_mut() } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/gui.rs:65:45 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn dragged(&self) -> Option> { self.dragged.as_ref().map(|it| it.clone()) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 65 - pub fn dragged(&self) -> Option> { self.dragged.as_ref().map(|it| it.clone()) } [INFO] [stdout] 65 + pub fn dragged(&self) -> Option> { self.dragged.as_ref().map(|it| it.clone()) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/gui.rs:67:52 [INFO] [stdout] | [INFO] [stdout] 67 | pub fn set_dragged(&mut self, dragged: WeakShared) { self.dragged = Some(dragged) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 - pub fn set_dragged(&mut self, dragged: WeakShared) { self.dragged = Some(dragged) } [INFO] [stdout] 67 + pub fn set_dragged(&mut self, dragged: WeakShared) { self.dragged = Some(dragged) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/gui.rs:69:42 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn render(&mut self, graphics: &mut Graphics) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 - pub fn render(&mut self, graphics: &mut Graphics) { [INFO] [stdout] 69 + pub fn render(&mut self, graphics: &mut dyn Graphics) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/base.rs:55:42 [INFO] [stdout] | [INFO] [stdout] 55 | pub fn this(&self) -> Option> { self.this.as_ref().map(|it| it.clone()) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 - pub fn this(&self) -> Option> { self.this.as_ref().map(|it| it.clone()) } [INFO] [stdout] 55 + pub fn this(&self) -> Option> { self.this.as_ref().map(|it| it.clone()) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/base.rs:57:46 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn set_this(&mut self, this: WeakShared) { self.this = Some(this) } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 - pub fn set_this(&mut self, this: WeakShared) { self.this = Some(this) } [INFO] [stdout] 57 + pub fn set_this(&mut self, this: WeakShared) { self.this = Some(this) } [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/sdl2/mainloop.rs:14:30 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn run_gui_app(app: &mut GUIApplication) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 14 - pub fn run_gui_app(app: &mut GUIApplication) { [INFO] [stdout] 14 + pub fn run_gui_app(app: &mut dyn GUIApplication) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/layout.rs:6:96 [INFO] [stdout] | [INFO] [stdout] 6 | fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &Graphics); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 - fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &Graphics); [INFO] [stdout] 6 + fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &dyn Graphics); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/box_layout.rs:26:96 [INFO] [stdout] | [INFO] [stdout] 26 | fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &Graphics) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 26 - fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &Graphics) { [INFO] [stdout] 26 + fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &dyn Graphics) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:21:30 [INFO] [stdout] | [INFO] [stdout] 21 | fn width_of(widget: &RefMut, max_width: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - fn width_of(widget: &RefMut, max_width: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] 21 + fn width_of(widget: &RefMut, max_width: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:21:66 [INFO] [stdout] | [INFO] [stdout] 21 | fn width_of(widget: &RefMut, max_width: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 21 - fn width_of(widget: &RefMut, max_width: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] 21 + fn width_of(widget: &RefMut, max_width: u32, graphics: &dyn Graphics) -> u32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | fn height_of(widget: &RefMut, max_height: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn height_of(widget: &RefMut, max_height: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] 25 + fn height_of(widget: &RefMut, max_height: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:25:68 [INFO] [stdout] | [INFO] [stdout] 25 | fn height_of(widget: &RefMut, max_height: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 25 - fn height_of(widget: &RefMut, max_height: u32, graphics: &Graphics) -> u32 { [INFO] [stdout] 25 + fn height_of(widget: &RefMut, max_height: u32, graphics: &dyn Graphics) -> u32 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:31:96 [INFO] [stdout] | [INFO] [stdout] 31 | fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &Graphics) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 31 - fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &Graphics) { [INFO] [stdout] 31 + fn arrange(&self, widgets: &mut Vec, parent_bounds: &WidgetBounds, graphics: &dyn Graphics) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:32:30 [INFO] [stdout] | [INFO] [stdout] 32 | let mut top: Option> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 32 - let mut top: Option> = None; [INFO] [stdout] 32 + let mut top: Option> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:33:31 [INFO] [stdout] | [INFO] [stdout] 33 | let mut left: Option> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 33 - let mut left: Option> = None; [INFO] [stdout] 33 + let mut left: Option> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:34:32 [INFO] [stdout] | [INFO] [stdout] 34 | let mut right: Option> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 34 - let mut right: Option> = None; [INFO] [stdout] 34 + let mut right: Option> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:35:33 [INFO] [stdout] | [INFO] [stdout] 35 | let mut bottom: Option> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 35 - let mut bottom: Option> = None; [INFO] [stdout] 35 + let mut bottom: Option> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/layouts/border_layout.rs:36:33 [INFO] [stdout] | [INFO] [stdout] 36 | let mut center: Option> = None; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 36 - let mut center: Option> = None; [INFO] [stdout] 36 + let mut center: Option> = None; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> src/gui/widgets/container.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 111 | .reduce(|a, b| a.merge(b)) [INFO] [stdout] | ^^^^^^ multiple `reduce` found [INFO] [stdout] | [INFO] [stdout] note: candidate #1 is defined in an impl of the trait `Reduce` for the type `I` [INFO] [stdout] --> src/utils/reduce.rs:17:2 [INFO] [stdout] | [INFO] [stdout] 17 | fn reduce(mut self, f: F) -> Option where Self: Sized, F: FnMut(T, T) -> T { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `Iterator` for the type `Map` [INFO] [stdout] help: disambiguate the associated function for candidate #1 [INFO] [stdout] | [INFO] [stdout] 109 ~ Reduce::reduce(self.childs.iter() [INFO] [stdout] 110 ~ .map(|child| child.borrow().preferred_bounds(graphics).rect()), |a, b| a.merge(b)) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the associated function for candidate #2 [INFO] [stdout] | [INFO] [stdout] 109 ~ Iterator::reduce(self.childs.iter() [INFO] [stdout] 110 ~ .map(|child| child.borrow().preferred_bounds(graphics).rect()), |a, b| a.merge(b)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget_utils.rs:8:26 [INFO] [stdout] | [INFO] [stdout] 8 | let widget_ref: Shared = shared_ref.clone() as Shared; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - let widget_ref: Shared = shared_ref.clone() as Shared; [INFO] [stdout] 8 + let widget_ref: Shared = shared_ref.clone() as Shared; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/gui/widgets/widget_utils.rs:8:65 [INFO] [stdout] | [INFO] [stdout] 8 | let widget_ref: Shared = shared_ref.clone() as Shared; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `dyn` [INFO] [stdout] | [INFO] [stdout] 8 - let widget_ref: Shared = shared_ref.clone() as Shared; [INFO] [stdout] 8 + let widget_ref: Shared = shared_ref.clone() as Shared; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `utils::reduce::Reduce` [INFO] [stdout] --> src/gui/widgets/container.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 11 | use utils::reduce::Reduce; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 67 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustygui` due to 2 previous errors; 67 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "a38f457ee53ccdc0cd76184ed968e85fb97319b29ba21aec90d92a7f45de1cfb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a38f457ee53ccdc0cd76184ed968e85fb97319b29ba21aec90d92a7f45de1cfb", kill_on_drop: false }` [INFO] [stdout] a38f457ee53ccdc0cd76184ed968e85fb97319b29ba21aec90d92a7f45de1cfb