[INFO] cloning repository https://github.com/alanhoff/rust-endless-jumper [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alanhoff/rust-endless-jumper" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falanhoff%2Frust-endless-jumper", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falanhoff%2Frust-endless-jumper'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7be7fcff73857868aca95172e34ac6d94a0a6e95 [INFO] checking alanhoff/rust-endless-jumper against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falanhoff%2Frust-endless-jumper" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alanhoff/rust-endless-jumper on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alanhoff/rust-endless-jumper [INFO] finished tweaking git repo https://github.com/alanhoff/rust-endless-jumper [INFO] tweaked toml for git repo https://github.com/alanhoff/rust-endless-jumper written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/alanhoff/rust-endless-jumper already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 999b1d674e2e1df7efd8ddb7d609ab5fde34a6616844e81880e6e788f12ac336 [INFO] running `Command { std: "docker" "start" "-a" "999b1d674e2e1df7efd8ddb7d609ab5fde34a6616844e81880e6e788f12ac336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "999b1d674e2e1df7efd8ddb7d609ab5fde34a6616844e81880e6e788f12ac336", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "999b1d674e2e1df7efd8ddb7d609ab5fde34a6616844e81880e6e788f12ac336", kill_on_drop: false }` [INFO] [stdout] 999b1d674e2e1df7efd8ddb7d609ab5fde34a6616844e81880e6e788f12ac336 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fb3b1d3e1e83a94db4344f56ad0cba84746b894f8c67a1e17ce3352884e211f7 [INFO] running `Command { std: "docker" "start" "-a" "fb3b1d3e1e83a94db4344f56ad0cba84746b894f8c67a1e17ce3352884e211f7", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking num-traits v0.1.37 [INFO] [stderr] Compiling sdl2-sys v0.27.3 [INFO] [stderr] Checking libc v0.2.21 [INFO] [stderr] Checking lazy_static v0.2.6 [INFO] [stderr] Checking c_vec v1.0.12 [INFO] [stderr] Checking bitflags v0.7.0 [INFO] [stderr] Checking rand v0.3.15 [INFO] [stderr] Checking num-integer v0.1.33 [INFO] [stderr] Checking num-iter v0.1.33 [INFO] [stderr] Checking num v0.1.37 [INFO] [stderr] Checking sdl2 v0.29.1 [INFO] [stderr] Checking rust-endless-jumper v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:197:27 [INFO] [stdout] | [INFO] [stdout] 197 | fn on_load(&mut self, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:200:29 [INFO] [stdout] | [INFO] [stdout] 200 | fn on_unload(&mut self, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | fn on_event(&mut self, Event, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Event` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:203:35 [INFO] [stdout] | [INFO] [stdout] 203 | fn on_event(&mut self, Event, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:206:27 [INFO] [stdout] | [INFO] [stdout] 206 | fn on_tick(&mut self, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/helpers.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | Rect::new(((config::WINDOW_WIDTH as i32 / 2i32) - (width / 2i32) + horizontal_offset as i32), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - Rect::new(((config::WINDOW_WIDTH as i32 / 2i32) - (width / 2i32) + horizontal_offset as i32), [INFO] [stdout] 12 + Rect::new((config::WINDOW_WIDTH as i32 / 2i32) - (width / 2i32) + horizontal_offset as i32, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/helpers.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | ((config::WINDOW_HEIGHT as i32 / 2i32) - (height / 2i32) + vertical_offset as i32), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - ((config::WINDOW_HEIGHT as i32 / 2i32) - (height / 2i32) + vertical_offset as i32), [INFO] [stdout] 13 + (config::WINDOW_HEIGHT as i32 / 2i32) - (height / 2i32) + vertical_offset as i32, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine.rs:55:40 [INFO] [stdout] | [INFO] [stdout] 55 | pub scenarios: 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | pub scenarios: HashMap>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:197:27 [INFO] [stdout] | [INFO] [stdout] 197 | fn on_load(&mut self, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] = note: `#[warn(anonymous_parameters)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:200:29 [INFO] [stdout] | [INFO] [stdout] 200 | fn on_unload(&mut self, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:203:28 [INFO] [stdout] | [INFO] [stdout] 203 | fn on_event(&mut self, Event, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^ help: try naming the parameter or explicitly ignoring it: `_: Event` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:203:35 [INFO] [stdout] | [INFO] [stdout] 203 | fn on_event(&mut self, Event, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: anonymous parameters are deprecated and will be removed in the next edition [INFO] [stdout] --> src/engine.rs:206:27 [INFO] [stdout] | [INFO] [stdout] 206 | fn on_tick(&mut self, &mut Context) -> Loop { [INFO] [stdout] | ^^^^^^^^^^^^ help: try naming the parameter or explicitly ignoring it: `_: &mut Context` [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2018! [INFO] [stdout] = note: for more information, see issue #41686 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/helpers.rs:12:15 [INFO] [stdout] | [INFO] [stdout] 12 | Rect::new(((config::WINDOW_WIDTH as i32 / 2i32) - (width / 2i32) + horizontal_offset as i32), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 12 - Rect::new(((config::WINDOW_WIDTH as i32 / 2i32) - (width / 2i32) + horizontal_offset as i32), [INFO] [stdout] 12 + Rect::new((config::WINDOW_WIDTH as i32 / 2i32) - (width / 2i32) + horizontal_offset as i32, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/helpers.rs:13:15 [INFO] [stdout] | [INFO] [stdout] 13 | ((config::WINDOW_HEIGHT as i32 / 2i32) - (height / 2i32) + vertical_offset as i32), [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 13 - ((config::WINDOW_HEIGHT as i32 / 2i32) - (height / 2i32) + vertical_offset as i32), [INFO] [stdout] 13 + (config::WINDOW_HEIGHT as i32 / 2i32) - (height / 2i32) + vertical_offset as i32, [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/engine.rs:55:40 [INFO] [stdout] | [INFO] [stdout] 55 | pub scenarios: 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] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 55 | pub scenarios: HashMap>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/menu.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | fn on_load(&mut self, mut ctx: &mut Context) -> Loop { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/game.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut font = ctx.fonts.get_mut("default".into()).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/game.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | for mut obstacle in self.obstacles.iter_mut() { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/menu.rs:31:27 [INFO] [stdout] | [INFO] [stdout] 31 | fn on_load(&mut self, mut ctx: &mut Context) -> Loop { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/game.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | for mut obstacle in self.obstacles.iter_mut() { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/game.rs:46:13 [INFO] [stdout] | [INFO] [stdout] 46 | let mut font = ctx.fonts.get_mut("default".into()).unwrap(); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/game.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | for mut obstacle in self.obstacles.iter_mut() { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/scenarios/game.rs:118:13 [INFO] [stdout] | [INFO] [stdout] 118 | for mut obstacle in self.obstacles.iter_mut() { [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sdl2_context` is never read [INFO] [stdout] --> src/engine.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Context<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 41 | pub sdl2_context: sdl2::Sdl, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timer` is never read [INFO] [stdout] --> src/scenarios/game.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 27 | struct Obstacle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub timer: Instant, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obstacle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:46:42 [INFO] [stdout] | [INFO] [stdout] 46 | let mut font = ctx.fonts.get_mut("default".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:139:50 [INFO] [stdout] | [INFO] [stdout] 139 | let montains_texture = self.textures.get("montains".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:160:40 [INFO] [stdout] | [INFO] [stdout] 160 | let player = self.textures.get("player".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:189:38 [INFO] [stdout] | [INFO] [stdout] 189 | let rock = self.textures.get("rocks".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:219:40 [INFO] [stdout] | [INFO] [stdout] 219 | let player = self.textures.get("player".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:249:48 [INFO] [stdout] | [INFO] [stdout] 249 | let forest_texture = self.textures.get("forest".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:270:52 [INFO] [stdout] | [INFO] [stdout] 270 | let background_texture = self.textures.get("background".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:361:46 [INFO] [stdout] | [INFO] [stdout] 361 | .play(ctx.sounds.get("jump".into()).unwrap(), 0) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game_over.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | font.render(&ctx.registry.get("points".into()).unwrap().to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game_over.rs:155:43 [INFO] [stdout] | [INFO] [stdout] 155 | let points = ctx.registry.get("points".into()).unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `sdl2_context` is never read [INFO] [stdout] --> src/engine.rs:41:9 [INFO] [stdout] | [INFO] [stdout] 40 | pub struct Context<'a> { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] 41 | pub sdl2_context: sdl2::Sdl, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `timer` is never read [INFO] [stdout] --> src/scenarios/game.rs:30:9 [INFO] [stdout] | [INFO] [stdout] 27 | struct Obstacle { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 30 | pub timer: Instant, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Obstacle` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:46:42 [INFO] [stdout] | [INFO] [stdout] 46 | let mut font = ctx.fonts.get_mut("default".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:139:50 [INFO] [stdout] | [INFO] [stdout] 139 | let montains_texture = self.textures.get("montains".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:160:40 [INFO] [stdout] | [INFO] [stdout] 160 | let player = self.textures.get("player".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:189:38 [INFO] [stdout] | [INFO] [stdout] 189 | let rock = self.textures.get("rocks".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:219:40 [INFO] [stdout] | [INFO] [stdout] 219 | let player = self.textures.get("player".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:249:48 [INFO] [stdout] | [INFO] [stdout] 249 | let forest_texture = self.textures.get("forest".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:270:52 [INFO] [stdout] | [INFO] [stdout] 270 | let background_texture = self.textures.get("background".into()).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game.rs:361:46 [INFO] [stdout] | [INFO] [stdout] 361 | .play(ctx.sounds.get("jump".into()).unwrap(), 0) [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game_over.rs:94:43 [INFO] [stdout] | [INFO] [stdout] 94 | font.render(&ctx.registry.get("points".into()).unwrap().to_string()) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> src/scenarios/game_over.rs:155:43 [INFO] [stdout] | [INFO] [stdout] 155 | let points = ctx.registry.get("points".into()).unwrap().to_string(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-endless-jumper` (bin "rust-endless-jumper") due to 10 previous errors; 14 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust-endless-jumper` (bin "rust-endless-jumper" test) due to 10 previous errors; 14 warnings emitted [INFO] running `Command { std: "docker" "inspect" "fb3b1d3e1e83a94db4344f56ad0cba84746b894f8c67a1e17ce3352884e211f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb3b1d3e1e83a94db4344f56ad0cba84746b894f8c67a1e17ce3352884e211f7", kill_on_drop: false }` [INFO] [stdout] fb3b1d3e1e83a94db4344f56ad0cba84746b894f8c67a1e17ce3352884e211f7