[INFO] cloning repository https://github.com/mishazenin/circular_buffer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mishazenin/circular_buffer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmishazenin%2Fcircular_buffer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmishazenin%2Fcircular_buffer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a88c35e05db4c9b28d084fe92201cf58040e3615 [INFO] checking mishazenin/circular_buffer against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmishazenin%2Fcircular_buffer" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/mishazenin/circular_buffer [INFO] finished tweaking git repo https://github.com/mishazenin/circular_buffer [INFO] tweaked toml for git repo https://github.com/mishazenin/circular_buffer written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/mishazenin/circular_buffer on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/mishazenin/circular_buffer 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16063fc054b0fc202663368e544a3f6aa59c7cd720423f567977e7f70e5a6343 [INFO] running `Command { std: "docker" "start" "-a" "16063fc054b0fc202663368e544a3f6aa59c7cd720423f567977e7f70e5a6343", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16063fc054b0fc202663368e544a3f6aa59c7cd720423f567977e7f70e5a6343", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16063fc054b0fc202663368e544a3f6aa59c7cd720423f567977e7f70e5a6343", kill_on_drop: false }` [INFO] [stdout] 16063fc054b0fc202663368e544a3f6aa59c7cd720423f567977e7f70e5a6343 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 9e7911a3873d8dbfb992a109e083a1ea1723d1656b8987eb6c591d5c57bfc873 [INFO] running `Command { std: "docker" "start" "-a" "9e7911a3873d8dbfb992a109e083a1ea1723d1656b8987eb6c591d5c57bfc873", kill_on_drop: false }` [INFO] [stderr] Checking circular_buffer v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/// bump write cursor` [INFO] [stdout] --> src/lib.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 41 | Ok(()) [INFO] [stdout] | - expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] 42 | /// bump write cursor [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] help: add a space before the last `/` to write a regular comment [INFO] [stdout] | [INFO] [stdout] 42 | // / bump write cursor [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found doc comment `/// bump write cursor` [INFO] [stdout] --> src/lib.rs:42:17 [INFO] [stdout] | [INFO] [stdout] 41 | Ok(()) [INFO] [stdout] | - expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] 42 | /// bump write cursor [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] help: add a space before the last `/` to write a regular comment [INFO] [stdout] | [INFO] [stdout] 42 | // / bump write cursor [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/lib.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | buffer: Vec>, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 1 | pub struct CircularBuffer { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/lib.rs:2:24 [INFO] [stdout] | [INFO] [stdout] 2 | buffer: Vec>, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: you might be missing a type parameter [INFO] [stdout] | [INFO] [stdout] 1 | pub struct CircularBuffer { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | impl CircularBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^--- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 generic parameters [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct CircularBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0107]: struct takes 0 generic arguments but 1 generic argument was supplied [INFO] [stdout] --> src/lib.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | impl CircularBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^--- help: remove the unnecessary generics [INFO] [stdout] | | [INFO] [stdout] | expected 0 generic arguments [INFO] [stdout] | [INFO] [stdout] note: struct defined here, with 0 generic parameters [INFO] [stdout] --> src/lib.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct CircularBuffer { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/lib.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 18 | / match self.buffer[self.read_cursor] { [INFO] [stdout] 19 | | Some(value) => { [INFO] [stdout] 20 | | self.bump_read_cursor(); [INFO] [stdout] 21 | | Ok(value) [INFO] [stdout] | | --------- this is found to be of type `Result` [INFO] [stdout] 22 | | } [INFO] [stdout] 23 | | None => BufferError::EmptyBuffer [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `BufferError` [INFO] [stdout] 24 | | } [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found enum `BufferError` [INFO] [stdout] help: try wrapping the expression in `Err` [INFO] [stdout] | [INFO] [stdout] 23 | None => Err(BufferError::EmptyBuffer) [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/lib.rs:23:21 [INFO] [stdout] | [INFO] [stdout] 18 | / match self.buffer[self.read_cursor] { [INFO] [stdout] 19 | | Some(value) => { [INFO] [stdout] 20 | | self.bump_read_cursor(); [INFO] [stdout] 21 | | Ok(value) [INFO] [stdout] | | --------- this is found to be of type `Result` [INFO] [stdout] 22 | | } [INFO] [stdout] 23 | | None => BufferError::EmptyBuffer [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ expected `Result`, found `BufferError` [INFO] [stdout] 24 | | } [INFO] [stdout] | |_________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result` [INFO] [stdout] found enum `BufferError` [INFO] [stdout] help: try wrapping the expression in `Err` [INFO] [stdout] | [INFO] [stdout] 23 | None => Err(BufferError::EmptyBuffer) [INFO] [stdout] | ++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | self.buffer.iter_mut().for_each(|x| { [INFO] [stdout] | ^ [INFO] [stdout] 29 | x.take(); [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 28 | self.buffer.iter_mut().for_each(|x: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> src/lib.rs:28:42 [INFO] [stdout] | [INFO] [stdout] 28 | self.buffer.iter_mut().for_each(|x| { [INFO] [stdout] | ^ [INFO] [stdout] 29 | x.take(); [INFO] [stdout] | - type must be known at this point [INFO] [stdout] | [INFO] [stdout] help: consider giving this closure parameter an explicit type [INFO] [stdout] | [INFO] [stdout] 28 | self.buffer.iter_mut().for_each(|x: /* Type */| { [INFO] [stdout] | ++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0282, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0107, E0282, E0308, E0412. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0107`. [INFO] [stdout] [INFO] [stderr] error: could not compile `circular_buffer` (lib test) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `circular_buffer` (lib) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "9e7911a3873d8dbfb992a109e083a1ea1723d1656b8987eb6c591d5c57bfc873", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9e7911a3873d8dbfb992a109e083a1ea1723d1656b8987eb6c591d5c57bfc873", kill_on_drop: false }` [INFO] [stdout] 9e7911a3873d8dbfb992a109e083a1ea1723d1656b8987eb6c591d5c57bfc873