[INFO] cloning repository https://github.com/JarneClarysse/test_project [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JarneClarysse/test_project" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJarneClarysse%2Ftest_project", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJarneClarysse%2Ftest_project'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 319c3f3de0df825f9286626ab6aa6bdf2d6126df [INFO] checking JarneClarysse/test_project against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJarneClarysse%2Ftest_project" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 65% (1928/2941) Updating files: 66% (1942/2941) Updating files: 67% (1971/2941) Updating files: 68% (2000/2941) Updating files: 69% (2030/2941) Updating files: 70% (2059/2941) Updating files: 71% (2089/2941) Updating files: 72% (2118/2941) Updating files: 73% (2147/2941) Updating files: 74% (2177/2941) Updating files: 75% (2206/2941) Updating files: 76% (2236/2941) Updating files: 77% (2265/2941) Updating files: 78% (2294/2941) Updating files: 79% (2324/2941) Updating files: 80% (2353/2941) Updating files: 81% (2383/2941) Updating files: 82% (2412/2941) Updating files: 82% (2419/2941) Updating files: 83% (2442/2941) Updating files: 84% (2471/2941) Updating files: 85% (2500/2941) Updating files: 86% (2530/2941) Updating files: 87% (2559/2941) Updating files: 88% (2589/2941) Updating files: 89% (2618/2941) Updating files: 90% (2647/2941) Updating files: 91% (2677/2941) Updating files: 92% (2706/2941) Updating files: 93% (2736/2941) Updating files: 94% (2765/2941) Updating files: 95% (2794/2941) Updating files: 96% (2824/2941) Updating files: 97% (2853/2941) Updating files: 98% (2883/2941) Updating files: 98% (2898/2941) Updating files: 99% (2912/2941) Updating files: 100% (2941/2941) Updating files: 100% (2941/2941), done. [INFO] validating manifest of git repo https://github.com/JarneClarysse/test_project 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 git repo https://github.com/JarneClarysse/test_project [INFO] finished tweaking git repo https://github.com/JarneClarysse/test_project [INFO] tweaked toml for git repo https://github.com/JarneClarysse/test_project written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/JarneClarysse/test_project 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded mmap v0.1.1 [INFO] [stderr] Downloaded simple-error v0.1.13 [INFO] [stderr] Downloaded shuteye v0.3.3 [INFO] [stderr] Downloaded libc v0.1.12 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 84005c7da8b4da5ece0eb4dd2cedba31315cd661b723b9a35353554e950dc58a [INFO] running `Command { std: "docker" "start" "-a" "84005c7da8b4da5ece0eb4dd2cedba31315cd661b723b9a35353554e950dc58a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "84005c7da8b4da5ece0eb4dd2cedba31315cd661b723b9a35353554e950dc58a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "84005c7da8b4da5ece0eb4dd2cedba31315cd661b723b9a35353554e950dc58a", kill_on_drop: false }` [INFO] [stdout] 84005c7da8b4da5ece0eb4dd2cedba31315cd661b723b9a35353554e950dc58a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 72a0e9370e8ffcf770586b060e179212ae68164211bcfad99567c4941d48b6f0 [INFO] running `Command { std: "docker" "start" "-a" "72a0e9370e8ffcf770586b060e179212ae68164211bcfad99567c4941d48b6f0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking remove_dir_all v0.5.1 [INFO] [stderr] Compiling nix v0.13.0 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking simple-error v0.1.13 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking shuteye v0.3.3 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking mmap v0.1.1 [INFO] [stderr] Checking ctrlc v3.1.1 [INFO] [stderr] Checking rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Read` is imported redundantly [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 25 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Read` is already imported here [INFO] [stdout] ... [INFO] [stdout] 31 | use std::io::{Read, Cursor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:564:21 [INFO] [stdout] | [INFO] [stdout] 564 | b'0'...b'9' => { v.push(c[0]); } [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:732:74 [INFO] [stdout] | [INFO] [stdout] 732 | image.pixels = resize(alle_pix,w as u32,h as u32 ,32,16);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 931 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Read` is imported redundantly [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 25 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Read` is already imported here [INFO] [stdout] ... [INFO] [stdout] 31 | use std::io::{Read, Cursor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:532:70 [INFO] [stdout] | [INFO] [stdout] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [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] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:541:68 [INFO] [stdout] | [INFO] [stdout] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [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] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:564:21 [INFO] [stdout] | [INFO] [stdout] 564 | b'0'...b'9' => { v.push(c[0]); } [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:581:92 [INFO] [stdout] | [INFO] [stdout] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [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] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:732:74 [INFO] [stdout] | [INFO] [stdout] 732 | image.pixels = resize(alle_pix,w as u32,h as u32 ,32,16);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 931 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:155:66 [INFO] [stdout] | [INFO] [stdout] 155 | Err(why) => panic!("couldn't open /dev/mem: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:554:96 [INFO] [stdout] | [INFO] [stdout] 554 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:568:96 [INFO] [stdout] | [INFO] [stdout] 568 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:590:84 [INFO] [stdout] | [INFO] [stdout] 590 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:617:96 [INFO] [stdout] | [INFO] [stdout] 617 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:641:96 [INFO] [stdout] | [INFO] [stdout] 641 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:666:96 [INFO] [stdout] | [INFO] [stdout] 666 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:694:96 [INFO] [stdout] | [INFO] [stdout] 694 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:713:96 [INFO] [stdout] | [INFO] [stdout] 713 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:532:70 [INFO] [stdout] | [INFO] [stdout] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [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] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:541:68 [INFO] [stdout] | [INFO] [stdout] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [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] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:581:92 [INFO] [stdout] | [INFO] [stdout] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [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] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:834:78 [INFO] [stdout] | [INFO] [stdout] 834 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:856:74 [INFO] [stdout] | [INFO] [stdout] 856 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:906:41 [INFO] [stdout] | [INFO] [stdout] 906 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:918:71 [INFO] [stdout] | [INFO] [stdout] 918 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:959:45 [INFO] [stdout] | [INFO] [stdout] 959 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:971:75 [INFO] [stdout] | [INFO] [stdout] 971 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:155:66 [INFO] [stdout] | [INFO] [stdout] 155 | Err(why) => panic!("couldn't open /dev/mem: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | let mut d = ROWS / SUB_PANELS_; [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: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:554:96 [INFO] [stdout] | [INFO] [stdout] 554 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:568:96 [INFO] [stdout] | [INFO] [stdout] 568 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:590:84 [INFO] [stdout] | [INFO] [stdout] 590 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:805:25 [INFO] [stdout] | [INFO] [stdout] 805 | let mut top: Pixel = frame.pixels[row_loop as usize][col as usize]; [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/main.rs:806:25 [INFO] [stdout] | [INFO] [stdout] 806 | let mut bot: Pixel = frame.pixels[(ROWS / 2 + row_loop) as usize][col as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:617:96 [INFO] [stdout] | [INFO] [stdout] 617 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:641:96 [INFO] [stdout] | [INFO] [stdout] 641 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:666:96 [INFO] [stdout] | [INFO] [stdout] 666 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:694:96 [INFO] [stdout] | [INFO] [stdout] 694 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:713:96 [INFO] [stdout] | [INFO] [stdout] 713 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:834:78 [INFO] [stdout] | [INFO] [stdout] 834 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:856:74 [INFO] [stdout] | [INFO] [stdout] 856 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:906:41 [INFO] [stdout] | [INFO] [stdout] 906 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:918:71 [INFO] [stdout] | [INFO] [stdout] 918 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:959:45 [INFO] [stdout] | [INFO] [stdout] 959 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::ptr::mut_ptr::::offset` that must be used [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | timer.timereg.offset(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: returns a new pointer rather than modifying its argument [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 401 | let _ = timer.timereg.offset(2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:971:75 [INFO] [stdout] | [INFO] [stdout] 971 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:954:44 [INFO] [stdout] | [INFO] [stdout] 954 | path = Path::new(image_names[index].clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | let mut d = ROWS / SUB_PANELS_; [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/main.rs:805:25 [INFO] [stdout] | [INFO] [stdout] 805 | let mut top: Pixel = frame.pixels[row_loop as usize][col as usize]; [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/main.rs:806:25 [INFO] [stdout] | [INFO] [stdout] 806 | let mut bot: Pixel = frame.pixels[(ROWS / 2 + row_loop) as usize][col as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::ptr::mut_ptr::::offset` that must be used [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | timer.timereg.offset(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: returns a new pointer rather than modifying its argument [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 401 | let _ = timer.timereg.offset(2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:954:44 [INFO] [stdout] | [INFO] [stdout] 954 | path = Path::new(image_names[index].clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.48s [INFO] running `Command { std: "docker" "inspect" "72a0e9370e8ffcf770586b060e179212ae68164211bcfad99567c4941d48b6f0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72a0e9370e8ffcf770586b060e179212ae68164211bcfad99567c4941d48b6f0", kill_on_drop: false }` [INFO] [stdout] 72a0e9370e8ffcf770586b060e179212ae68164211bcfad99567c4941d48b6f0 [INFO] checking JarneClarysse/test_project against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJarneClarysse%2Ftest_project" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] Updating files: 70% (2060/2941) Updating files: 71% (2089/2941) Updating files: 72% (2118/2941) Updating files: 73% (2147/2941) Updating files: 74% (2177/2941) Updating files: 75% (2206/2941) Updating files: 76% (2236/2941) Updating files: 77% (2265/2941) Updating files: 78% (2294/2941) Updating files: 79% (2324/2941) Updating files: 80% (2353/2941) Updating files: 80% (2368/2941) Updating files: 81% (2383/2941) Updating files: 82% (2412/2941) Updating files: 83% (2442/2941) Updating files: 83% (2450/2941) Updating files: 84% (2471/2941) Updating files: 85% (2500/2941) Updating files: 86% (2530/2941) Updating files: 87% (2559/2941) Updating files: 88% (2589/2941) Updating files: 89% (2618/2941) Updating files: 90% (2647/2941) Updating files: 91% (2677/2941) Updating files: 92% (2706/2941) Updating files: 93% (2736/2941) Updating files: 94% (2765/2941) Updating files: 95% (2794/2941) Updating files: 96% (2824/2941) Updating files: 97% (2853/2941) Updating files: 98% (2883/2941) Updating files: 99% (2912/2941) Updating files: 99% (2921/2941) Updating files: 100% (2941/2941) Updating files: 100% (2941/2941), done. [INFO] validating manifest of git repo https://github.com/JarneClarysse/test_project 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 git repo https://github.com/JarneClarysse/test_project [INFO] finished tweaking git repo https://github.com/JarneClarysse/test_project [INFO] tweaked toml for git repo https://github.com/JarneClarysse/test_project written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JarneClarysse/test_project 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 0fb22138f21374b4657c6d8cbc06140ede5d2bc516910f1ba020bbed5547aa10 [INFO] running `Command { std: "docker" "start" "-a" "0fb22138f21374b4657c6d8cbc06140ede5d2bc516910f1ba020bbed5547aa10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0fb22138f21374b4657c6d8cbc06140ede5d2bc516910f1ba020bbed5547aa10", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0fb22138f21374b4657c6d8cbc06140ede5d2bc516910f1ba020bbed5547aa10", kill_on_drop: false }` [INFO] [stdout] 0fb22138f21374b4657c6d8cbc06140ede5d2bc516910f1ba020bbed5547aa10 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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] 7b805d8f277705d2044a2c429de410f48be1ed0726d43680db56977125e3547e [INFO] running `Command { std: "docker" "start" "-a" "7b805d8f277705d2044a2c429de410f48be1ed0726d43680db56977125e3547e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.51 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking cfg-if v0.1.7 [INFO] [stderr] Compiling nix v0.11.0 [INFO] [stderr] Checking bitflags v1.0.4 [INFO] [stderr] Compiling byteorder v1.3.1 [INFO] [stderr] Checking remove_dir_all v0.5.1 [INFO] [stderr] Compiling nix v0.13.0 [INFO] [stderr] Checking libc v0.1.12 [INFO] [stderr] Checking simple-error v0.1.13 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking shuteye v0.3.3 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking tempdir v0.3.7 [INFO] [stderr] Checking mmap v0.1.1 [INFO] [stderr] Checking ctrlc v3.1.1 [INFO] [stderr] Checking rust_project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `Read` is imported redundantly [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 25 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Read` is already imported here [INFO] [stdout] ... [INFO] [stdout] 31 | use std::io::{Read, Cursor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:564:21 [INFO] [stdout] | [INFO] [stdout] 564 | b'0'...b'9' => { v.push(c[0]); } [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:732:74 [INFO] [stdout] | [INFO] [stdout] 732 | image.pixels = resize(alle_pix,w as u32,h as u32 ,32,16);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 931 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Read` is imported redundantly [INFO] [stdout] --> src/main.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 25 | use std::io::prelude::*; [INFO] [stdout] | ------------------- the item `Read` is already imported here [INFO] [stdout] ... [INFO] [stdout] 31 | use std::io::{Read, Cursor}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/main.rs:564:21 [INFO] [stdout] | [INFO] [stdout] 564 | b'0'...b'9' => { v.push(c[0]); } [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [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(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:732:74 [INFO] [stdout] | [INFO] [stdout] 732 | image.pixels = resize(alle_pix,w as u32,h as u32 ,32,16);; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(redundant_semicolons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary trailing semicolon [INFO] [stdout] --> src/main.rs:931:5 [INFO] [stdout] | [INFO] [stdout] 931 | ; [INFO] [stdout] | ^ help: remove this semicolon [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:532:70 [INFO] [stdout] | [INFO] [stdout] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [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] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:541:68 [INFO] [stdout] | [INFO] [stdout] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [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] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:581:92 [INFO] [stdout] | [INFO] [stdout] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [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] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:532:70 [INFO] [stdout] | [INFO] [stdout] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [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] 532 | fn read_pixel(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:541:68 [INFO] [stdout] | [INFO] [stdout] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [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] 541 | fn read_num(cursor: &mut Cursor>) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/main.rs:581:92 [INFO] [stdout] | [INFO] [stdout] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [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] 581 | fn decode_ppm_image(cursor: &mut Cursor>, count_int: i32) -> Result> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:155:66 [INFO] [stdout] | [INFO] [stdout] 155 | Err(why) => panic!("couldn't open /dev/mem: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:155:66 [INFO] [stdout] | [INFO] [stdout] 155 | Err(why) => panic!("couldn't open /dev/mem: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:554:96 [INFO] [stdout] | [INFO] [stdout] 554 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:568:96 [INFO] [stdout] | [INFO] [stdout] 568 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:590:84 [INFO] [stdout] | [INFO] [stdout] 590 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:617:96 [INFO] [stdout] | [INFO] [stdout] 617 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:641:96 [INFO] [stdout] | [INFO] [stdout] 641 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:554:96 [INFO] [stdout] | [INFO] [stdout] 554 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:666:96 [INFO] [stdout] | [INFO] [stdout] 666 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:568:96 [INFO] [stdout] | [INFO] [stdout] 568 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:694:96 [INFO] [stdout] | [INFO] [stdout] 694 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:713:96 [INFO] [stdout] | [INFO] [stdout] 713 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:590:84 [INFO] [stdout] | [INFO] [stdout] 590 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:617:96 [INFO] [stdout] | [INFO] [stdout] 617 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:641:96 [INFO] [stdout] | [INFO] [stdout] 641 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:666:96 [INFO] [stdout] | [INFO] [stdout] 666 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:694:96 [INFO] [stdout] | [INFO] [stdout] 694 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:834:78 [INFO] [stdout] | [INFO] [stdout] 834 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:856:74 [INFO] [stdout] | [INFO] [stdout] 856 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:713:96 [INFO] [stdout] | [INFO] [stdout] 713 | Err(why) => panic!("something happened while parsing header - {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:834:78 [INFO] [stdout] | [INFO] [stdout] 834 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:856:74 [INFO] [stdout] | [INFO] [stdout] 856 | Err(why) => panic!("Woops time did not elapse well: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:906:41 [INFO] [stdout] | [INFO] [stdout] 906 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:918:71 [INFO] [stdout] | [INFO] [stdout] 918 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:959:45 [INFO] [stdout] | [INFO] [stdout] 959 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:971:75 [INFO] [stdout] | [INFO] [stdout] 971 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:906:41 [INFO] [stdout] | [INFO] [stdout] 906 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:918:71 [INFO] [stdout] | [INFO] [stdout] 918 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:959:45 [INFO] [stdout] | [INFO] [stdout] 959 | ... display, why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | let mut d = ROWS / SUB_PANELS_; [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: use of deprecated method `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/main.rs:971:75 [INFO] [stdout] | [INFO] [stdout] 971 | Err(why) => panic!("Could not parse PPM file - Desc: {}", why.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | let mut d = ROWS / SUB_PANELS_; [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/main.rs:805:25 [INFO] [stdout] | [INFO] [stdout] 805 | let mut top: Pixel = frame.pixels[row_loop as usize][col as usize]; [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/main.rs:806:25 [INFO] [stdout] | [INFO] [stdout] 806 | let mut bot: Pixel = frame.pixels[(ROWS / 2 + row_loop) as usize][col as usize]; [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/main.rs:805:25 [INFO] [stdout] | [INFO] [stdout] 805 | let mut top: Pixel = frame.pixels[row_loop as usize][col as usize]; [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/main.rs:806:25 [INFO] [stdout] | [INFO] [stdout] 806 | let mut bot: Pixel = frame.pixels[(ROWS / 2 + row_loop) as usize][col as usize]; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::ptr::mut_ptr::::offset` that must be used [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | timer.timereg.offset(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: returns a new pointer rather than modifying its argument [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 401 | let _ = timer.timereg.offset(2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:954:44 [INFO] [stdout] | [INFO] [stdout] 954 | path = Path::new(image_names[index].clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::ptr::mut_ptr::::offset` that must be used [INFO] [stdout] --> src/main.rs:401:21 [INFO] [stdout] | [INFO] [stdout] 401 | timer.timereg.offset(2); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: returns a new pointer rather than modifying its argument [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 401 | let _ = timer.timereg.offset(2); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.clone()` on a reference in this situation does nothing [INFO] [stdout] --> src/main.rs:954:44 [INFO] [stdout] | [INFO] [stdout] 954 | path = Path::new(image_names[index].clone()); [INFO] [stdout] | ^^^^^^^^ help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] = note: the type `str` does not implement `Clone`, so calling `clone` on `&str` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.86s [INFO] running `Command { std: "docker" "inspect" "7b805d8f277705d2044a2c429de410f48be1ed0726d43680db56977125e3547e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b805d8f277705d2044a2c429de410f48be1ed0726d43680db56977125e3547e", kill_on_drop: false }` [INFO] [stdout] 7b805d8f277705d2044a2c429de410f48be1ed0726d43680db56977125e3547e