[INFO] cloning repository https://github.com/artumino/rusty-film [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/artumino/rusty-film" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartumino%2Frusty-film", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartumino%2Frusty-film'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c6b3829cccf6dcfcce0fb5180a2b12defc49479c [INFO] checking artumino/rusty-film/c6b3829cccf6dcfcce0fb5180a2b12defc49479c against try#ccf408f4326a858c00dd845a64a86b16f360a801 for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fartumino%2Frusty-film" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/artumino/rusty-film on toolchain ccf408f4326a858c00dd845a64a86b16f360a801 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/artumino/rusty-film [INFO] finished tweaking git repo https://github.com/artumino/rusty-film [INFO] tweaked toml for git repo https://github.com/artumino/rusty-film written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/artumino/rusty-film 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" "+ccf408f4326a858c00dd845a64a86b16f360a801" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 146fa0b6da0bede24f041e11e63814b84f4fcb22a90f9d57f7792462f99df4e1 [INFO] running `Command { std: "docker" "start" "-a" "146fa0b6da0bede24f041e11e63814b84f4fcb22a90f9d57f7792462f99df4e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "146fa0b6da0bede24f041e11e63814b84f4fcb22a90f9d57f7792462f99df4e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "146fa0b6da0bede24f041e11e63814b84f4fcb22a90f9d57f7792462f99df4e1", kill_on_drop: false }` [INFO] [stdout] 146fa0b6da0bede24f041e11e63814b84f4fcb22a90f9d57f7792462f99df4e1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+ccf408f4326a858c00dd845a64a86b16f360a801" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7df5388fd09e1816db3159162cc0310de6d32b317c0a765d9d08d7d79803d7dd [INFO] running `Command { std: "docker" "start" "-a" "7df5388fd09e1816db3159162cc0310de6d32b317c0a765d9d08d7d79803d7dd", 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] Compiling proc-macro2 v1.0.79 [INFO] [stderr] Compiling libc v0.2.153 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling autocfg v1.2.0 [INFO] [stderr] Compiling semver v1.0.22 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking utf8parse v0.2.1 [INFO] [stderr] Checking memchr v2.7.2 [INFO] [stderr] Compiling portable-atomic v1.6.0 [INFO] [stderr] Checking anstyle-parse v0.2.3 [INFO] [stderr] Checking anstyle v1.0.6 [INFO] [stderr] Compiling num-traits v0.2.18 [INFO] [stderr] Checking colorchoice v1.0.0 [INFO] [stderr] Checking anstyle-query v1.0.2 [INFO] [stderr] Checking regex-syntax v0.8.3 [INFO] [stderr] Compiling pkg-config v0.3.30 [INFO] [stderr] Compiling serde v1.0.197 [INFO] [stderr] Checking aho-corasick v1.1.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling rustc_version v0.4.0 [INFO] [stderr] Compiling syn v2.0.57 [INFO] [stderr] Checking anstream v0.6.13 [INFO] [stderr] Checking getrandom v0.2.14 [INFO] [stderr] Compiling gexiv2-sys v1.4.0 [INFO] [stderr] Compiling num-rational v0.4.1 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking log v0.4.21 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling thiserror v1.0.58 [INFO] [stderr] Checking unicode-width v0.1.11 [INFO] [stderr] Checking bytes v1.6.0 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking regex-automata v0.4.6 [INFO] [stderr] Compiling crc32c v0.6.5 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Compiling anyhow v1.0.81 [INFO] [stderr] Checking option-ext v0.2.0 [INFO] [stderr] Checking tokio v1.37.0 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking crc-catalog v2.4.0 [INFO] [stderr] Checking clap_lex v0.7.0 [INFO] [stderr] Compiling crc32fast v1.4.0 [INFO] [stderr] Checking number_prefix v0.4.0 [INFO] [stderr] Checking strsim v0.11.0 [INFO] [stderr] Checking crc v3.2.1 [INFO] [stderr] Checking dirs-sys v0.4.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking clap_builder v4.5.2 [INFO] [stderr] Checking zigzag v0.1.0 [INFO] [stderr] Checking fs2 v0.4.3 [INFO] [stderr] Checking humantime v2.1.0 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Checking iana-time-zone v0.1.60 [INFO] [stderr] Checking indicatif v0.17.8 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking data-encoding v2.5.0 [INFO] [stderr] Checking unsigned-varint v0.8.0 [INFO] [stderr] Checking rexiv2 v0.10.0 [INFO] [stderr] Checking directories v5.0.1 [INFO] [stderr] Checking glob v0.3.1 [INFO] [stderr] Checking indicatif-log-bridge v0.2.2 [INFO] [stderr] Checking regex v1.10.4 [INFO] [stderr] Compiling serde_derive v1.0.197 [INFO] [stderr] Compiling thiserror-impl v1.0.58 [INFO] [stderr] Compiling linkme-impl v0.3.25 [INFO] [stderr] Compiling clap_derive v4.5.4 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Checking env_filter v0.1.0 [INFO] [stderr] Checking env_logger v0.11.3 [INFO] [stderr] Checking linkme v0.3.25 [INFO] [stderr] Checking persy v1.5.0 [INFO] [stderr] Checking clap v4.5.4 [INFO] [stderr] Checking bincode v1.3.3 [INFO] [stderr] Checking chrono v0.4.37 [INFO] [stderr] Checking rusty-film v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/metadata.rs (1 fix) [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/metadata.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(distributed_slice)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/metadata/xmp.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[distributed_slice(IMAGE_METADATA_DISCOVERERS)] [INFO] [stdout] | ------------------------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `IMAGE_METADATA_DISCOVERERS` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(unsafe(distributed_slice))] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: failed to automatically apply fixes suggested by rustc to crate `rusty_film` [INFO] [stderr] [INFO] [stderr] after fixes were automatically applied the compiler reported errors within these files: [INFO] [stderr] [INFO] [stderr] * src/metadata.rs [INFO] [stderr] * src/metadata/xmp.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 keyword `unsafe` [INFO] [stderr] --> src/metadata.rs:29:10 [INFO] [stderr] | [INFO] [stderr] 29 | #[unsafe(unsafe(distributed_slice))] [INFO] [stderr] | ^^^^^^ expected identifier, found keyword [INFO] [stderr] | [INFO] [stderr] help: escape `unsafe` to use it as an identifier [INFO] [stderr] | [INFO] [stderr] 29 | #[unsafe(r#unsafe(distributed_slice))] [INFO] [stderr] | ++ [INFO] [stderr] [INFO] [stderr] error: free static item without body [INFO] [stderr] --> src/metadata.rs:30:1 [INFO] [stderr] | [INFO] [stderr] 30 | / pub static IMAGE_METADATA_DISCOVERERS: [fn( [INFO] [stderr] 31 | | image: &ImageInfo, [INFO] [stderr] 32 | | destination: &Path, [INFO] [stderr] 33 | | ) -> Vec]; [INFO] [stderr] | | ^ help: provide a definition for the static: `= ;` [INFO] [stderr] | |_____________________________| [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error: `r#unsafe` is not an unsafe attribute [INFO] [stderr] --> src/metadata.rs:29:3 [INFO] [stderr] | [INFO] [stderr] 29 | #[unsafe(unsafe(distributed_slice))] [INFO] [stderr] | ^^^^^^ this is not an unsafe attribute [INFO] [stdout] warning: unsafe attribute used without unsafe [INFO] [stdout] --> src/metadata.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(distributed_slice)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/metadata/xmp.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[distributed_slice(IMAGE_METADATA_DISCOVERERS)] [INFO] [stdout] | ------------------------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2021) but is a hard error in Rust 2024! [INFO] [stdout] = note: for more information, see issue #123757 [INFO] [stdout] = note: `--force-warn unsafe-attr-outside-unsafe` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] = note: this warning originates in the macro `IMAGE_METADATA_DISCOVERERS` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(unsafe(distributed_slice))] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] = note: extraneous unsafe is not allowed in attributes [INFO] [stderr] [INFO] [stderr] error: cannot find macro `IMAGE_METADATA_DISCOVERERS` in this scope [INFO] [stderr] --> src/metadata/xmp.rs:8:21 [INFO] [stderr] | [INFO] [stderr] 8 | #[distributed_slice(IMAGE_METADATA_DISCOVERERS)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] note: `IMAGE_METADATA_DISCOVERERS` is imported here, but it is a static, not a macro [INFO] [stderr] --> src/metadata/xmp.rs:3:32 [INFO] [stderr] | [INFO] [stderr] 3 | use super::{ImageMetadataFile, IMAGE_METADATA_DISCOVERERS}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute `r#unsafe` in this scope [INFO] [stderr] --> src/metadata.rs:29:10 [INFO] [stderr] | [INFO] [stderr] 29 | #[unsafe(unsafe(distributed_slice))] [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused import: `linkme::distributed_slice` [INFO] [stderr] --> src/metadata.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use linkme::distributed_slice; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[for<'a, 'b> fn(&'a ImageInfo, &'b Path) -> Vec]` cannot be known at compilation time [INFO] [stderr] --> src/metadata.rs:30:40 [INFO] [stderr] | [INFO] [stderr] 30 | pub static IMAGE_METADATA_DISCOVERERS: [fn( [INFO] [stderr] | ________________________________________^ [INFO] [stderr] 31 | | image: &ImageInfo, [INFO] [stderr] 32 | | destination: &Path, [INFO] [stderr] 33 | | ) -> Vec]; [INFO] [stderr] | |____________________________^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `Sized` is not implemented for `[for<'a, 'b> fn(&'a ImageInfo, &'b Path) -> Vec]` [INFO] [stderr] [INFO] [stderr] error[E0277]: the size for values of type `[for<'a, 'b> fn(&'a ImageInfo, &'b Path) -> Vec]` cannot be known at compilation time [INFO] [stderr] --> src/metadata.rs:30:1 [INFO] [stderr] | [INFO] [stderr] 30 | / pub static IMAGE_METADATA_DISCOVERERS: [fn( [INFO] [stderr] 31 | | image: &ImageInfo, [INFO] [stderr] 32 | | destination: &Path, [INFO] [stderr] 33 | | ) -> Vec]; [INFO] [stderr] | |_____________________________^ doesn't have a size known at compile-time [INFO] [stderr] | [INFO] [stderr] = help: the trait `Sized` is not implemented for `[for<'a, 'b> fn(&'a ImageInfo, &'b Path) -> Vec]` [INFO] [stderr] = note: constant expressions must have a statically known size [INFO] [stderr] [INFO] [stderr] error: aborting due to 7 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0277`. [INFO] [stderr] Original diagnostics will follow. [INFO] [stderr] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 10.03s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking rusty-film v0.1.0 (/tmp/fixit) [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/metadata.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(distributed_slice)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/metadata/xmp.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[distributed_slice(IMAGE_METADATA_DISCOVERERS)] [INFO] [stdout] | ------------------------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `IMAGE_METADATA_DISCOVERERS` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(unsafe(distributed_slice))] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: unsafe attribute used without unsafe [INFO] [stdout] --> src/metadata.rs:29:1 [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(distributed_slice)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ usage of unsafe attribute [INFO] [stdout] | [INFO] [stdout] ::: src/metadata/xmp.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | #[distributed_slice(IMAGE_METADATA_DISCOVERERS)] [INFO] [stdout] | ------------------------------------------------ in this procedural macro expansion [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `IMAGE_METADATA_DISCOVERERS` which comes from the expansion of the attribute macro `distributed_slice` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: wrap the attribute in `unsafe(...)` [INFO] [stdout] | [INFO] [stdout] 29 | #[unsafe(unsafe(distributed_slice))] [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rusty-film` (bin "rusty-film") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rusty-film` (bin "rusty-film" test) due to 2 previous errors [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" "7df5388fd09e1816db3159162cc0310de6d32b317c0a765d9d08d7d79803d7dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7df5388fd09e1816db3159162cc0310de6d32b317c0a765d9d08d7d79803d7dd", kill_on_drop: false }` [INFO] [stdout] 7df5388fd09e1816db3159162cc0310de6d32b317c0a765d9d08d7d79803d7dd