[INFO] cloning repository https://github.com/BalzGuenat/rustcache [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BalzGuenat/rustcache" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBalzGuenat%2Frustcache", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBalzGuenat%2Frustcache'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4d0cc93047afe3dfad303109dbfe5bfed52e391b [INFO] checking BalzGuenat/rustcache/4d0cc93047afe3dfad303109dbfe5bfed52e391b against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBalzGuenat%2Frustcache" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/BalzGuenat/rustcache on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BalzGuenat/rustcache [INFO] finished tweaking git repo https://github.com/BalzGuenat/rustcache [INFO] tweaked toml for git repo https://github.com/BalzGuenat/rustcache written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BalzGuenat/rustcache 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" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 71bde7fa1b3d725256207f729716307a173dc49dec93f1eeeb7e5d4d4155e0f9 [INFO] running `Command { std: "docker" "start" "-a" "71bde7fa1b3d725256207f729716307a173dc49dec93f1eeeb7e5d4d4155e0f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71bde7fa1b3d725256207f729716307a173dc49dec93f1eeeb7e5d4d4155e0f9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71bde7fa1b3d725256207f729716307a173dc49dec93f1eeeb7e5d4d4155e0f9", kill_on_drop: false }` [INFO] [stdout] 71bde7fa1b3d725256207f729716307a173dc49dec93f1eeeb7e5d4d4155e0f9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e751371b4cae390af96ab21904cf4d2e3ec3cde1ab136022e76ff10b44058602 [INFO] running `Command { std: "docker" "start" "-a" "e751371b4cae390af96ab21904cf4d2e3ec3cde1ab136022e76ff10b44058602", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking libc v0.2.43 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking threadpool v1.7.1 [INFO] [stderr] Checking rustcache v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected `while`, `for`, `loop` or `{` after a label [INFO] [stdout] --> src/msg/mod.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | &ContiguousViewIt<'a> { [INFO] [stdout] | ^ expected `while`, `for`, `loop` or `{` after a label [INFO] [stdout] | [INFO] [stdout] help: add `'` to close the char literal [INFO] [stdout] | [INFO] [stdout] 58 | &ContiguousViewIt<'a'> { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: comparison operators cannot be chained [INFO] [stdout] --> src/msg/mod.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | &ContiguousViewIt<'a> { [INFO] [stdout] | ^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected `while`, `for`, `loop` or `{` after a label [INFO] [stdout] --> src/msg/mod.rs:58:29 [INFO] [stdout] | [INFO] [stdout] 58 | &ContiguousViewIt<'a> { [INFO] [stdout] | ^ expected `while`, `for`, `loop` or `{` after a label [INFO] [stdout] | [INFO] [stdout] help: add `'` to close the char literal [INFO] [stdout] | [INFO] [stdout] 58 | &ContiguousViewIt<'a'> { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: comparison operators cannot be chained [INFO] [stdout] --> src/msg/mod.rs:58:26 [INFO] [stdout] | [INFO] [stdout] 58 | &ContiguousViewIt<'a> { [INFO] [stdout] | ^ ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `ContiguousViewOwningIt<'_>` has no field named `end_idx` [INFO] [stdout] --> src/msg/mod.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | end_idx: self.len(), [INFO] [stdout] | ^^^^^^^ `ContiguousViewOwningIt<'_>` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `end_idx` on type `&mut ContiguousViewOwningIt<'a>` [INFO] [stdout] --> src/msg/mod.rs:122:45 [INFO] [stdout] | [INFO] [stdout] 122 | let next = if self.next_idx >= self.end_idx { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `view`, `next_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0560`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustcache` (bin "rustcache") due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: can't compare `[u8]` with `ContiguousViewIt<'_>` [INFO] [stdout] --> src/msg/test.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | assert_eq!("abc".as_bytes(), &v[0..3]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[u8] == ContiguousViewIt<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `[u8]`, which is required by `&[u8]: PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `&[T]` implements `PartialEq>` [INFO] [stdout] `&[T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `&mut [T]` implements `PartialEq>` [INFO] [stdout] `&mut [T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&[U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&mut [U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U]>` [INFO] [stdout] and 3 others [INFO] [stdout] = note: required for `&[u8]` to implement `PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ContiguousViewIt<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/msg/test.rs:74:5 [INFO] [stdout] | [INFO] [stdout] 74 | assert_eq!("abc".as_bytes(), &v[0..3]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ContiguousViewIt<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ContiguousViewIt<'_>`, which is required by `&ContiguousViewIt<'_>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ContiguousViewIt<'_>` or manually `impl Debug for ContiguousViewIt<'_>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ContiguousViewIt<'_>` with `#[derive(Debug)]` [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 + #[derive(Debug)] [INFO] [stdout] 92 | struct ContiguousViewIt<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `[u8]` with `ContiguousViewIt<'_>` [INFO] [stdout] --> src/msg/test.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | assert_eq!("xyz".as_bytes(), &v[3..6]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[u8] == ContiguousViewIt<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `[u8]`, which is required by `&[u8]: PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `&[T]` implements `PartialEq>` [INFO] [stdout] `&[T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `&mut [T]` implements `PartialEq>` [INFO] [stdout] `&mut [T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&[U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&mut [U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U]>` [INFO] [stdout] and 3 others [INFO] [stdout] = note: required for `&[u8]` to implement `PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ContiguousViewIt<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/msg/test.rs:75:5 [INFO] [stdout] | [INFO] [stdout] 75 | assert_eq!("xyz".as_bytes(), &v[3..6]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ContiguousViewIt<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ContiguousViewIt<'_>`, which is required by `&ContiguousViewIt<'_>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ContiguousViewIt<'_>` or manually `impl Debug for ContiguousViewIt<'_>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ContiguousViewIt<'_>` with `#[derive(Debug)]` [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 + #[derive(Debug)] [INFO] [stdout] 92 | struct ContiguousViewIt<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `[u8]` with `ContiguousViewIt<'_>` [INFO] [stdout] --> src/msg/test.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!("ab".as_bytes(), &v[0..2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[u8] == ContiguousViewIt<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `[u8]`, which is required by `&[u8]: PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `&[T]` implements `PartialEq>` [INFO] [stdout] `&[T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `&mut [T]` implements `PartialEq>` [INFO] [stdout] `&mut [T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&[U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&mut [U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U]>` [INFO] [stdout] and 3 others [INFO] [stdout] = note: required for `&[u8]` to implement `PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ContiguousViewIt<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/msg/test.rs:76:5 [INFO] [stdout] | [INFO] [stdout] 76 | assert_eq!("ab".as_bytes(), &v[0..2]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ContiguousViewIt<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ContiguousViewIt<'_>`, which is required by `&ContiguousViewIt<'_>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ContiguousViewIt<'_>` or manually `impl Debug for ContiguousViewIt<'_>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ContiguousViewIt<'_>` with `#[derive(Debug)]` [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 + #[derive(Debug)] [INFO] [stdout] 92 | struct ContiguousViewIt<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `[u8]` with `ContiguousViewIt<'_>` [INFO] [stdout] --> src/msg/test.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!("yz".as_bytes(), &v[4..6]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[u8] == ContiguousViewIt<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `[u8]`, which is required by `&[u8]: PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `&[T]` implements `PartialEq>` [INFO] [stdout] `&[T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `&mut [T]` implements `PartialEq>` [INFO] [stdout] `&mut [T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&[U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&mut [U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U]>` [INFO] [stdout] and 3 others [INFO] [stdout] = note: required for `&[u8]` to implement `PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ContiguousViewIt<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/msg/test.rs:77:5 [INFO] [stdout] | [INFO] [stdout] 77 | assert_eq!("yz".as_bytes(), &v[4..6]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ContiguousViewIt<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ContiguousViewIt<'_>`, which is required by `&ContiguousViewIt<'_>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ContiguousViewIt<'_>` or manually `impl Debug for ContiguousViewIt<'_>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ContiguousViewIt<'_>` with `#[derive(Debug)]` [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 + #[derive(Debug)] [INFO] [stdout] 92 | struct ContiguousViewIt<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `[u8]` with `ContiguousViewIt<'_>` [INFO] [stdout] --> src/msg/test.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!("cx".as_bytes(), &v[2..4]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[u8] == ContiguousViewIt<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `[u8]`, which is required by `&[u8]: PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `&[T]` implements `PartialEq>` [INFO] [stdout] `&[T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `&mut [T]` implements `PartialEq>` [INFO] [stdout] `&mut [T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&[U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&mut [U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U]>` [INFO] [stdout] and 3 others [INFO] [stdout] = note: required for `&[u8]` to implement `PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ContiguousViewIt<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/msg/test.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 78 | assert_eq!("cx".as_bytes(), &v[2..4]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ContiguousViewIt<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ContiguousViewIt<'_>`, which is required by `&ContiguousViewIt<'_>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ContiguousViewIt<'_>` or manually `impl Debug for ContiguousViewIt<'_>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ContiguousViewIt<'_>` with `#[derive(Debug)]` [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 + #[derive(Debug)] [INFO] [stdout] 92 | struct ContiguousViewIt<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ContiguousViewIt<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/msg/test.rs:79:23 [INFO] [stdout] | [INFO] [stdout] 79 | println!("{:X?}", &v[2..4]); [INFO] [stdout] | ^^^^^^^^ `ContiguousViewIt<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ContiguousViewIt<'_>`, which is required by `&ContiguousViewIt<'_>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ContiguousViewIt<'_>` or manually `impl Debug for ContiguousViewIt<'_>` [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ContiguousViewIt<'_>` with `#[derive(Debug)]` [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 + #[derive(Debug)] [INFO] [stdout] 92 | struct ContiguousViewIt<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: can't compare `[u8]` with `ContiguousViewIt<'_>` [INFO] [stdout] --> src/msg/test.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!("abcxyz".as_bytes(), &v[0..6]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ no implementation for `[u8] == ContiguousViewIt<'_>` [INFO] [stdout] | [INFO] [stdout] = help: the trait `PartialEq>` is not implemented for `[u8]`, which is required by `&[u8]: PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = help: the following other types implement trait `PartialEq`: [INFO] [stdout] `&[T]` implements `PartialEq>` [INFO] [stdout] `&[T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `&mut [T]` implements `PartialEq>` [INFO] [stdout] `&mut [T]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&[U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<&mut [U]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U; N]>` [INFO] [stdout] `[T; N]` implements `PartialEq<[U]>` [INFO] [stdout] and 3 others [INFO] [stdout] = note: required for `&[u8]` to implement `PartialEq<&ContiguousViewIt<'_>>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `ContiguousViewIt<'_>` doesn't implement `Debug` [INFO] [stdout] --> src/msg/test.rs:80:5 [INFO] [stdout] | [INFO] [stdout] 80 | assert_eq!("abcxyz".as_bytes(), &v[0..6]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ `ContiguousViewIt<'_>` cannot be formatted using `{:?}` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Debug` is not implemented for `ContiguousViewIt<'_>`, which is required by `&ContiguousViewIt<'_>: Debug` [INFO] [stdout] = note: add `#[derive(Debug)]` to `ContiguousViewIt<'_>` or manually `impl Debug for ContiguousViewIt<'_>` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] help: consider annotating `ContiguousViewIt<'_>` with `#[derive(Debug)]` [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 + #[derive(Debug)] [INFO] [stdout] 92 | struct ContiguousViewIt<'a> { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0560]: struct `ContiguousViewOwningIt<'_>` has no field named `end_idx` [INFO] [stdout] --> src/msg/mod.rs:86:13 [INFO] [stdout] | [INFO] [stdout] 86 | end_idx: self.len(), [INFO] [stdout] | ^^^^^^^ `ContiguousViewOwningIt<'_>` does not have this field [INFO] [stdout] | [INFO] [stdout] = note: all struct fields are already assigned [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `end_idx` on type `&mut ContiguousViewOwningIt<'a>` [INFO] [stdout] --> src/msg/mod.rs:122:45 [INFO] [stdout] | [INFO] [stdout] 122 | let next = if self.next_idx >= self.end_idx { [INFO] [stdout] | ^^^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `view`, `next_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `ContiguousView<'_>` [INFO] [stdout] --> src/msg/test.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | for b in v[0..v.len()] { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | value moved due to this implicit call to `.into_iter()` [INFO] [stdout] | move occurs because value has type `ContiguousViewIt<'_>`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves value [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/iter/traits/collect.rs:346:18 [INFO] [stdout] note: if `ContiguousViewIt<'_>` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/msg/mod.rs:91:1 [INFO] [stdout] | [INFO] [stdout] 91 | struct ContiguousViewIt<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] | [INFO] [stdout] ::: src/msg/test.rs:104:14 [INFO] [stdout] | [INFO] [stdout] 104 | for b in v[0..v.len()] { [INFO] [stdout] | ------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0507, E0560, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rustcache` (bin "rustcache" test) due to 19 previous errors [INFO] running `Command { std: "docker" "inspect" "e751371b4cae390af96ab21904cf4d2e3ec3cde1ab136022e76ff10b44058602", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e751371b4cae390af96ab21904cf4d2e3ec3cde1ab136022e76ff10b44058602", kill_on_drop: false }` [INFO] [stdout] e751371b4cae390af96ab21904cf4d2e3ec3cde1ab136022e76ff10b44058602