[INFO] fetching crate brainheck 0.1.8... [INFO] checking brainheck-0.1.8 against master#8c32e313cccf7df531e2d49ffb8227bb92304aee for pr-145608-1 [INFO] extracting crate brainheck 0.1.8 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate brainheck 0.1.8 [INFO] finished tweaking crates.io crate brainheck 0.1.8 [INFO] tweaked toml for crates.io crate brainheck 0.1.8 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate brainheck 0.1.8 on toolchain 8c32e313cccf7df531e2d49ffb8227bb92304aee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 14 packages to latest compatible versions [INFO] [stderr] Adding clap v2.34.0 (available: v4.5.47) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "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] 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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 827b156ee789893505846e4db29debfd37b27d92fea128f9355820cf473e354d [INFO] running `Command { std: "docker" "start" "-a" "827b156ee789893505846e4db29debfd37b27d92fea128f9355820cf473e354d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "827b156ee789893505846e4db29debfd37b27d92fea128f9355820cf473e354d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "827b156ee789893505846e4db29debfd37b27d92fea128f9355820cf473e354d", kill_on_drop: false }` [INFO] [stdout] 827b156ee789893505846e4db29debfd37b27d92fea128f9355820cf473e354d [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8c32e313cccf7df531e2d49ffb8227bb92304aee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4d7731babaa8b312cf5296ee09d9e79891402576f5b4fb725c626bec45756c59 [INFO] running `Command { std: "docker" "start" "-a" "4d7731babaa8b312cf5296ee09d9e79891402576f5b4fb725c626bec45756c59", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking yaml-rust v0.3.5 [INFO] [stderr] Checking clap v2.34.0 [INFO] [stderr] Checking brainheck v0.1.8 (/opt/rustwide/workdir) [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to modules, extern crates, crates [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `#[macro_use]` attribute cannot be used on use statements [INFO] [stdout] --> src/lib.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = help: `#[macro_use]` can be applied to modules, extern crates, crates [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `helloworld_src`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/test.rs:21:25 [INFO] [stdout] | [INFO] [stdout] 17 | let mut helloworld_src = String::new(); [INFO] [stdout] | ------------------ ------------- move occurs because `helloworld_src` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | | [INFO] [stdout] | captured outer variable [INFO] [stdout] ... [INFO] [stdout] 21 | b.iter(|| brainheck(helloworld_src, fake_std_in)); [INFO] [stdout] | -- ^^^^^^^^^^^^^^ `helloworld_src` is moved here [INFO] [stdout] | | [INFO] [stdout] | captured by this `FnMut` closure [INFO] [stdout] | [INFO] [stdout] help: `Fn` and `FnMut` closures require captured values to be able to be consumed multiple times, but `FnOnce` closures may consume them only once [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/test/src/bench.rs:40:12 [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 21 | b.iter(|| brainheck(helloworld_src.clone(), fake_std_in)); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `fake_std_in`, a captured variable in an `FnMut` closure [INFO] [stdout] --> src/test.rs:21:41 [INFO] [stdout] | [INFO] [stdout] 20 | let fake_std_in = String::new(); [INFO] [stdout] | ----------- ------------- move occurs because `fake_std_in` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] | | [INFO] [stdout] | captured outer variable [INFO] [stdout] 21 | b.iter(|| brainheck(helloworld_src, fake_std_in)); [INFO] [stdout] | -- ^^^^^^^^^^^ `fake_std_in` is moved here [INFO] [stdout] | | [INFO] [stdout] | captured by this `FnMut` closure [INFO] [stdout] | [INFO] [stdout] help: `Fn` and `FnMut` closures require captured values to be able to be consumed multiple times, but `FnOnce` closures may consume them only once [INFO] [stdout] --> /rustc/8c32e313cccf7df531e2d49ffb8227bb92304aee/library/test/src/bench.rs:40:12 [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 21 | b.iter(|| brainheck(helloworld_src, fake_std_in.clone())); [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `brainheck` (lib test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] running `Command { std: "docker" "inspect" "4d7731babaa8b312cf5296ee09d9e79891402576f5b4fb725c626bec45756c59", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4d7731babaa8b312cf5296ee09d9e79891402576f5b4fb725c626bec45756c59", kill_on_drop: false }` [INFO] [stdout] 4d7731babaa8b312cf5296ee09d9e79891402576f5b4fb725c626bec45756c59