[INFO] fetching crate mold2d 0.0.2... [INFO] checking mold2d-0.0.2 against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] extracting crate mold2d 0.0.2 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate mold2d 0.0.2 on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mold2d 0.0.2 [INFO] finished tweaking crates.io crate mold2d 0.0.2 [INFO] tweaked toml for crates.io crate mold2d 0.0.2 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 27 packages [INFO] [stderr] Adding bitflags v0.2.1 (latest: v2.5.0) [INFO] [stderr] Adding bitflags v0.3.3 (latest: v2.5.0) [INFO] [stderr] Adding libc v0.1.12 (latest: v0.2.153) [INFO] [stderr] Adding num v0.1.42 (latest: v0.4.1) [INFO] [stderr] Adding num-bigint v0.1.44 (latest: v0.4.4) [INFO] [stderr] Adding num-complex v0.1.43 (latest: v0.4.5) [INFO] [stderr] Adding num-rational v0.1.42 (latest: v0.4.1) [INFO] [stderr] Adding rand v0.3.23 (latest: v0.8.5) [INFO] [stderr] Adding rand v0.4.6 (latest: v0.8.5) [INFO] [stderr] Adding rand_core v0.3.1 (latest: v0.6.4) [INFO] [stderr] Adding rand_core v0.4.2 (latest: v0.6.4) [INFO] [stderr] Adding rdrand v0.4.0 (latest: v0.8.3) [INFO] [stderr] Adding sdl2 v0.9.1 (latest: v0.36.0) [INFO] [stderr] Adding sdl2-sys v0.6.2 (latest: v0.36.0) [INFO] [stderr] Adding sdl2_image v0.3.0 (latest: v0.25.0) [INFO] [stderr] Adding sdl2_ttf v0.9.1 (latest: v0.25.1) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded sdl2_ttf v0.9.1 [INFO] [stderr] Downloaded sdl2-sys v0.6.2 [INFO] [stderr] Downloaded sdl2_image v0.3.0 [INFO] [stderr] Downloaded bitflags v0.2.1 [INFO] [stderr] Downloaded bitflags v0.3.3 [INFO] [stderr] Downloaded sdl2 v0.9.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3073905fdb8ff312b62739a7ff568f6b3c97f18063310ef4b63370c409b3e109 [INFO] running `Command { std: "docker" "start" "-a" "3073905fdb8ff312b62739a7ff568f6b3c97f18063310ef4b63370c409b3e109", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3073905fdb8ff312b62739a7ff568f6b3c97f18063310ef4b63370c409b3e109", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3073905fdb8ff312b62739a7ff568f6b3c97f18063310ef4b63370c409b3e109", kill_on_drop: false }` [INFO] [stdout] 3073905fdb8ff312b62739a7ff568f6b3c97f18063310ef4b63370c409b3e109 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b906cb08baeed42b3b9e7ff74c8b87b078a70d826d0bd1aeec9a10fedae4f542 [INFO] running `Command { std: "docker" "start" "-a" "b906cb08baeed42b3b9e7ff74c8b87b078a70d826d0bd1aeec9a10fedae4f542", kill_on_drop: false }` [INFO] [stderr] Compiling sdl2-sys v0.6.2 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking bitflags v0.3.3 [INFO] [stderr] Checking bitflags v0.2.1 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking sdl2 v0.9.1 [INFO] [stderr] Checking sdl2_image v0.3.0 [INFO] [stderr] Checking sdl2_ttf v0.9.1 [INFO] [stderr] Checking mold2d v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Rect` is imported redundantly [INFO] [stdout] --> src/collision.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 247 | use super::*; [INFO] [stdout] | -------- the item `Rect` is already imported here [INFO] [stdout] 248 | use sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_image` is imported redundantly [INFO] [stdout] --> src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2_image; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | extern crate sdl2_image; [INFO] [stdout] | ------------------------ the item `sdl2_image` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern crate sdl2; [INFO] [stdout] | ------------------ the item `sdl2` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | let sdl_context = try!(sdl2::init()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let video = try!(sdl_context.video()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut timer = try!(sdl_context.timer()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | let sdl_window = try!(video.window(window.title, window.width, window.height) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | let sdl_renderer = try!(sdl_window.renderer().accelerated().build()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | ... Events::new(try!(sdl_context.event_pump()), ""), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/font.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | let font = try!(Font::from_file(Path::new(font_path), size)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/level.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | for token in try!(line).chars() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CollisionSide` is imported redundantly [INFO] [stdout] --> src/raycast.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | use collision::CollisionSide; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 153 | use sdl2::rect::Rect; [INFO] [stdout] 154 | use super::*; [INFO] [stdout] | -------- the item `CollisionSide` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rect` is imported redundantly [INFO] [stdout] --> src/raycast.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | use sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | use super::*; [INFO] [stdout] | -------- the item `Rect` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector2D` is imported redundantly [INFO] [stdout] --> src/raycast.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 154 | use super::*; [INFO] [stdout] | -------- the item `Vector2D` is already imported here [INFO] [stdout] 155 | use vector::Vector2D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_image` is imported redundantly [INFO] [stdout] --> src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2_image; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | extern crate sdl2_image; [INFO] [stdout] | ------------------------ the item `sdl2_image` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Mutex, ONCE_INIT, Once}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:46 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 57 | | &mut ActorManager, [INFO] [stdout] 58 | | &mut Viewport, [INFO] [stdout] 59 | | &mut Context, [INFO] [stdout] 60 | | &Message)>; [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern crate sdl2; [INFO] [stdout] | ------------------ the item `sdl2` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | let sdl_context = try!(sdl2::init()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let video = try!(sdl_context.video()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut timer = try!(sdl_context.timer()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | let sdl_window = try!(video.window(window.title, window.width, window.height) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | let sdl_renderer = try!(sdl_window.renderer().accelerated().build()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | ... Events::new(try!(sdl_context.event_pump()), ""), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/font.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | let font = try!(Font::from_file(Path::new(font_path), size)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/level.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | for token in try!(line).chars() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:58 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box src/actor_manager.rs:7:56 [INFO] [stdout] | [INFO] [stdout] 7 | ... -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | -> Box>>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(Box), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:46:58 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> Option>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:52:59 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut Box>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: Box>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Mutex, ONCE_INIT, Once}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:46 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 57 | | &mut ActorManager, [INFO] [stdout] 58 | | &mut Viewport, [INFO] [stdout] 59 | | &mut Context, [INFO] [stdout] 60 | | &Message)>; [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:58 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box src/actor_manager.rs:7:56 [INFO] [stdout] | [INFO] [stdout] 7 | ... -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | -> Box>>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(Box), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:46:58 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> Option>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:52:59 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut Box>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: Box>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/event_loop/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/event_loop/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/raycast.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let side = shorten_ray(&mut segment, &rect); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_frame_delay` and `set_fps` are never used [INFO] [stdout] --> src/sprite.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 161 | impl AnimatedSprite { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn set_frame_delay(&mut self, frame_delay: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn set_fps(&mut self, fps: f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/events/keyboard_mappings.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | let action = token.clone().to_owned(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_frame_delay` and `set_fps` are never used [INFO] [stdout] --> src/sprite.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 161 | impl AnimatedSprite { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn set_frame_delay(&mut self, frame_delay: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn set_fps(&mut self, fps: f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/events/keyboard_mappings.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | let action = token.clone().to_owned(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.37s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 5` [INFO] running `Command { std: "docker" "inspect" "b906cb08baeed42b3b9e7ff74c8b87b078a70d826d0bd1aeec9a10fedae4f542", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b906cb08baeed42b3b9e7ff74c8b87b078a70d826d0bd1aeec9a10fedae4f542", kill_on_drop: false }` [INFO] [stdout] b906cb08baeed42b3b9e7ff74c8b87b078a70d826d0bd1aeec9a10fedae4f542 [INFO] checking mold2d-0.0.2 against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] extracting crate mold2d 0.0.2 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate mold2d 0.0.2 on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate mold2d 0.0.2 [INFO] finished tweaking crates.io crate mold2d 0.0.2 [INFO] tweaked toml for crates.io crate mold2d 0.0.2 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4574c54a7fb2646032a512cc16b07a235bda64b6e622151b75991993afdb8d00 [INFO] running `Command { std: "docker" "start" "-a" "4574c54a7fb2646032a512cc16b07a235bda64b6e622151b75991993afdb8d00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4574c54a7fb2646032a512cc16b07a235bda64b6e622151b75991993afdb8d00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4574c54a7fb2646032a512cc16b07a235bda64b6e622151b75991993afdb8d00", kill_on_drop: false }` [INFO] [stdout] 4574c54a7fb2646032a512cc16b07a235bda64b6e622151b75991993afdb8d00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e78ae4053d673daa28adf0b2a50631b87c3c2d87b734cf954dedb8c1b1195ea [INFO] running `Command { std: "docker" "start" "-a" "4e78ae4053d673daa28adf0b2a50631b87c3c2d87b734cf954dedb8c1b1195ea", kill_on_drop: false }` [INFO] [stderr] Compiling sdl2-sys v0.6.2 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking bitflags v0.3.3 [INFO] [stderr] Checking bitflags v0.2.1 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking sdl2 v0.9.1 [INFO] [stderr] Checking sdl2_ttf v0.9.1 [INFO] [stderr] Checking sdl2_image v0.3.0 [INFO] [stderr] Checking mold2d v0.0.2 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `sdl2_image` is imported redundantly [INFO] [stdout] --> src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2_image; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | extern crate sdl2_image; [INFO] [stdout] | ------------------------ the item `sdl2_image` is already imported here [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern crate sdl2; [INFO] [stdout] | ------------------ the item `sdl2` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | let sdl_context = try!(sdl2::init()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let video = try!(sdl_context.video()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut timer = try!(sdl_context.timer()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | let sdl_window = try!(video.window(window.title, window.width, window.height) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | let sdl_renderer = try!(sdl_window.renderer().accelerated().build()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | ... Events::new(try!(sdl_context.event_pump()), ""), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/font.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | let font = try!(Font::from_file(Path::new(font_path), size)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/level.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | for token in try!(line).chars() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Mutex, ONCE_INIT, Once}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:46 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 57 | | &mut ActorManager, [INFO] [stdout] 58 | | &mut Viewport, [INFO] [stdout] 59 | | &mut Context, [INFO] [stdout] 60 | | &Message)>; [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:58 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box src/actor_manager.rs:7:56 [INFO] [stdout] | [INFO] [stdout] 7 | ... -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | -> Box>>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(Box), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:46:58 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> Option>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:52:59 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut Box>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: Box>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/event_loop/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rect` is imported redundantly [INFO] [stdout] --> src/collision.rs:248:9 [INFO] [stdout] | [INFO] [stdout] 247 | use super::*; [INFO] [stdout] | -------- the item `Rect` is already imported here [INFO] [stdout] 248 | use sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_image` is imported redundantly [INFO] [stdout] --> src/context.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use sdl2_image; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 20 | extern crate sdl2_image; [INFO] [stdout] | ------------------------ the item `sdl2_image` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use sdl2; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:19:1 [INFO] [stdout] | [INFO] [stdout] 19 | extern crate sdl2; [INFO] [stdout] | ------------------ the item `sdl2` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/event_loop/mod.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:15:23 [INFO] [stdout] | [INFO] [stdout] 15 | let sdl_context = try!(sdl2::init()); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:16:17 [INFO] [stdout] | [INFO] [stdout] 16 | let video = try!(sdl_context.video()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:17:21 [INFO] [stdout] | [INFO] [stdout] 17 | let mut timer = try!(sdl_context.timer()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:21:22 [INFO] [stdout] | [INFO] [stdout] 21 | let sdl_window = try!(video.window(window.title, window.width, window.height) [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:25:24 [INFO] [stdout] | [INFO] [stdout] 25 | let sdl_renderer = try!(sdl_window.renderer().accelerated().build()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/event_loop/mod.rs:27:53 [INFO] [stdout] | [INFO] [stdout] 27 | ... Events::new(try!(sdl_context.event_pump()), ""), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `sdl2_ttf` is imported redundantly [INFO] [stdout] --> src/font.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use sdl2_ttf; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/lib.rs:21:1 [INFO] [stdout] | [INFO] [stdout] 21 | extern crate sdl2_ttf; [INFO] [stdout] | ---------------------- the item `sdl2_ttf` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:24:31 [INFO] [stdout] | [INFO] [stdout] 24 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:25:31 [INFO] [stdout] | [INFO] [stdout] 25 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 33 | let font = try!(Font::from_file(Path::new(font_path), size)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:37:23 [INFO] [stdout] | [INFO] [stdout] 37 | let surface = try!(font.render(text, sdl2_ttf::blended(color))); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/font.rs:38:23 [INFO] [stdout] | [INFO] [stdout] 38 | let texture = try!(renderer.create_texture_from_surface(&surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/level.rs:31:26 [INFO] [stdout] | [INFO] [stdout] 31 | for token in try!(line).chars() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `CollisionSide` is imported redundantly [INFO] [stdout] --> src/raycast.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | use collision::CollisionSide; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 153 | use sdl2::rect::Rect; [INFO] [stdout] 154 | use super::*; [INFO] [stdout] | -------- the item `CollisionSide` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rect` is imported redundantly [INFO] [stdout] --> src/raycast.rs:153:9 [INFO] [stdout] | [INFO] [stdout] 153 | use sdl2::rect::Rect; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 154 | use super::*; [INFO] [stdout] | -------- the item `Rect` is already imported here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Vector2D` is imported redundantly [INFO] [stdout] --> src/raycast.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 154 | use super::*; [INFO] [stdout] | -------- the item `Vector2D` is already imported here [INFO] [stdout] 155 | use vector::Vector2D; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:5:29 [INFO] [stdout] | [INFO] [stdout] 5 | use std::sync::{Arc, Mutex, ONCE_INIT, Once}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 17 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated constant `std::sync::ONCE_INIT`: the `new` function is now preferred [INFO] [stdout] --> src/cache.rs:42:25 [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = ONCE_INIT; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: replace the use of the deprecated constant [INFO] [stdout] | [INFO] [stdout] 42 | static ONCE: Once = Once::new(); [INFO] [stdout] | ~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:46 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | ______________________________________________^ [INFO] [stdout] 57 | | &mut ActorManager, [INFO] [stdout] 58 | | &mut Viewport, [INFO] [stdout] 59 | | &mut Context, [INFO] [stdout] 60 | | &Message)>; [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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:56:58 [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 56 | pub type MessageHandler = Box>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:11:34 [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 11 | pub actors: HashMap>>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:6:46 [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 6 | pub type ActorFromToken = Box src/actor_manager.rs:7:56 [INFO] [stdout] | [INFO] [stdout] 7 | ... -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 7 | -> Box>>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/lib.rs:67:20 [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 67 | ChangeView(Box), [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:46:58 [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 46 | pub fn temp_remove(&mut self, id: i32) -> Option>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:52:59 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 52 | pub fn get_mut(&mut self, id: i32) -> Option<&mut Box>> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/actor_manager.rs:57:57 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | pub fn temp_reinsert(&mut self, id: i32, actor: Box>) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/event_loop/mod.rs:13:38 [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> 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: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 13 | where F: Fn(&mut Context) -> Box [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_frame_delay` and `set_fps` are never used [INFO] [stdout] --> src/sprite.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 161 | impl AnimatedSprite { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn set_frame_delay(&mut self, frame_delay: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn set_fps(&mut self, fps: f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/events/keyboard_mappings.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | let action = token.clone().to_owned(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 31 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `side` [INFO] [stdout] --> src/raycast.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 234 | let side = shorten_ray(&mut segment, &rect); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_side` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `set_frame_delay` and `set_fps` are never used [INFO] [stdout] --> src/sprite.rs:179:8 [INFO] [stdout] | [INFO] [stdout] 161 | impl AnimatedSprite { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 179 | fn set_frame_delay(&mut self, frame_delay: f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 183 | fn set_fps(&mut self, fps: f64) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: using `.clone()` on a double reference, which returns `&str` instead of cloning the inner type [INFO] [stdout] --> src/events/keyboard_mappings.rs:48:39 [INFO] [stdout] | [INFO] [stdout] 48 | let action = token.clone().to_owned(); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(suspicious_double_ref_op)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 36 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.53s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: num-bigint v0.1.44, num-complex v0.1.43, num-rational v0.1.42 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 3` [INFO] running `Command { std: "docker" "inspect" "4e78ae4053d673daa28adf0b2a50631b87c3c2d87b734cf954dedb8c1b1195ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e78ae4053d673daa28adf0b2a50631b87c3c2d87b734cf954dedb8c1b1195ea", kill_on_drop: false }` [INFO] [stdout] 4e78ae4053d673daa28adf0b2a50631b87c3c2d87b734cf954dedb8c1b1195ea