[INFO] fetching crate breadth-first-zip 0.3.0... [INFO] testing breadth-first-zip-0.3.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate breadth-first-zip 0.3.0 into /workspace/builds/worker-1-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-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate breadth-first-zip 0.3.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b1b739e8cbd0ddde845042156253186a17eb44a4d1e35ea80eed6d634cf4e4cd [INFO] running `Command { std: "docker" "start" "-a" "b1b739e8cbd0ddde845042156253186a17eb44a4d1e35ea80eed6d634cf4e4cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b1b739e8cbd0ddde845042156253186a17eb44a4d1e35ea80eed6d634cf4e4cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1b739e8cbd0ddde845042156253186a17eb44a4d1e35ea80eed6d634cf4e4cd", kill_on_drop: false }` [INFO] [stdout] b1b739e8cbd0ddde845042156253186a17eb44a4d1e35ea80eed6d634cf4e4cd [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4808f0047a9618f889870ebebea22c7edb250e43b775658313a29f5564c10cec [INFO] running `Command { std: "docker" "start" "-a" "4808f0047a9618f889870ebebea22c7edb250e43b775658313a29f5564c10cec", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling unicode-ident v1.0.22 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling breadth-first-zip-macros v0.3.0 [INFO] [stderr] Compiling reiterator v0.3.0 [INFO] [stderr] Compiling breadth-first-zip v0.3.0 (/opt/rustwide/workdir) [INFO] [stderr] Compiling syn v2.0.110 [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, foreign functions, functions, inherent methods, provided trait methods, required trait methods, traits, and unions [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, foreign functions, functions, inherent methods, provided trait methods, required trait methods, traits, and unions [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, foreign functions, functions, inherent methods, provided trait methods, required trait methods, traits, and unions [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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/cmp.rs:1452:4 [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] | [INFO] [stdout] --> /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/slice/index.rs:172:7 [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/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/cmp.rs:1452:4 [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" "4808f0047a9618f889870ebebea22c7edb250e43b775658313a29f5564c10cec", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4808f0047a9618f889870ebebea22c7edb250e43b775658313a29f5564c10cec", kill_on_drop: false }` [INFO] [stdout] 4808f0047a9618f889870ebebea22c7edb250e43b775658313a29f5564c10cec