[INFO] fetching crate xlog-rs 0.3.1... [INFO] checking xlog-rs-0.3.1 against try#65132f36b923285d5da381c2fbafee6ce899e841 for pr-132712-1 [INFO] extracting crate xlog-rs 0.3.1 into /workspace/builds/worker-5-tc2/source [INFO] validating manifest of crates.io crate xlog-rs 0.3.1 on toolchain 65132f36b923285d5da381c2fbafee6ce899e841 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate xlog-rs 0.3.1 [INFO] finished tweaking crates.io crate xlog-rs 0.3.1 [INFO] tweaked toml for crates.io crate xlog-rs 0.3.1 written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate crates.io crate xlog-rs 0.3.1 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" "+65132f36b923285d5da381c2fbafee6ce899e841" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 79a4331dfb4e995c207ec2d7b9887e0dc7a81372dbe65bbb5680eb9245da20b6 [INFO] running `Command { std: "docker" "start" "-a" "79a4331dfb4e995c207ec2d7b9887e0dc7a81372dbe65bbb5680eb9245da20b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "79a4331dfb4e995c207ec2d7b9887e0dc7a81372dbe65bbb5680eb9245da20b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "79a4331dfb4e995c207ec2d7b9887e0dc7a81372dbe65bbb5680eb9245da20b6", kill_on_drop: false }` [INFO] [stdout] 79a4331dfb4e995c207ec2d7b9887e0dc7a81372dbe65bbb5680eb9245da20b6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+65132f36b923285d5da381c2fbafee6ce899e841" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] af32df82e92e626627401ddd1d6fb919e2fe03e47728fb9dbee8fa4d6c3907bd [INFO] running `Command { std: "docker" "start" "-a" "af32df82e92e626627401ddd1d6fb919e2fe03e47728fb9dbee8fa4d6c3907bd", 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] Checking xlog-rs v0.3.1 (/tmp/fixit) [INFO] [stderr] Migrating src/lib.rs from 2021 edition to 2024 [INFO] [stderr] Fixed src/log.rs (3 fixes) [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/log.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | LOGGER.log(args); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> src/log.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 79 | LOGGER.log(args); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating tests/log_test.rs from 2021 edition to 2024 [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> tests/common/mod.rs:9:30 [INFO] [stdout] | [INFO] [stdout] 9 | unsafe { Cursor::new(LOG_BUF.as_mut().unwrap()) }, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `--force-warn static-mut-refs` implied by `--force-warn rust-2024-compatibility` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static is discouraged [INFO] [stdout] --> tests/common/mod.rs:16:31 [INFO] [stdout] | [INFO] [stdout] 16 | String::from_utf8(LOG_BUF.as_mut().unwrap().clone()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ mutable reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Migrating src/main.rs from 2021 edition to 2024 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.34s [INFO] [stderr] Running `cargo check` to verify 2024 [INFO] [stderr] Checking xlog-rs v0.3.1 (/tmp/fixit) [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> tests/common/mod.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 14 | / assert_eq!( [INFO] [stdout] 15 | | unsafe { [INFO] [stdout] 16 | |/ String::from_utf8(LOG_BUF.as_mut().unwrap().clone()) [INFO] [stdout] 17 | || .unwrap() [INFO] [stdout] | ||_________________________^ creates a temporary value which is freed while still in use [INFO] [stdout] 18 | | .as_str() [INFO] [stdout] | | - temporary value is freed at the end of this statement [INFO] [stdout] 19 | | }, [INFO] [stdout] 20 | | except [INFO] [stdout] 21 | | ); [INFO] [stdout] | |______- borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0716`. [INFO] [stdout] [INFO] [stderr] error: could not compile `xlog-rs` (test "log_test") due to 1 previous error [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" "af32df82e92e626627401ddd1d6fb919e2fe03e47728fb9dbee8fa4d6c3907bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "af32df82e92e626627401ddd1d6fb919e2fe03e47728fb9dbee8fa4d6c3907bd", kill_on_drop: false }` [INFO] [stdout] af32df82e92e626627401ddd1d6fb919e2fe03e47728fb9dbee8fa4d6c3907bd