[INFO] fetching crate impl-template 1.0.0-alpha... [INFO] fixing impl-template-1.0.0-alpha against try#5fed607fb5806ae20927e7e9193e3793c411ac20+cargoflags=-Zfix-edition=end=2015,2024 for pr-157817 [INFO] extracting crate impl-template 1.0.0-alpha into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate impl-template 1.0.0-alpha [INFO] removed 0 missing tests [INFO] finished tweaking crates.io crate impl-template 1.0.0-alpha [INFO] tweaked toml for crates.io crate impl-template 1.0.0-alpha written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate impl-template 1.0.0-alpha on toolchain 5fed607fb5806ae20927e7e9193e3793c411ac20 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5fed607fb5806ae20927e7e9193e3793c411ac20" "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" "+5fed607fb5806ae20927e7e9193e3793c411ac20" "generate-lockfile" "--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] Locking 30 packages to latest compatible versions [INFO] [stderr] Adding itertools v0.8.2 (available: v0.14.0) [INFO] [stderr] Adding syn v1.0.109 (available: v2.0.117) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5fed607fb5806ae20927e7e9193e3793c411ac20" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3e793bdf10248eb2ddbd6b0faebed8155c11b4589982e2893733958d93e8d540" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64 [INFO] running `Command { std: "docker" "start" "c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64" "/opt/rustwide/cargo-home/bin/cargo" "+5fed607fb5806ae20927e7e9193e3793c411ac20" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64" "/opt/rustwide/cargo-home/bin/cargo" "+5fed607fb5806ae20927e7e9193e3793c411ac20" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=end=2015,2024", kill_on_drop: false }` [INFO] [stderr] crater-edition-check: migrating to next edition [INFO] [stderr] Migrating Cargo.toml from 2018 edition to 2021 [INFO] [stderr] Compiling proc-macro2 v1.0.106 [INFO] [stderr] Compiling quote v1.0.45 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling unicode-ident v1.0.24 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling zmij v1.0.21 [INFO] [stderr] Compiling serde_json v1.0.150 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Checking winnow v1.0.3 [INFO] [stderr] Compiling target-triple v1.0.0 [INFO] [stderr] Checking itoa v1.0.18 [INFO] [stderr] Checking toml_parser v1.1.2+spec-1.1.0 [INFO] [stderr] Checking toml_writer v1.1.1+spec-1.1.0 [INFO] [stderr] Checking memchr v2.8.2 [INFO] [stderr] Checking either v1.16.0 [INFO] [stderr] Checking glob v0.3.3 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking termcolor v1.4.1 [INFO] [stderr] Compiling syn v2.0.117 [INFO] [stderr] Checking serde_spanned v1.1.1 [INFO] [stderr] Checking toml_datetime v1.1.1+spec-1.1.0 [INFO] [stderr] Checking toml v1.1.2+spec-1.1.0 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Checking impl-template v1.0.0-alpha (/opt/rustwide/workdir) [INFO] [stderr] Migrating src/lib.rs from 2018 edition to 2021 [INFO] [stdout] error[E0432]: unresolved import `syn::export` [INFO] [stdout] --> src/find_patterns.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use syn::export::Span; [INFO] [stdout] | ^^^^^^ could not find `export` in `syn` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `impl-template` (lib) due to 2 previous errors; 1 warning emitted [INFO] [stdout] error[E0432]: unresolved import `syn::export` [INFO] [stdout] --> src/render.rs:1:10 [INFO] [stdout] | [INFO] [stdout] 1 | use syn::export::Span; [INFO] [stdout] | ^^^^^^ could not find `export` in `syn` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: changes to closure capture in Rust 2021 will affect drop order [INFO] [stdout] --> src/lib.rs:43:44 [INFO] [stdout] | [INFO] [stdout] 43 | type_paths.into_iter().map(move |type_path| Replacement { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | declaration, [INFO] [stdout] | ----------- in Rust 2018, this causes the closure to capture `declaration`, but in Rust 2021, it has no effect [INFO] [stdout] 47 | }) [INFO] [stdout] 48 | }, [INFO] [stdout] | - in Rust 2018, `declaration` is dropped here along with the closure, but in Rust 2021 `declaration` is not part of the closure [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `--force-warn rust-2021-incompatible-closure-captures` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] help: add a dummy let to cause `declaration` to be fully captured [INFO] [stdout] | [INFO] [stdout] 43 ~ type_paths.into_iter().map(move |type_path| { let _ = &declaration; Replacement { [INFO] [stdout] 44 | pattern_index, [INFO] [stdout] 45 | type_path, [INFO] [stdout] 46 | declaration, [INFO] [stdout] 47 ~ } }) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64", kill_on_drop: false }` [INFO] [stdout] c8bdcf25482372c4df4fc353a6f5151b79d04baada151221f0d48bc577b5fe64