[INFO] cloning repository https://github.com/lauri3new/rust-parsers [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lauri3new/rust-parsers" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flauri3new%2Frust-parsers", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flauri3new%2Frust-parsers'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 71be1989048e5ae7ef03dc55dd084a78be83579b [INFO] building lauri3new/rust-parsers against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flauri3new%2Frust-parsers" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lauri3new/rust-parsers on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lauri3new/rust-parsers [INFO] finished tweaking git repo https://github.com/lauri3new/rust-parsers [INFO] tweaked toml for git repo https://github.com/lauri3new/rust-parsers written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/lauri3new/rust-parsers 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5bd702f166fedaf1c117df513c06a9a6f19f2e0b855c9a4890f38acf0834e86c [INFO] running `Command { std: "docker" "start" "-a" "5bd702f166fedaf1c117df513c06a9a6f19f2e0b855c9a4890f38acf0834e86c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5bd702f166fedaf1c117df513c06a9a6f19f2e0b855c9a4890f38acf0834e86c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5bd702f166fedaf1c117df513c06a9a6f19f2e0b855c9a4890f38acf0834e86c", kill_on_drop: false }` [INFO] [stdout] 5bd702f166fedaf1c117df513c06a9a6f19f2e0b855c9a4890f38acf0834e86c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b80d0d465fb688de95c5a7217f1cae34c3cc858775a1e32820d7822f0d44bf5 [INFO] running `Command { std: "docker" "start" "-a" "2b80d0d465fb688de95c5a7217f1cae34c3cc858775a1e32820d7822f0d44bf5", kill_on_drop: false }` [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling allocator-api2 v0.2.21 [INFO] [stderr] Compiling cc v1.2.5 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling psm v0.1.24 [INFO] [stderr] Compiling stacker v0.1.17 [INFO] [stderr] Compiling chumsky v0.9.3 [INFO] [stderr] Compiling parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/main.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn new<'a>(input: &'a Vec) -> Parser<'_> { [INFO] [stdout] | -- lifetime `'a` declared here ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | if (self.current_pos < 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - if (self.current_pos < 2) { [INFO] [stdout] 118 + if self.current_pos < 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | ((*i as i32) < self.current_pos as i32 - 2) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - ((*i as i32) < self.current_pos as i32 - 2) [INFO] [stdout] 122 + (*i as i32) < self.current_pos as i32 - 2 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | while (self.match_token(&Token::Minus)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - while (self.match_token(&Token::Minus)) { [INFO] [stdout] 133 + while self.match_token(&Token::Minus) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | while (self.match_token(&Token::Multiply)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 144 - while (self.match_token(&Token::Multiply)) { [INFO] [stdout] 144 + while self.match_token(&Token::Multiply) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:155:11 [INFO] [stdout] | [INFO] [stdout] 155 | while (self.match_token(&Token::Plus) | self.match_token(&Token::Minus)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 155 - while (self.match_token(&Token::Plus) | self.match_token(&Token::Minus)) { [INFO] [stdout] 155 + while self.match_token(&Token::Plus) | self.match_token(&Token::Minus) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/chumsky_parser.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/chumsky_parser.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 44 | Token::Number(x) => Ok(*x), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 45 | Token::Minus(a) => Ok(-eval(a)?), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 46 | Token::Add(a, b) => Ok(eval(a)? + eval(b)?), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 47 | Token::Subtract(a, b) => Ok(eval(a)? - eval(b)?), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 48 | Token::Multiply(a, b) => Ok(eval(a)? * eval(b)?), [INFO] [stdout] 49 | _ => panic!() [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(a) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.42s [INFO] running `Command { std: "docker" "inspect" "2b80d0d465fb688de95c5a7217f1cae34c3cc858775a1e32820d7822f0d44bf5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b80d0d465fb688de95c5a7217f1cae34c3cc858775a1e32820d7822f0d44bf5", kill_on_drop: false }` [INFO] [stdout] 2b80d0d465fb688de95c5a7217f1cae34c3cc858775a1e32820d7822f0d44bf5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d8ec800f596b41705f930fbe19fb47b68c4e3a0e85b3ba51f984ebbb2e9e9f86 [INFO] running `Command { std: "docker" "start" "-a" "d8ec800f596b41705f930fbe19fb47b68c4e3a0e85b3ba51f984ebbb2e9e9f86", kill_on_drop: false }` [INFO] [stderr] Compiling parser v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: elided lifetime has a name [INFO] [stdout] --> src/main.rs:63:47 [INFO] [stdout] | [INFO] [stdout] 63 | fn new<'a>(input: &'a Vec) -> Parser<'_> { [INFO] [stdout] | -- lifetime `'a` declared here ^^ this elided lifetime gets resolved as `'a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(elided_named_lifetimes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/main.rs:118:16 [INFO] [stdout] | [INFO] [stdout] 118 | if (self.current_pos < 2) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 118 - if (self.current_pos < 2) { [INFO] [stdout] 118 + if self.current_pos < 2 { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | ((*i as i32) < self.current_pos as i32 - 2) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 122 - ((*i as i32) < self.current_pos as i32 - 2) [INFO] [stdout] 122 + (*i as i32) < self.current_pos as i32 - 2 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:133:11 [INFO] [stdout] | [INFO] [stdout] 133 | while (self.match_token(&Token::Minus)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 133 - while (self.match_token(&Token::Minus)) { [INFO] [stdout] 133 + while self.match_token(&Token::Minus) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:144:11 [INFO] [stdout] | [INFO] [stdout] 144 | while (self.match_token(&Token::Multiply)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 144 - while (self.match_token(&Token::Multiply)) { [INFO] [stdout] 144 + while self.match_token(&Token::Multiply) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `while` condition [INFO] [stdout] --> src/main.rs:155:11 [INFO] [stdout] | [INFO] [stdout] 155 | while (self.match_token(&Token::Plus) | self.match_token(&Token::Minus)) { [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 155 - while (self.match_token(&Token::Plus) | self.match_token(&Token::Minus)) { [INFO] [stdout] 155 + while self.match_token(&Token::Plus) | self.match_token(&Token::Minus) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/chumsky_parser.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 49 | _ => panic!() [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/chumsky_parser.rs:49:7 [INFO] [stdout] | [INFO] [stdout] 44 | Token::Number(x) => Ok(*x), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 45 | Token::Minus(a) => Ok(-eval(a)?), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 46 | Token::Add(a, b) => Ok(eval(a)? + eval(b)?), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 47 | Token::Subtract(a, b) => Ok(eval(a)? - eval(b)?), [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] 48 | Token::Multiply(a, b) => Ok(eval(a)? * eval(b)?), [INFO] [stdout] 49 | _ => panic!() [INFO] [stdout] | ^ ...and 1 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/main.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | Ok(a) => true, [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.87s [INFO] running `Command { std: "docker" "inspect" "d8ec800f596b41705f930fbe19fb47b68c4e3a0e85b3ba51f984ebbb2e9e9f86", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8ec800f596b41705f930fbe19fb47b68c4e3a0e85b3ba51f984ebbb2e9e9f86", kill_on_drop: false }` [INFO] [stdout] d8ec800f596b41705f930fbe19fb47b68c4e3a0e85b3ba51f984ebbb2e9e9f86