[INFO] cloning repository https://github.com/notflan/collect [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/notflan/collect" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotflan%2Fcollect", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotflan%2Fcollect'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f4f7aafa326b71c73971343ef47a249e372921bc [INFO] checking notflan/collect against master#506512391b1a75ae450d36c9420978402a91abcc for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotflan%2Fcollect" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notflan/collect on toolchain 506512391b1a75ae450d36c9420978402a91abcc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/notflan/collect [INFO] finished tweaking git repo https://github.com/notflan/collect [INFO] tweaked toml for git repo https://github.com/notflan/collect written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/notflan/collect 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" "+506512391b1a75ae450d36c9420978402a91abcc" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lazy_format v1.10.0 [INFO] [stderr] Downloaded recolored v1.9.3 [INFO] [stderr] Downloaded jemallocator v0.3.2 [INFO] [stderr] Downloaded owo-colors v3.3.0 [INFO] [stderr] Downloaded tracing-core v0.1.24 [INFO] [stderr] Downloaded tracing v0.1.33 [INFO] [stderr] Downloaded libc v0.2.122 [INFO] [stderr] Downloaded color-eyre v0.6.1 [INFO] [stderr] Downloaded jemalloc-sys v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f7a7ebb7cf5794c99c75b7d544a10e71b48b44039b01f1b5d5e333202a3c4f7e [INFO] running `Command { std: "docker" "start" "-a" "f7a7ebb7cf5794c99c75b7d544a10e71b48b44039b01f1b5d5e333202a3c4f7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f7a7ebb7cf5794c99c75b7d544a10e71b48b44039b01f1b5d5e333202a3c4f7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7a7ebb7cf5794c99c75b7d544a10e71b48b44039b01f1b5d5e333202a3c4f7e", kill_on_drop: false }` [INFO] [stdout] f7a7ebb7cf5794c99c75b7d544a10e71b48b44039b01f1b5d5e333202a3c4f7e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+506512391b1a75ae450d36c9420978402a91abcc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8caf0089ba8cb30799df150d823cd7972b92646ae4d5d73bfc17ceaeb68311d4 [INFO] running `Command { std: "docker" "start" "-a" "8caf0089ba8cb30799df150d823cd7972b92646ae4d5d73bfc17ceaeb68311d4", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking tracing-core v0.1.24 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking object v0.27.1 [INFO] [stderr] Checking owo-colors v3.3.0 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking lazy_format v1.10.0 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Checking tracing v0.1.33 [INFO] [stderr] Checking tracing-subscriber v0.3.11 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking color-eyre v0.6.1 [INFO] [stderr] Checking collect v1.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.45s [INFO] running `Command { std: "docker" "inspect" "8caf0089ba8cb30799df150d823cd7972b92646ae4d5d73bfc17ceaeb68311d4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8caf0089ba8cb30799df150d823cd7972b92646ae4d5d73bfc17ceaeb68311d4", kill_on_drop: false }` [INFO] [stdout] 8caf0089ba8cb30799df150d823cd7972b92646ae4d5d73bfc17ceaeb68311d4 [INFO] checking notflan/collect against try#dae34b759e282c069aa28752564694effd121a63 for pr-125384 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotflan%2Fcollect" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notflan/collect on toolchain dae34b759e282c069aa28752564694effd121a63 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/notflan/collect [INFO] finished tweaking git repo https://github.com/notflan/collect [INFO] tweaked toml for git repo https://github.com/notflan/collect written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/notflan/collect 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" "+dae34b759e282c069aa28752564694effd121a63" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5d4988b1de079c9c66e0173b5efcc544a21f43b78e00e3094c38e39588ef9142 [INFO] running `Command { std: "docker" "start" "-a" "5d4988b1de079c9c66e0173b5efcc544a21f43b78e00e3094c38e39588ef9142", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5d4988b1de079c9c66e0173b5efcc544a21f43b78e00e3094c38e39588ef9142", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5d4988b1de079c9c66e0173b5efcc544a21f43b78e00e3094c38e39588ef9142", kill_on_drop: false }` [INFO] [stdout] 5d4988b1de079c9c66e0173b5efcc544a21f43b78e00e3094c38e39588ef9142 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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:beeedbb442662e57d416641ecc3200b38e573c25b057896194468d05594dd835" "/opt/rustwide/cargo-home/bin/cargo" "+dae34b759e282c069aa28752564694effd121a63" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4b96e34f30b20dea4da72597baa72c87a973b1f1639089583dd61b9c98b7968e [INFO] running `Command { std: "docker" "start" "-a" "4b96e34f30b20dea4da72597baa72c87a973b1f1639089583dd61b9c98b7968e", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Migrating Cargo.toml from 2021 edition to 2024 [INFO] [stderr] Fixed Cargo.toml (7 fixes) [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Checking pin-project-lite v0.2.8 [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Checking ansi_term v0.12.1 [INFO] [stderr] Checking adler v1.0.2 [INFO] [stderr] Checking tracing-core v0.1.24 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking object v0.27.1 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking owo-colors v3.3.0 [INFO] [stderr] Checking thread_local v1.1.4 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking lazy_format v1.10.0 [INFO] [stderr] Checking tracing-log v0.1.2 [INFO] [stderr] Compiling backtrace v0.3.64 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking regex-automata v0.1.10 [INFO] [stderr] Checking regex v1.5.5 [INFO] [stderr] Checking addr2line v0.17.0 [INFO] [stderr] Checking matchers v0.1.0 [INFO] [stderr] Compiling tracing-attributes v0.1.20 [INFO] [stderr] Checking tracing v0.1.33 [INFO] [stderr] Checking tracing-subscriber v0.3.11 [INFO] [stderr] Checking tracing-error v0.2.0 [INFO] [stderr] Checking color-spantrace v0.2.0 [INFO] [stderr] Checking color-eyre v0.6.1 [INFO] [stderr] Checking collect v1.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `collect` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected identifier, found `{` [INFO] [stderr] --> src/main.rs:556:31 [INFO] [stderr] | [INFO] [stderr] 556 | #[cfg_attr(feature="logging", { unsafe instrument(err)})] [INFO] [stderr] | ^ expected identifier [INFO] [stderr] | [INFO] [stderr] = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]` [INFO] [stderr] = note: for more information, visit [INFO] [stderr] [INFO] [stderr] warning: call to unsafe function `libc::close` is unsafe and requires unsafe block (error E0133) [INFO] [stderr] --> src/main.rs:560:11 [INFO] [stderr] | [INFO] [stderr] 560 | match libc::close(fd) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/main.rs:558:1 [INFO] [stderr] | [INFO] [stderr] 558 | unsafe fn close_raw_fileno(fd: RawFd) -> io::Result<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stderr] [INFO] [stdout] warning: call to unsafe function `std::num::NonZero::::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile/fd.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | Self(NonZeroU32::new_unchecked( (from as u32) | Self::MASK )) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile/fd.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub const unsafe fn new_unchecked(from: i32) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: call to unsafe function `memfile::fd::NonNegativeI32::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile/fd.rs:146:7 [INFO] [stdout] | [INFO] [stdout] 146 | Self(NonNegativeI32::new_unchecked(fd)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile/fd.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub const unsafe fn new_unchecked(fd: FileNo) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::os::fd::FromRawFd::from_raw_fd` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile.rs:109:2 [INFO] [stdout] | [INFO] [stdout] 109 | Self::from_raw_fd(fd.get()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn from_fileno(fd: fd::RawFileDescriptor) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `memfile::fd::RawFileDescriptor::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile.rs:140:7 [INFO] [stdout] | [INFO] [stdout] 140 | Self(fd::RawFileDescriptor::new_unchecked(fd.into())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub unsafe fn take_ownership_of_raw_unchecked(fd: impl Into) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::close` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/main.rs:560:11 [INFO] [stdout] | [INFO] [stdout] 560 | match libc::close(fd) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:556:31 [INFO] [stdout] | [INFO] [stdout] 556 | #[cfg_attr(feature="logging", instrument(err))] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `instrument` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `collect` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/main.rs [INFO] [stderr] [INFO] [stderr] This likely indicates a bug in either rustc or cargo itself, [INFO] [stderr] and we would appreciate a bug report! You're likely to see [INFO] [stderr] a number of compiler warnings after this message which cargo [INFO] [stderr] attempted to fix but failed. If you could open an issue at [INFO] [stderr] https://github.com/rust-lang/rust/issues [INFO] [stderr] quoting the full output of this command we'd be very appreciative! [INFO] [stderr] Note that you may be able to make some more progress in the near-term [INFO] [stderr] fixing code with the `--broken-code` flag [INFO] [stderr] [INFO] [stderr] The following errors were reported: [INFO] [stderr] error: expected identifier, found `{` [INFO] [stderr] --> src/main.rs:556:31 [INFO] [stderr] | [INFO] [stderr] 556 | #[cfg_attr(feature="logging", { unsafe instrument(err)})] [INFO] [stderr] | ^ expected identifier [INFO] [stderr] | [INFO] [stderr] = help: the valid syntax is `#[cfg_attr(condition, attribute, other_attribute, ...)]` [INFO] [stderr] = note: for more information, visit [INFO] [stderr] [INFO] [stderr] warning: call to unsafe function `libc::close` is unsafe and requires unsafe block (error E0133) [INFO] [stderr] --> src/main.rs:560:11 [INFO] [stderr] | [INFO] [stderr] 560 | match libc::close(fd) { [INFO] [stderr] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: for more information, see issue #71668 [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stderr] --> src/main.rs:558:1 [INFO] [stderr] | [INFO] [stderr] 558 | unsafe fn close_raw_fileno(fd: RawFd) -> io::Result<()> [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stderr] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stderr] [INFO] [stderr] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning: call to unsafe function `std::num::NonZero::::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile/fd.rs:34:7 [INFO] [stdout] | [INFO] [stdout] 34 | Self(NonZeroU32::new_unchecked( (from as u32) | Self::MASK )) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile/fd.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub const unsafe fn new_unchecked(from: i32) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] = note: `--force-warn unsafe-op-in-unsafe-fn` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = help: to override `--force-warn rust-2024-compatibility` add `#[allow(unsafe_op_in_unsafe_fn)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `memfile::fd::NonNegativeI32::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile/fd.rs:146:7 [INFO] [stdout] | [INFO] [stdout] 146 | Self(NonNegativeI32::new_unchecked(fd)) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile/fd.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | pub const unsafe fn new_unchecked(fd: FileNo) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `std::os::fd::FromRawFd::from_raw_fd` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile.rs:109:2 [INFO] [stdout] | [INFO] [stdout] 109 | Self::from_raw_fd(fd.get()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile.rs:107:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub unsafe fn from_fileno(fd: fd::RawFileDescriptor) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `memfile::fd::RawFileDescriptor::new_unchecked` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/memfile.rs:140:7 [INFO] [stdout] | [INFO] [stdout] 140 | Self(fd::RawFileDescriptor::new_unchecked(fd.into())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/memfile.rs:138:5 [INFO] [stdout] | [INFO] [stdout] 138 | pub unsafe fn take_ownership_of_raw_unchecked(fd: impl Into) -> Self [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to unsafe function `libc::close` is unsafe and requires unsafe block (error E0133) [INFO] [stdout] --> src/main.rs:560:11 [INFO] [stdout] | [INFO] [stdout] 560 | match libc::close(fd) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #71668 [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] note: an unsafe function restricts its caller, but its body is safe by default [INFO] [stdout] --> src/main.rs:556:31 [INFO] [stdout] | [INFO] [stdout] 556 | #[cfg_attr(feature="logging", instrument(err))] [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] = note: this warning originates in the attribute macro `instrument` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.70s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] error: failed to parse manifest at `/tmp/fixit/Cargo.toml` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] feature `jemalloc` includes `jemallocator` which is neither a dependency nor another feature [INFO] [stderr] error: failed to check after updating to 2024 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "4b96e34f30b20dea4da72597baa72c87a973b1f1639089583dd61b9c98b7968e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4b96e34f30b20dea4da72597baa72c87a973b1f1639089583dd61b9c98b7968e", kill_on_drop: false }` [INFO] [stdout] 4b96e34f30b20dea4da72597baa72c87a973b1f1639089583dd61b9c98b7968e