[INFO] fetching crate leafrender 0.1.0... [INFO] testing leafrender-0.1.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-8 [INFO] extracting crate leafrender 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] started tweaking crates.io crate leafrender 0.1.0 [INFO] finished tweaking crates.io crate leafrender 0.1.0 [INFO] tweaked toml for crates.io crate leafrender 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate leafrender 0.1.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 139 packages to latest compatible versions [INFO] [stderr] Adding evdev v0.10.2 (available: v0.13.2) [INFO] [stderr] Adding gl v0.12.0 (available: v0.14.0) [INFO] [stderr] Adding glutin v0.21.2 (available: v0.32.3) [INFO] [stderr] Adding image v0.21.3 (available: v0.25.8) [INFO] [stderr] Adding libc v0.1.12 (available: v0.2.177) [INFO] [stderr] Adding rusttype v0.7.9 (available: v0.9.3) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 60de860207682d2eaade9f23861d3162a1ea083341b324f128b7f693d40785ee [INFO] running `Command { std: "docker" "start" "-a" "60de860207682d2eaade9f23861d3162a1ea083341b324f128b7f693d40785ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60de860207682d2eaade9f23861d3162a1ea083341b324f128b7f693d40785ee", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60de860207682d2eaade9f23861d3162a1ea083341b324f128b7f693d40785ee", kill_on_drop: false }` [INFO] [stdout] 60de860207682d2eaade9f23861d3162a1ea083341b324f128b7f693d40785ee [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad72eb85768051da1aa825c572007d4158b612770cdfaad9ed786faea4e9891d [INFO] running `Command { std: "docker" "start" "-a" "ad72eb85768051da1aa825c572007d4158b612770cdfaad9ed786faea4e9891d", kill_on_drop: false }` [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling libloading v0.6.7 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling stb_truetype v0.3.1 [INFO] [stderr] Compiling ordered-float v1.1.1 [INFO] [stderr] Compiling approx v0.3.2 [INFO] [stderr] Compiling downcast-rs v1.2.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling rayon-core v1.13.0 [INFO] [stderr] Compiling parking_lot_core v0.6.3 [INFO] [stderr] Compiling crossbeam-epoch v0.9.18 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling line_drawing v0.7.0 [INFO] [stderr] Compiling xdg v2.5.2 [INFO] [stderr] Compiling adler32 v1.2.0 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling wayland-sys v0.21.13 [INFO] [stderr] Compiling crossbeam-deque v0.8.6 [INFO] [stderr] Compiling rusttype v0.8.3 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling memmap v0.7.0 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling lzw v0.10.0 [INFO] [stderr] Compiling raw-window-handle v0.3.4 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling rusttype v0.7.9 [INFO] [stderr] Compiling num-iter v0.1.45 [INFO] [stderr] Compiling andrew v0.2.1 [INFO] [stderr] Compiling shared_library v0.1.9 [INFO] [stderr] Compiling gif v0.10.3 [INFO] [stderr] Compiling png v0.14.1 [INFO] [stderr] Compiling osmesa-sys v0.1.2 [INFO] [stderr] Compiling scoped_threadpool v0.1.9 [INFO] [stderr] Compiling rayon v1.11.0 [INFO] [stderr] Compiling libc v0.1.12 [INFO] [stderr] Compiling glutin_egl_sys v0.1.6 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling glutin_glx_sys v0.1.8 [INFO] [stderr] Compiling gl v0.12.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling wayland-commons v0.21.13 [INFO] [stderr] Compiling tiff v0.2.2 [INFO] [stderr] Compiling jpeg-decoder v0.1.22 [INFO] [stderr] Compiling image v0.21.3 [INFO] [stderr] Compiling smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling winit v0.19.5 [INFO] [stderr] Compiling glutin v0.21.2 [INFO] [stderr] Compiling leafrender v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/texture.rs:21:45 [INFO] [stdout] | [INFO] [stdout] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/vbo.rs:32:37 [INFO] [stdout] | [INFO] [stdout] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/drawer.rs:356:32 [INFO] [stdout] | [INFO] [stdout] 356 | let mut ptr = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/render/font.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | draw: &mut Drawer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | draw: &mut dyn Drawer, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/texture.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/vbo.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/drawer.rs:356:27 [INFO] [stdout] | [INFO] [stdout] 356 | let mut ptr = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 11s [INFO] running `Command { std: "docker" "inspect" "ad72eb85768051da1aa825c572007d4158b612770cdfaad9ed786faea4e9891d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad72eb85768051da1aa825c572007d4158b612770cdfaad9ed786faea4e9891d", kill_on_drop: false }` [INFO] [stdout] ad72eb85768051da1aa825c572007d4158b612770cdfaad9ed786faea4e9891d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a4c4e9f7cc91668207c783156ceda0bded2ec2b9b92d72a8acba42e33b07382d [INFO] running `Command { std: "docker" "start" "-a" "a4c4e9f7cc91668207c783156ceda0bded2ec2b9b92d72a8acba42e33b07382d", kill_on_drop: false }` [INFO] [stderr] Compiling leafrender v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/texture.rs:21:45 [INFO] [stdout] | [INFO] [stdout] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/vbo.rs:32:37 [INFO] [stdout] | [INFO] [stdout] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/drawer.rs:356:32 [INFO] [stdout] | [INFO] [stdout] 356 | let mut ptr = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/render/font.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | draw: &mut Drawer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | draw: &mut dyn Drawer, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/texture.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/vbo.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/drawer.rs:356:27 [INFO] [stdout] | [INFO] [stdout] 356 | let mut ptr = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/texture.rs:21:45 [INFO] [stdout] | [INFO] [stdout] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/vbo.rs:32:37 [INFO] [stdout] | [INFO] [stdout] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/render/glutin/drawer.rs:356:32 [INFO] [stdout] | [INFO] [stdout] 356 | let mut ptr = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/render/font.rs:57:20 [INFO] [stdout] | [INFO] [stdout] 57 | draw: &mut Drawer, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 57 | draw: &mut dyn Drawer, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/texture.rs:21:40 [INFO] [stdout] | [INFO] [stdout] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/vbo.rs:32:32 [INFO] [stdout] | [INFO] [stdout] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u32` does not permit being left uninitialized [INFO] [stdout] --> src/render/glutin/drawer.rs:356:27 [INFO] [stdout] | [INFO] [stdout] 356 | let mut ptr = mem::uninitialized(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | this code causes undefined behavior when executed [INFO] [stdout] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stdout] | [INFO] [stdout] = note: integers must be initialized [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "a4c4e9f7cc91668207c783156ceda0bded2ec2b9b92d72a8acba42e33b07382d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4c4e9f7cc91668207c783156ceda0bded2ec2b9b92d72a8acba42e33b07382d", kill_on_drop: false }` [INFO] [stdout] a4c4e9f7cc91668207c783156ceda0bded2ec2b9b92d72a8acba42e33b07382d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4704bc56c9f62ca5b939d83bc075947f60300b3c51108809b10695a32e375025 [INFO] running `Command { std: "docker" "start" "-a" "4704bc56c9f62ca5b939d83bc075947f60300b3c51108809b10695a32e375025", kill_on_drop: false }` [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/render/glutin/texture.rs:21:45 [INFO] [stderr] | [INFO] [stderr] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/render/glutin/vbo.rs:32:37 [INFO] [stderr] | [INFO] [stderr] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stderr] --> src/render/glutin/drawer.rs:356:32 [INFO] [stderr] | [INFO] [stderr] 356 | let mut ptr = mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/render/font.rs:57:20 [INFO] [stderr] | [INFO] [stderr] 57 | draw: &mut Drawer, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stderr] help: if this is a dyn-compatible trait, use `dyn` [INFO] [stderr] | [INFO] [stderr] 57 | draw: &mut dyn Drawer, [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: the type `u32` does not permit being left uninitialized [INFO] [stderr] --> src/render/glutin/texture.rs:21:40 [INFO] [stderr] | [INFO] [stderr] 21 | let mut texture_ref = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: integers must be initialized [INFO] [stderr] = note: `#[warn(invalid_value)]` on by default [INFO] [stderr] [INFO] [stderr] warning: the type `u32` does not permit being left uninitialized [INFO] [stderr] --> src/render/glutin/vbo.rs:32:32 [INFO] [stderr] | [INFO] [stderr] 32 | let mut ptr = unsafe { mem::uninitialized() }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: integers must be initialized [INFO] [stderr] [INFO] [stderr] warning: the type `u32` does not permit being left uninitialized [INFO] [stderr] --> src/render/glutin/drawer.rs:356:27 [INFO] [stderr] | [INFO] [stderr] 356 | let mut ptr = mem::uninitialized(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | this code causes undefined behavior when executed [INFO] [stderr] | help: use `MaybeUninit` instead, and only call `assume_init` after initialization is done [INFO] [stderr] | [INFO] [stderr] = note: integers must be initialized [INFO] [stderr] [INFO] [stderr] warning: `leafrender` (lib) generated 7 warnings (run `cargo fix --lib -p leafrender` to apply 1 suggestion) [INFO] [stderr] warning: `leafrender` (lib test) generated 7 warnings (7 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.14s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/leafrender-1c8f3308b39665c9) [INFO] [stdout] [INFO] [stderr] Doc-tests leafrender [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/lib.rs - (line 65) ... FAILED [INFO] [stdout] test src/lib.rs - (line 14) ... FAILED [INFO] [stdout] test src/lib.rs - (line 95) ... FAILED [INFO] [stdout] test src/lib.rs - (line 20) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 65) stdout ---- [INFO] [stdout] error: this file contains an unclosed delimiter [INFO] [stdout] --> src/lib.rs:90:2 [INFO] [stdout] | [INFO] [stdout] 76 | font.draw( [INFO] [stdout] | - unclosed delimiter [INFO] [stdout] ... [INFO] [stdout] 90 | ; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 14) stdout ---- [INFO] [stdout] error[E0423]: expected value, found crate `leafrender` [INFO] [stdout] --> src/lib.rs:16:1 [INFO] [stdout] | [INFO] [stdout] 16 | leafrender = "0.1.0" [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: you might have meant to introduce a new binding [INFO] [stdout] | [INFO] [stdout] 16 | let leafrender = "0.1.0" [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0423`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 95) stdout ---- [INFO] [stdout] error: couldn't read `src/img.jpg`: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:98:37 [INFO] [stdout] | [INFO] [stdout] 98 | let image = image::load_from_memory(include_bytes!("img.jpg")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `drawer` in this scope [INFO] [stdout] --> src/lib.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let image = drawer.convert_image(&image); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `drawer` in this scope [INFO] [stdout] --> src/lib.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | drawer.draw_texture(&image, &Position { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Position` in this scope [INFO] [stdout] --> src/lib.rs:107:30 [INFO] [stdout] | [INFO] [stdout] 107 | drawer.draw_texture(&image, &Position { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 95 + use leafrender::pos::Position; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 20) stdout ---- [INFO] [stdout] Test executable failed (exit status: 101). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] [INFO] [stdout] thread 'main' (70) panicked at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.19.5/src/platform/linux/mod.rs:467:9: [INFO] [stdout] Failed to initialize any backend! Wayland status: XdgRuntimeDirNotSet X11 status: XOpenDisplayFailed [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x57cc84192c82 - std::backtrace_rs::backtrace::libunwind::trace::h9ea1e07ac77a25d7 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x57cc84192c82 - std::backtrace_rs::backtrace::trace_unsynchronized::h72b75eb83b53d15a [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x57cc84192c82 - std::sys::backtrace::_print_fmt::h255777b7ec902439 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x57cc84192c82 - ::fmt::h8a1ac49fcd7ee8ce [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x57cc841a309f - core::fmt::rt::Argument::fmt::h635cbf3c6754cc90 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x57cc841a309f - core::fmt::write::hbdcc0ec4f1bab1db [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/mod.rs:1469:25 [INFO] [stdout] 6: 0x57cc8416c2a3 - std::io::default_write_fmt::hb29d13affe7e9cd0 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x57cc8416c2a3 - std::io::Write::write_fmt::hec441b8c6eca32b9 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:1954:13 [INFO] [stdout] 8: 0x57cc841731e2 - std::sys::backtrace::BacktraceLock::print::h052febbd86f7bf07 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x57cc841763af - std::panicking::default_hook::{{closure}}::h66aeee20dd470abb [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:301:27 [INFO] [stdout] 10: 0x57cc84176209 - std::panicking::default_hook::h9d66b9642014ce48 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:328:9 [INFO] [stdout] 11: 0x57cc84176985 - std::panicking::panic_with_hook::h6d5921a1a1fa5a8e [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:834:13 [INFO] [stdout] 12: 0x57cc83f9981b - std::panicking::begin_panic::{{closure}}::h5ab09fad6a2012c5 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:771:9 [INFO] [stdout] 13: 0x57cc83fa9d77 - std::sys::backtrace::__rust_end_short_backtrace::h7933a64f942648d5 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stdout] 14: 0x57cc83f997b4 - std::panicking::begin_panic::h0c78ffbb3bacbac4 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:770:5 [INFO] [stdout] 15: 0x57cc83f70109 - winit::platform::platform::EventsLoop::new::h8ac8f8853e191dbf [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.19.5/src/platform/linux/mod.rs:467:9 [INFO] [stdout] 16: 0x57cc83fc891b - winit::EventsLoop::new::h1cceb5e08a0e001a [INFO] [stdout] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/winit-0.19.5/src/lib.rs:251:26 [INFO] [stdout] 17: 0x57cc83ece17e - ::new::h5723f7132c7efb5e [INFO] [stdout] at /opt/rustwide/workdir/src/render/glutin/drawer.rs:319:27 [INFO] [stdout] 18: 0x57cc83eca954 - rust_out::main::_doctest_main_src_lib_rs_20_0::hdc310c15a4e530a5 [INFO] [stdout] 19: 0x57cc83eca916 - rust_out::main::h583ff58340d718d9 [INFO] [stdout] 20: 0x57cc83eca3a3 - core::ops::function::FnOnce::call_once::h14c180921ac1da5e [INFO] [stdout] 21: 0x57cc83eca386 - std::sys::backtrace::__rust_begin_short_backtrace::h6b98eb9b1ad88857 [INFO] [stdout] 22: 0x57cc83eca369 - std::rt::lang_start::{{closure}}::h2fc95fa84f0c83a2 [INFO] [stdout] 23: 0x57cc8416dbb0 - core::ops::function::impls:: for &F>::call_once::h9095abc9db71b07e [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/ops/function.rs:287:21 [INFO] [stdout] 24: 0x57cc8416dbb0 - std::panicking::catch_unwind::do_call::h6cf5dc461761418c [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 25: 0x57cc8416dbb0 - std::panicking::catch_unwind::h60074fd2327f40bd [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 26: 0x57cc8416dbb0 - std::panic::catch_unwind::heb14fa8e39d051cf [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stdout] 27: 0x57cc8416dbb0 - std::rt::lang_start_internal::{{closure}}::hfb550bec36306a19 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/rt.rs:175:24 [INFO] [stdout] 28: 0x57cc8416dbb0 - std::panicking::catch_unwind::do_call::hc805f36f35b6d647 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:590:40 [INFO] [stdout] 29: 0x57cc8416dbb0 - std::panicking::catch_unwind::hb8d32f0195463ad2 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:553:19 [INFO] [stdout] 30: 0x57cc8416dbb0 - std::panic::catch_unwind::hcebe3b1d5adfc5a2 [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x57cc8416dbb0 - std::rt::lang_start_internal::h27f55ed238aa26df [INFO] [stdout] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/rt.rs:171:5 [INFO] [stdout] 32: 0x57cc83eca351 - std::rt::lang_start::h762c340aaede70f7 [INFO] [stdout] 33: 0x57cc83ecaa85 - main [INFO] [stdout] 34: 0x7d21d284b1ca - [INFO] [stdout] 35: 0x7d21d284b28b - __libc_start_main [INFO] [stdout] 36: 0x57cc83ec9f15 - _start [INFO] [stdout] 37: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 14) [INFO] [stdout] src/lib.rs - (line 20) [INFO] [stdout] src/lib.rs - (line 65) [INFO] [stdout] src/lib.rs - (line 95) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.83s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "4704bc56c9f62ca5b939d83bc075947f60300b3c51108809b10695a32e375025", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4704bc56c9f62ca5b939d83bc075947f60300b3c51108809b10695a32e375025", kill_on_drop: false }` [INFO] [stdout] 4704bc56c9f62ca5b939d83bc075947f60300b3c51108809b10695a32e375025