[INFO] cloning repository https://github.com/justnat3/parse-happy [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/justnat3/parse-happy" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustnat3%2Fparse-happy", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustnat3%2Fparse-happy'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9b1225adb60024b0f680c32397e45fadd83f42e7 [INFO] testing justnat3/parse-happy against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjustnat3%2Fparse-happy" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/justnat3/parse-happy [INFO] finished tweaking git repo https://github.com/justnat3/parse-happy [INFO] tweaked toml for git repo https://github.com/justnat3/parse-happy written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/justnat3/parse-happy on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/justnat3/parse-happy 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded logos v0.11.4 [INFO] [stderr] Downloaded logos-derive v0.11.5 [INFO] [stderr] Downloaded radium v0.5.3 [INFO] [stderr] Downloaded beef v0.4.4 [INFO] [stderr] Downloaded utf8-ranges v1.0.4 [INFO] [stderr] Downloaded lexical-core v0.7.5 [INFO] [stderr] Downloaded bitvec v0.19.5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14cd3ef52092729310eab32ec9a8229f63200b6adeeacec3c0323f3e7c26a774 [INFO] running `Command { std: "docker" "start" "-a" "14cd3ef52092729310eab32ec9a8229f63200b6adeeacec3c0323f3e7c26a774", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14cd3ef52092729310eab32ec9a8229f63200b6adeeacec3c0323f3e7c26a774", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14cd3ef52092729310eab32ec9a8229f63200b6adeeacec3c0323f3e7c26a774", kill_on_drop: false }` [INFO] [stdout] 14cd3ef52092729310eab32ec9a8229f63200b6adeeacec3c0323f3e7c26a774 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 20b43a12c1c0b8229c1b1ca69ed188c20908ede8221fd82c84018b4902d7822c [INFO] running `Command { std: "docker" "start" "-a" "20b43a12c1c0b8229c1b1ca69ed188c20908ede8221fd82c84018b4902d7822c", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling syn v1.0.65 [INFO] [stderr] Compiling radium v0.5.3 [INFO] [stderr] Compiling memchr v2.3.4 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling lexical-core v0.7.5 [INFO] [stderr] Compiling regex-syntax v0.6.23 [INFO] [stderr] Compiling utf8-ranges v1.0.4 [INFO] [stderr] Compiling nom v6.1.2 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling funty v1.1.0 [INFO] [stderr] Compiling beef v0.4.4 [INFO] [stderr] Compiling wyz v0.2.0 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling tap v1.0.1 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling arrayvec v0.5.2 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling bitvec v0.19.5 [INFO] [stderr] Compiling logos-derive v0.11.5 [INFO] [stderr] Compiling logos v0.11.4 [INFO] [stderr] Compiling playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:26:41 [INFO] [stdout] | [INFO] [stdout] 26 | fn split_at(&self, count: usize) -> &[Token] { [INFO] [stdout] | -------- ^^^^^^^^ expected `&[Token]`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&[Token]` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:59:13 [INFO] [stdout] | [INFO] [stdout] 59 | let (prefix, suffix) = self.split_at(count); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ -------------------- this expression has type `&[Token]` [INFO] [stdout] | | [INFO] [stdout] | expected `[Token]`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected slice `[Token]` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&[Token]: InputTake` is not satisfied [INFO] [stdout] --> src/main.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (to, _) = tag(Token::Equals)(i)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `InputTake` is not implemented for `&[Token]` [INFO] [stdout] | [INFO] [stdout] = help: the trait `InputTake` is implemented for `&[u8]` [INFO] [stdout] note: required by a bound in `nom::bytes::complete::tag` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nom-6.1.2/src/bytes/complete.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn tag>( [INFO] [stdout] | --- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 37 | Input: InputTake + Compare, [INFO] [stdout] | ^^^^^^^^^ required by this bound in `tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&[Token]: Compare` is not satisfied [INFO] [stdout] --> src/main.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (to, _) = tag(Token::Equals)(i)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `InputIter` is not implemented for `&[Token]` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `InputIter`: [INFO] [stdout] &[u8; 0] [INFO] [stdout] &[u8; 10] [INFO] [stdout] &[u8; 11] [INFO] [stdout] &[u8; 12] [INFO] [stdout] &[u8; 13] [INFO] [stdout] &[u8; 14] [INFO] [stdout] &[u8; 15] [INFO] [stdout] &[u8; 16] [INFO] [stdout] and 26 others [INFO] [stdout] = note: required for `&[Token]` to implement `Compare` [INFO] [stdout] note: required by a bound in `nom::bytes::complete::tag` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nom-6.1.2/src/bytes/complete.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn tag>( [INFO] [stdout] | --- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 37 | Input: InputTake + Compare, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `&[Token]: Compare` is not satisfied [INFO] [stdout] --> src/main.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (to, _) = tag(Token::Equals)(i)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `UnspecializedInput` is not implemented for `&[Token]` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `Compare`: [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 0]>` [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 10]>` [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 11]>` [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 12]>` [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 13]>` [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 14]>` [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 15]>` [INFO] [stdout] `&[u8]` implements `Compare<&[u8; 16]>` [INFO] [stdout] and 60 others [INFO] [stdout] = note: required for `&[Token]` to implement `Compare` [INFO] [stdout] note: required by a bound in `nom::bytes::complete::tag` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nom-6.1.2/src/bytes/complete.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn tag>( [INFO] [stdout] | --- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 37 | Input: InputTake + Compare, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Token: InputIter` is not satisfied [INFO] [stdout] --> src/main.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (to, _) = tag(Token::Equals)(i)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `InputIter` is not implemented for `Token` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `InputIter`: [INFO] [stdout] &'a BitSlice [INFO] [stdout] &'a [u8; 0] [INFO] [stdout] &'a [u8; 10] [INFO] [stdout] &'a [u8; 11] [INFO] [stdout] &'a [u8; 12] [INFO] [stdout] &'a [u8; 13] [INFO] [stdout] &'a [u8; 14] [INFO] [stdout] &'a [u8; 15] [INFO] [stdout] and 28 others [INFO] [stdout] = note: required for `&[Token]` to implement `Compare` [INFO] [stdout] note: required by a bound in `nom::bytes::complete::tag` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nom-6.1.2/src/bytes/complete.rs:37:22 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn tag>( [INFO] [stdout] | --- required by a bound in this function [INFO] [stdout] ... [INFO] [stdout] 37 | Input: InputTake + Compare, [INFO] [stdout] | ^^^^^^^^^^ required by this bound in `tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `nom::error::Error: ParseError<&[Token]>` is not satisfied [INFO] [stdout] --> src/main.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | let (to, _) = tag(Token::Equals)(i)?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `ParseError<&[Token]>` is not implemented for `nom::error::Error` [INFO] [stdout] | [INFO] [stdout] = help: the trait `ParseError<&[Token]>` is not implemented for `nom::error::Error` [INFO] [stdout] but trait `ParseError` is implemented for it [INFO] [stdout] = help: for that trait implementation, expected `Token`, found `&[Token]` [INFO] [stdout] note: required by a bound in `nom::bytes::complete::tag` [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/nom-6.1.2/src/bytes/complete.rs:33:29 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn tag>( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ required by this bound in `tag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:66:5 [INFO] [stdout] | [INFO] [stdout] 64 | fn parse_string(i: &[Token]) -> IResult { [INFO] [stdout] | --------------------- expected `Result<(Token, Token), nom::Err>>` because of return type [INFO] [stdout] 65 | let (to, _) = tag(Token::Equals)(i)?; [INFO] [stdout] 66 | to [INFO] [stdout] | ^^ expected `Result<(Token, Token), Err>>`, found `&[Token]` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `Result<(Token, Token), nom::Err>>` [INFO] [stdout] found reference `&[Token]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/main.rs:40:5 [INFO] [stdout] | [INFO] [stdout] 40 | fn index(&self, index: usize) -> &Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 41 | &(*self)[index] [INFO] [stdout] | ------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 48 | fn index(&self, index: Range) -> &Token { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 49 | &(*self)[index] [INFO] [stdout] | ------- recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `count` [INFO] [stdout] --> src/main.rs:55:20 [INFO] [stdout] | [INFO] [stdout] 55 | fn take(&self, count: usize) -> Self { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_count` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of index of `Token` [INFO] [stdout] --> src/main.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 56 | self[0..1] [INFO] [stdout] | ^^^^^^^^^^ move occurs because value has type `Token`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider cloning the value if the performance cost is acceptable [INFO] [stdout] | [INFO] [stdout] 56 | self[0..1].clone() [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `playground` (bin "playground") due to 9 previous errors; 3 warnings emitted [INFO] running `Command { std: "docker" "inspect" "20b43a12c1c0b8229c1b1ca69ed188c20908ede8221fd82c84018b4902d7822c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "20b43a12c1c0b8229c1b1ca69ed188c20908ede8221fd82c84018b4902d7822c", kill_on_drop: false }` [INFO] [stdout] 20b43a12c1c0b8229c1b1ca69ed188c20908ede8221fd82c84018b4902d7822c