[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#91c0823ee63e793d990bb9fed898dc95b5d6db51 for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotflan%2Fcollect" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notflan/collect on toolchain 91c0823ee63e793d990bb9fed898dc95b5d6db51 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "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-6-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" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded tracing-log v0.1.2 [INFO] [stderr] Downloaded log v0.4.16 [INFO] [stderr] Downloaded recolored v1.9.3 [INFO] [stderr] Downloaded thread_local v1.1.4 [INFO] [stderr] Downloaded jemallocator v0.3.2 [INFO] [stderr] Downloaded lazy_format v1.10.0 [INFO] [stderr] Downloaded tracing-attributes v0.1.20 [INFO] [stderr] Downloaded once_cell v1.10.0 [INFO] [stderr] Downloaded owo-colors v3.3.0 [INFO] [stderr] Downloaded fs_extra v1.2.0 [INFO] [stderr] Downloaded proc-macro2 v1.0.37 [INFO] [stderr] Downloaded tracing-core v0.1.24 [INFO] [stderr] Downloaded eyre v0.6.8 [INFO] [stderr] Downloaded tracing v0.1.33 [INFO] [stderr] Downloaded smallvec v1.9.0 [INFO] [stderr] Downloaded tracing-subscriber v0.3.11 [INFO] [stderr] Downloaded backtrace v0.3.64 [INFO] [stderr] Downloaded syn v1.0.91 [INFO] [stderr] Downloaded color-spantrace v0.2.0 [INFO] [stderr] Downloaded object v0.27.1 [INFO] [stderr] Downloaded regex v1.5.5 [INFO] [stderr] Downloaded libc v0.2.122 [INFO] [stderr] Downloaded gimli v0.26.1 [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-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 25e557ff4e6125df741ffab2099b83108db5a7a54fb4c70f761e4d52cf3b45fd [INFO] running `Command { std: "docker" "start" "-a" "25e557ff4e6125df741ffab2099b83108db5a7a54fb4c70f761e4d52cf3b45fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "25e557ff4e6125df741ffab2099b83108db5a7a54fb4c70f761e4d52cf3b45fd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "25e557ff4e6125df741ffab2099b83108db5a7a54fb4c70f761e4d52cf3b45fd", kill_on_drop: false }` [INFO] [stdout] 25e557ff4e6125df741ffab2099b83108db5a7a54fb4c70f761e4d52cf3b45fd [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=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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+91c0823ee63e793d990bb9fed898dc95b5d6db51" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b161735562e53edcf43f4558ffec74f182b78400fe5c146daeb2516f25cc26f3 [INFO] running `Command { std: "docker" "start" "-a" "b161735562e53edcf43f4558ffec74f182b78400fe5c146daeb2516f25cc26f3", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.37 [INFO] [stderr] Compiling unicode-xid v0.2.2 [INFO] [stderr] Compiling syn v1.0.91 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Compiling log v0.4.16 [INFO] [stderr] Checking tracing-core v0.1.24 [INFO] [stderr] Checking once_cell v1.10.0 [INFO] [stderr] Compiling memchr v2.4.1 [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] Compiling eyre v0.6.8 [INFO] [stderr] Compiling miniz_oxide v0.4.4 [INFO] [stderr] Checking gimli v0.26.1 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking rustc-demangle v0.1.21 [INFO] [stderr] Checking owo-colors v3.3.0 [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 backtrace v0.3.64 [INFO] [stderr] Checking object v0.27.1 [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 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 16.90s [INFO] running `Command { std: "docker" "inspect" "b161735562e53edcf43f4558ffec74f182b78400fe5c146daeb2516f25cc26f3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b161735562e53edcf43f4558ffec74f182b78400fe5c146daeb2516f25cc26f3", kill_on_drop: false }` [INFO] [stdout] b161735562e53edcf43f4558ffec74f182b78400fe5c146daeb2516f25cc26f3 [INFO] checking notflan/collect against try#519d6e23a6cb73c4d0f295f71ad37db8e95c54ab for pr-125384-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnotflan%2Fcollect" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/notflan/collect on toolchain 519d6e23a6cb73c4d0f295f71ad37db8e95c54ab [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "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-6-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" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 632dc14b0c9cff45a970ea04267f72a3c6bc66a7c7cdc25a74ce3cc5ce824078 [INFO] running `Command { std: "docker" "start" "-a" "632dc14b0c9cff45a970ea04267f72a3c6bc66a7c7cdc25a74ce3cc5ce824078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "632dc14b0c9cff45a970ea04267f72a3c6bc66a7c7cdc25a74ce3cc5ce824078", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "632dc14b0c9cff45a970ea04267f72a3c6bc66a7c7cdc25a74ce3cc5ce824078", kill_on_drop: false }` [INFO] [stdout] 632dc14b0c9cff45a970ea04267f72a3c6bc66a7c7cdc25a74ce3cc5ce824078 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:dff56e7819e73ed36160586b3445e93eb0be776c16704aeeded9c3fb668b2384" "/opt/rustwide/cargo-home/bin/cargo" "+519d6e23a6cb73c4d0f295f71ad37db8e95c54ab" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2df1efe82dfa389811da89a5f3af1f7558f566c337b95a3ad34f4bf39d6708de [INFO] running `Command { std: "docker" "start" "-a" "2df1efe82dfa389811da89a5f3af1f7558f566c337b95a3ad34f4bf39d6708de", 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 unicode-xid v0.2.2 [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 memchr v2.4.1 [INFO] [stderr] Compiling libc v0.2.122 [INFO] [stderr] Checking smallvec v1.9.0 [INFO] [stderr] Compiling cc v1.0.73 [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 rustc-demangle v0.1.21 [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 backtrace v0.3.64 [INFO] [stderr] Compiling quote v1.0.17 [INFO] [stderr] Checking object v0.27.1 [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[E0133]: call to unsafe function `libc::close` is unsafe and requires unsafe block [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] For more information about this error, try `rustc --explain E0133`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `std::num::NonZero::::new_unchecked` is unsafe and requires unsafe block [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[E0133]: call to unsafe function `memfile::fd::NonNegativeI32::new_unchecked` is unsafe and requires unsafe block [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[E0133]: call to unsafe function `std::os::fd::FromRawFd::from_raw_fd` is unsafe and requires unsafe block [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[E0133]: call to unsafe function `memfile::fd::RawFileDescriptor::new_unchecked` is unsafe and requires unsafe block [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[E0133]: call to unsafe function `libc::close` is unsafe and requires unsafe block [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] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `collect` [INFO] [stdout] warning[E0133]: call to unsafe function `std::num::NonZero::::new_unchecked` is unsafe and requires unsafe block [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] [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[E0133]: call to unsafe function `libc::close` is unsafe and requires unsafe block [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] For more information about this error, try `rustc --explain E0133`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stdout] warning[E0133]: call to unsafe function `memfile::fd::NonNegativeI32::new_unchecked` is unsafe and requires unsafe block [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[E0133]: call to unsafe function `std::os::fd::FromRawFd::from_raw_fd` is unsafe and requires unsafe block [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[E0133]: call to unsafe function `memfile::fd::RawFileDescriptor::new_unchecked` is unsafe and requires unsafe block [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[E0133]: call to unsafe function `libc::close` is unsafe and requires unsafe block [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] [stdout] For more information about this error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 15.43s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking collect v1.1.0 (/tmp/fixit) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.70s [INFO] running `Command { std: "docker" "inspect" "2df1efe82dfa389811da89a5f3af1f7558f566c337b95a3ad34f4bf39d6708de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2df1efe82dfa389811da89a5f3af1f7558f566c337b95a3ad34f4bf39d6708de", kill_on_drop: false }` [INFO] [stdout] 2df1efe82dfa389811da89a5f3af1f7558f566c337b95a3ad34f4bf39d6708de