[INFO] fetching crate hkalbasi-rustc-ap-compiletest 0.0.20231215... [INFO] testing hkalbasi-rustc-ap-compiletest-0.0.20231215 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate hkalbasi-rustc-ap-compiletest 0.0.20231215 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate hkalbasi-rustc-ap-compiletest 0.0.20231215 [INFO] finished tweaking crates.io crate hkalbasi-rustc-ap-compiletest 0.0.20231215 [INFO] tweaked toml for crates.io crate hkalbasi-rustc-ap-compiletest 0.0.20231215 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate hkalbasi-rustc-ap-compiletest 0.0.20231215 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hkalbasi-rustc-ap-compiletest 0.0.20231215 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" "+b83b707f97d809763b7861afa7638871f3339a33" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24cd19c5ed4ed7a2326b240d1f3340b8b4500374b5f8b9ea85619662209267e3 [INFO] running `Command { std: "docker" "start" "-a" "24cd19c5ed4ed7a2326b240d1f3340b8b4500374b5f8b9ea85619662209267e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24cd19c5ed4ed7a2326b240d1f3340b8b4500374b5f8b9ea85619662209267e3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24cd19c5ed4ed7a2326b240d1f3340b8b4500374b5f8b9ea85619662209267e3", kill_on_drop: false }` [INFO] [stdout] 24cd19c5ed4ed7a2326b240d1f3340b8b4500374b5f8b9ea85619662209267e3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ef93b07925b39d1e99c6aefab495cd477c44b47afb0287e406007447c0981da0 [INFO] running `Command { std: "docker" "start" "-a" "ef93b07925b39d1e99c6aefab495cd477c44b47afb0287e406007447c0981da0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.70 [INFO] [stderr] Compiling memchr v2.6.4 [INFO] [stderr] Compiling serde v1.0.193 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling parking_lot_core v0.9.9 [INFO] [stderr] Compiling once_cell v1.19.0 [INFO] [stderr] Compiling regex-syntax v0.8.2 [INFO] [stderr] Compiling serde_json v1.0.108 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling regex-syntax v0.6.29 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling smallvec v1.11.2 [INFO] [stderr] Compiling anyhow v1.0.75 [INFO] [stderr] Compiling itoa v1.0.10 [INFO] [stderr] Compiling lock_api v0.4.11 [INFO] [stderr] Compiling overload v0.1.1 [INFO] [stderr] Compiling pin-project-lite v0.2.13 [INFO] [stderr] Compiling ryu v1.0.16 [INFO] [stderr] Compiling sharded-slab v0.1.7 [INFO] [stderr] Compiling nu-ansi-term v0.46.0 [INFO] [stderr] Compiling log v0.4.20 [INFO] [stderr] Compiling tracing-core v0.1.32 [INFO] [stderr] Compiling thread_local v1.1.7 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling unicode-width v0.1.11 [INFO] [stderr] Compiling diff v0.1.13 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling colored v2.1.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling walkdir v2.4.0 [INFO] [stderr] Compiling unified-diff v0.2.1 [INFO] [stderr] Compiling aho-corasick v1.1.2 [INFO] [stderr] Compiling quote v1.0.33 [INFO] [stderr] Compiling syn v2.0.41 [INFO] [stderr] Compiling parking_lot v0.12.1 [INFO] [stderr] Compiling regex-automata v0.4.3 [INFO] [stderr] Compiling regex-automata v0.1.10 [INFO] [stderr] Compiling matchers v0.1.0 [INFO] [stderr] Compiling regex v1.10.2 [INFO] [stderr] Compiling hkalbasi-rustc-ap-miropt-test-tools v0.0.20231215 [INFO] [stderr] Compiling serde_derive v1.0.193 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Compiling tracing v0.1.40 [INFO] [stderr] Compiling tracing-subscriber v0.3.18 [INFO] [stderr] Compiling hkalbasi-rustc-ap-build_helper v0.0.20231215 [INFO] [stderr] Compiling rustfix v0.6.1 [INFO] [stderr] Compiling hkalbasi-rustc-ap-compiletest v0.0.20231215 (/opt/rustwide/workdir) [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/json.rs:285:22 [INFO] [stdout] | [INFO] [stdout] 285 | for frame in &span.expansion { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(for_loops_over_fallibles)]` on by default [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 285 - for frame in &span.expansion { [INFO] [stdout] 285 + while let Some(frame) = &span.expansion { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 285 - for frame in &span.expansion { [INFO] [stdout] 285 + if let Some(frame) = &span.expansion { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: for loop over a `&Option`. This is more readably written as an `if let` statement [INFO] [stdout] --> src/json.rs:318:31 [INFO] [stdout] | [INFO] [stdout] 318 | for previous_expansion in &expansion.span.expansion { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: to check pattern in a loop use `while let` [INFO] [stdout] | [INFO] [stdout] 318 - for previous_expansion in &expansion.span.expansion { [INFO] [stdout] 318 + while let Some(previous_expansion) = &expansion.span.expansion { [INFO] [stdout] | [INFO] [stdout] help: consider using `if let` to clear intent [INFO] [stdout] | [INFO] [stdout] 318 - for previous_expansion in &expansion.span.expansion { [INFO] [stdout] 318 + if let Some(previous_expansion) = &expansion.span.expansion { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `compiletest` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use compiletest::{common::Mode, log_config, parse_config, run_tests}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `compiletest` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `compiletest`, use `cargo add compiletest` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `compiletest` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use compiletest::{common::Mode, log_config, parse_config, run_tests}; [INFO] [stdout] | ^^^^^^^^^^^ use of unresolved module or unlinked crate `compiletest` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `compiletest`, use `cargo add compiletest` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hkalbasi-rustc-ap-compiletest` (bin "hkalbasi-rustc-ap-compiletest") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "ef93b07925b39d1e99c6aefab495cd477c44b47afb0287e406007447c0981da0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ef93b07925b39d1e99c6aefab495cd477c44b47afb0287e406007447c0981da0", kill_on_drop: false }` [INFO] [stdout] ef93b07925b39d1e99c6aefab495cd477c44b47afb0287e406007447c0981da0