[INFO] fetching crate breadth-first-zip 0.3.0... [INFO] testing breadth-first-zip-0.3.0 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate breadth-first-zip 0.3.0 into /workspace/builds/worker-2-tc2/source [INFO] started tweaking crates.io crate breadth-first-zip 0.3.0 [INFO] finished tweaking crates.io crate breadth-first-zip 0.3.0 [INFO] tweaked toml for crates.io crate breadth-first-zip 0.3.0 written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate breadth-first-zip 0.3.0 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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 20 packages to latest compatible versions [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-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] f14b78eb760ef24bc592dab53687bf77ebd4355473ab4621ab8c0958e5e667f9 [INFO] running `Command { std: "docker" "start" "-a" "f14b78eb760ef24bc592dab53687bf77ebd4355473ab4621ab8c0958e5e667f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f14b78eb760ef24bc592dab53687bf77ebd4355473ab4621ab8c0958e5e667f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f14b78eb760ef24bc592dab53687bf77ebd4355473ab4621ab8c0958e5e667f9", kill_on_drop: false }` [INFO] [stdout] f14b78eb760ef24bc592dab53687bf77ebd4355473ab4621ab8c0958e5e667f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 87f1fe4096a5874e0589060125e0a8b53c4920423d1304edbdd67c122473e9ad [INFO] running `Command { std: "docker" "start" "-a" "87f1fe4096a5874e0589060125e0a8b53c4920423d1304edbdd67c122473e9ad", kill_on_drop: false }` [INFO] [stderr] Compiling reiterator v0.3.0 [INFO] [stderr] Compiling breadth-first-zip-macros v0.3.0 [INFO] [stderr] Compiling breadth-first-zip v0.3.0 (/opt/rustwide/workdir) [INFO] [stdout] error: `#[must_use]` attribute cannot be used on trait methods in impl blocks [INFO] [stdout] --> src/lib.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | #[must_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: `#[must_use]` can be applied to data types, functions, unions, required trait methods, provided trait methods, inherent methods, foreign functions, and traits [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/lib.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | #![deny(warnings)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] = note: `#[deny(unused_attributes)]` implied by `#[deny(warnings)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[must_use]` attribute cannot be used on trait methods in impl blocks [INFO] [stdout] --> src/lib.rs:101:5 [INFO] [stdout] | [INFO] [stdout] 101 | #[must_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: `#[must_use]` can be applied to data types, functions, unions, required trait methods, provided trait methods, inherent methods, foreign functions, and traits [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `#[must_use]` attribute cannot be used on trait methods in impl blocks [INFO] [stdout] --> src/lib.rs:144:5 [INFO] [stdout] | [INFO] [stdout] 144 | #[must_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: `#[must_use]` can be applied to data types, functions, unions, required trait methods, provided trait methods, inherent methods, foreign functions, and traits [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:67:1 [INFO] [stdout] | [INFO] [stdout] 67 | breadth_first_zip_macros::implement_flatten!(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `B`, found `(_,)` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `B` [INFO] [stdout] found tuple `(_,)` [INFO] [stdout] = note: this error originates in the macro `breadth_first_zip_macros::implement_flatten` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:149:61 [INFO] [stdout] | [INFO] [stdout] 149 | .next(index_sum.checked_sub(self.iter.index.get())?) [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `ge` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:1441:5 [INFO] [stdout] help: trait `SliceIndex` which provides `get` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 45 + use core::slice::SliceIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get` found for type `usize` in the current scope [INFO] [stdout] --> src/lib.rs:153:30 [INFO] [stdout] | [INFO] [stdout] 153 | (self.iter.index.get() < index_sum).then(|| self.iter.next())??; // Comparison is just an optimization, not logically necessary [INFO] [stdout] | ^^^ [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/slice/index.rs:164:8 [INFO] [stdout] | [INFO] [stdout] = note: the method is available for `usize` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: there is a method `ge` with a similar name, but with different arguments [INFO] [stdout] --> /rustc/b83b707f97d809763b7861afa7638871f3339a33/library/core/src/cmp.rs:1441:5 [INFO] [stdout] help: trait `SliceIndex` which provides `get` is implemented but not in scope; perhaps you want to import it [INFO] [stdout] | [INFO] [stdout] 45 + use core::slice::SliceIndex; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:230:1 [INFO] [stdout] | [INFO] [stdout] 230 | breadth_first_zip_macros::implement!(); // Implement traits for (A,), (A, B), (A, B, C), (A, B, C, D), ... [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected type parameter `A`, found `(_,)` [INFO] [stdout] | [INFO] [stdout] = note: expected type parameter `A` [INFO] [stdout] found tuple `(_,)` [INFO] [stdout] = note: this error originates in the macro `breadth_first_zip_macros::implement` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.iter` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/lib.rs:159:9 [INFO] [stdout] | [INFO] [stdout] 159 | self.iter.restart(); [INFO] [stdout] | ^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference in the `impl` method and the `trait` definition [INFO] [stdout] | [INFO] [stdout] 94 ~ fn rewind(&mut self); [INFO] [stdout] 95 | } [INFO] [stdout] ... [INFO] [stdout] 157 | #[inline(always)] [INFO] [stdout] 158 ~ fn rewind(&mut self) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `breadth-first-zip` (lib) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "87f1fe4096a5874e0589060125e0a8b53c4920423d1304edbdd67c122473e9ad", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "87f1fe4096a5874e0589060125e0a8b53c4920423d1304edbdd67c122473e9ad", kill_on_drop: false }` [INFO] [stdout] 87f1fe4096a5874e0589060125e0a8b53c4920423d1304edbdd67c122473e9ad