[INFO] cloning repository https://github.com/mkpankov/writeork [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mkpankov/writeork" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Fwriteork", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Fwriteork'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8b69c17434c315cb27973ef9372947b6830304bf [INFO] checking mkpankov/writeork/8b69c17434c315cb27973ef9372947b6830304bf against master#518b428304e0008859cb1fd81d1ac20efb2a064a for pr-138961-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmkpankov%2Fwriteork" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mkpankov/writeork [INFO] finished tweaking git repo https://github.com/mkpankov/writeork [INFO] tweaked toml for git repo https://github.com/mkpankov/writeork written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mkpankov/writeork on toolchain 518b428304e0008859cb1fd81d1ac20efb2a064a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+518b428304e0008859cb1fd81d1ac20efb2a064a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mkpankov/writeork 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" "+518b428304e0008859cb1fd81d1ac20efb2a064a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded ansi_term v0.6.1 [INFO] [stderr] Downloaded clap v0.10.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+518b428304e0008859cb1fd81d1ac20efb2a064a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 38d2522f4718c927559ca7d41f2ec5adcca3f6fff59a20ac1e440dd4ef95ea75 [INFO] running `Command { std: "docker" "start" "-a" "38d2522f4718c927559ca7d41f2ec5adcca3f6fff59a20ac1e440dd4ef95ea75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "38d2522f4718c927559ca7d41f2ec5adcca3f6fff59a20ac1e440dd4ef95ea75", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "38d2522f4718c927559ca7d41f2ec5adcca3f6fff59a20ac1e440dd4ef95ea75", kill_on_drop: false }` [INFO] [stdout] 38d2522f4718c927559ca7d41f2ec5adcca3f6fff59a20ac1e440dd4ef95ea75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+518b428304e0008859cb1fd81d1ac20efb2a064a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cd1b2e6da753c8bd0830d45fe8c6b33198e3324f11a39b3ec5d17fa102e86927 [INFO] running `Command { std: "docker" "start" "-a" "cd1b2e6da753c8bd0830d45fe8c6b33198e3324f11a39b3ec5d17fa102e86927", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking ansi_term v0.6.1 [INFO] [stderr] Checking strsim v0.3.0 [INFO] [stderr] Checking clap v0.10.5 [INFO] [stderr] Checking writeork v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/elf/elf_ident.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | try!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/elf/helpers.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | try!(validate_elf_magic(&v[..EI_MAGIC_SIZE])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b32/helpers.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | read_ehdr!(Elf32_Ehdr); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/elf/helpers.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | try!(validate_elf_magic(&v[..EI_MAGIC_SIZE])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b64/helpers.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | read_ehdr!(Elf64_Ehdr); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_ident::ElfIdent` [INFO] [stdout] --> src/elf/prelude.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use super::elf_ident::ElfIdent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::b64::primitive::*` [INFO] [stdout] --> src/elf/prelude.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use super::b64::primitive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_ident_named::ElfIdentNamed` [INFO] [stdout] --> src/elf/prelude.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::elf_ident_named::ElfIdentNamed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_ehdr_machine::ElfEhdrMachine` [INFO] [stdout] --> src/elf/prelude.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use super::elf_ehdr_machine::ElfEhdrMachine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Elf32_Ehdr` and `Elf64_Ehdr` [INFO] [stdout] --> src/elf/prelude.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub use super::{Elf32_Ehdr, Elf64_Ehdr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_phdr_type::ElfPhdrType` [INFO] [stdout] --> src/elf/prelude.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use super::elf_phdr_type::ElfPhdrType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_phdr_flags::ElfPhdrFlags` [INFO] [stdout] --> src/elf/prelude.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use super::elf_phdr_flags::ElfPhdrFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Elf32_Phdr` and `Elf64_Phdr` [INFO] [stdout] --> src/elf/prelude.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | pub use super::{Elf32_Phdr, Elf64_Phdr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/elf/mod.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | ::std::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/elf/mod.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | ::std::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/elf/mod.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::mem::uninitialized() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/elf/elf_ident.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | try!( [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/elf/helpers.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | try!(validate_elf_magic(&v[..EI_MAGIC_SIZE])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b32/helpers.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | read_ehdr!(Elf32_Ehdr); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/elf/helpers.rs:13:13 [INFO] [stdout] | [INFO] [stdout] 13 | try!(validate_elf_magic(&v[..EI_MAGIC_SIZE])); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b64/helpers.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | read_ehdr!(Elf64_Ehdr); [INFO] [stdout] | ---------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `read_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_ident::ElfIdent` [INFO] [stdout] --> src/elf/prelude.rs:1:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub use super::elf_ident::ElfIdent; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::b64::primitive::*` [INFO] [stdout] --> src/elf/prelude.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | pub use super::b64::primitive::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_ident_named::ElfIdentNamed` [INFO] [stdout] --> src/elf/prelude.rs:8:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::elf_ident_named::ElfIdentNamed; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_ehdr_machine::ElfEhdrMachine` [INFO] [stdout] --> src/elf/prelude.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | pub use super::elf_ehdr_machine::ElfEhdrMachine; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Elf32_Ehdr` and `Elf64_Ehdr` [INFO] [stdout] --> src/elf/prelude.rs:11:17 [INFO] [stdout] | [INFO] [stdout] 11 | pub use super::{Elf32_Ehdr, Elf64_Ehdr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_phdr_type::ElfPhdrType` [INFO] [stdout] --> src/elf/prelude.rs:12:9 [INFO] [stdout] | [INFO] [stdout] 12 | pub use super::elf_phdr_type::ElfPhdrType; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::elf_phdr_flags::ElfPhdrFlags` [INFO] [stdout] --> src/elf/prelude.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use super::elf_phdr_flags::ElfPhdrFlags; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Elf32_Phdr` and `Elf64_Phdr` [INFO] [stdout] --> src/elf/prelude.rs:14:17 [INFO] [stdout] | [INFO] [stdout] 14 | pub use super::{Elf32_Phdr, Elf64_Phdr}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `std::mem::uninitialized`: use `mem::MaybeUninit` instead [INFO] [stdout] --> src/elf/mod.rs:39:21 [INFO] [stdout] | [INFO] [stdout] 39 | ::std::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/elf/mod.rs:46:21 [INFO] [stdout] | [INFO] [stdout] 46 | ::std::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/elf/mod.rs:53:21 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::mem::uninitialized() [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToHostInPlaceStruct` is never used [INFO] [stdout] --> src/to_host/mod.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait ToHostInPlaceStruct { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SwapInPlace` is never used [INFO] [stdout] --> src/to_host/swap_in_place.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait SwapInPlace { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToHostInPlace` is never used [INFO] [stdout] --> src/to_host/to_host_in_place.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait ToHostInPlace: SwapInPlace { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `writeork` (bin "writeork" test) due to 2 previous errors; 20 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: the type `ElfIdent` does not permit being left uninitialized [INFO] [stdout] --> src/elf/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | ::std::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 (in this struct field) [INFO] [stdout] --> src/elf/elf_ident.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | data: [u8; EI_NIDENT], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u16` does not permit being left uninitialized [INFO] [stdout] --> src/elf/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | ::std::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 `u16` does not permit being left uninitialized [INFO] [stdout] --> src/elf/mod.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::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] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/elf/elf_ehdr.rs:162:52 [INFO] [stdout] | [INFO] [stdout] 160 | ::std::mem::transmute(self) [INFO] [stdout] | --------------------------- casting happened here [INFO] [stdout] 161 | }; [INFO] [stdout] 162 | let ehdr: &mut Elf_Ehdr = unsafe { &mut *ehdr_ptr }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b32/elf_ehdr.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | elf_ehdr!(Elf32_Half, Elf32_Word, Elf32_Addr, Elf32_Off); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] = note: this error originates in the macro `elf_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/elf/elf_ehdr.rs:162:52 [INFO] [stdout] | [INFO] [stdout] 160 | ::std::mem::transmute(self) [INFO] [stdout] | --------------------------- casting happened here [INFO] [stdout] 161 | }; [INFO] [stdout] 162 | let ehdr: &mut Elf_Ehdr = unsafe { &mut *ehdr_ptr }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b64/elf_ehdr.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | elf_ehdr!(Elf64_Half, Elf64_Word, Elf64_Addr, Elf64_Off); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this error originates in the macro `elf_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToHostInPlaceStruct` is never used [INFO] [stdout] --> src/to_host/mod.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub trait ToHostInPlaceStruct { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `SwapInPlace` is never used [INFO] [stdout] --> src/to_host/swap_in_place.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait SwapInPlace { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ToHostInPlace` is never used [INFO] [stdout] --> src/to_host/to_host_in_place.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait ToHostInPlace: SwapInPlace { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `ElfIdent` does not permit being left uninitialized [INFO] [stdout] --> src/elf/mod.rs:39:9 [INFO] [stdout] | [INFO] [stdout] 39 | ::std::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 (in this struct field) [INFO] [stdout] --> src/elf/elf_ident.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | data: [u8; EI_NIDENT], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `#[warn(invalid_value)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the type `u16` does not permit being left uninitialized [INFO] [stdout] --> src/elf/mod.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | ::std::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 `u16` does not permit being left uninitialized [INFO] [stdout] --> src/elf/mod.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 53 | ::std::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] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/elf/elf_ehdr.rs:162:52 [INFO] [stdout] | [INFO] [stdout] 160 | ::std::mem::transmute(self) [INFO] [stdout] | --------------------------- casting happened here [INFO] [stdout] 161 | }; [INFO] [stdout] 162 | let ehdr: &mut Elf_Ehdr = unsafe { &mut *ehdr_ptr }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b32/elf_ehdr.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | elf_ehdr!(Elf32_Half, Elf32_Word, Elf32_Addr, Elf32_Off); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: `#[deny(invalid_reference_casting)]` on by default [INFO] [stdout] = note: this error originates in the macro `elf_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` [INFO] [stdout] --> src/elf/elf_ehdr.rs:162:52 [INFO] [stdout] | [INFO] [stdout] 160 | ::std::mem::transmute(self) [INFO] [stdout] | --------------------------- casting happened here [INFO] [stdout] 161 | }; [INFO] [stdout] 162 | let ehdr: &mut Elf_Ehdr = unsafe { &mut *ehdr_ptr }; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/elf/b64/elf_ehdr.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | elf_ehdr!(Elf64_Half, Elf64_Word, Elf64_Addr, Elf64_Off); [INFO] [stdout] | -------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, visit [INFO] [stdout] = note: this error originates in the macro `elf_ehdr` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `writeork` (bin "writeork") due to 2 previous errors; 20 warnings emitted [INFO] running `Command { std: "docker" "inspect" "cd1b2e6da753c8bd0830d45fe8c6b33198e3324f11a39b3ec5d17fa102e86927", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cd1b2e6da753c8bd0830d45fe8c6b33198e3324f11a39b3ec5d17fa102e86927", kill_on_drop: false }` [INFO] [stdout] cd1b2e6da753c8bd0830d45fe8c6b33198e3324f11a39b3ec5d17fa102e86927