[INFO] cloning repository https://github.com/shika-blyat/parser-combinator [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/shika-blyat/parser-combinator" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshika-blyat%2Fparser-combinator", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshika-blyat%2Fparser-combinator'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9a8e4476efddd4ddba846d276d06ed527b252c4c [INFO] checking shika-blyat/parser-combinator against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fshika-blyat%2Fparser-combinator" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/shika-blyat/parser-combinator on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/shika-blyat/parser-combinator [INFO] finished tweaking git repo https://github.com/shika-blyat/parser-combinator [INFO] tweaked toml for git repo https://github.com/shika-blyat/parser-combinator written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/shika-blyat/parser-combinator already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 360e48e2b69c1eb57b22a11ee34349bf6d8f05713aba523bf2c9a016ea49131a [INFO] running `Command { std: "docker" "start" "-a" "360e48e2b69c1eb57b22a11ee34349bf6d8f05713aba523bf2c9a016ea49131a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "360e48e2b69c1eb57b22a11ee34349bf6d8f05713aba523bf2c9a016ea49131a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "360e48e2b69c1eb57b22a11ee34349bf6d8f05713aba523bf2c9a016ea49131a", kill_on_drop: false }` [INFO] [stdout] 360e48e2b69c1eb57b22a11ee34349bf6d8f05713aba523bf2c9a016ea49131a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d6d5ccca1c1aa6a978a93ee70d10f395901b492696367de4fb748c1a65c1ee25 [INFO] running `Command { std: "docker" "start" "-a" "d6d5ccca1c1aa6a978a93ee70d10f395901b492696367de4fb748c1a65c1ee25", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking parser_combinator v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/common.rs:65:39 [INFO] [stdout] | [INFO] [stdout] 65 | pub fn take_cpredicate(predicate: Box bool>) -> Parser { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Fn(char) -> bool` [INFO] [stdout] | [INFO] [stdout] = note: `--force-warn bare-trait-objects` implied by `--force-warn rust-2021-compatibility` [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/evaluation.rs:56:38 [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(eval_input("1+2"), Ok((Literal::Num(Number::I32(3))))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/evaluation.rs:59:12 [INFO] [stdout] | [INFO] [stdout] 59 | Ok((Literal::Num(Number::I32((1 + 2) * 3 / 4)))) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/parser.rs:285:17 [INFO] [stdout] | [INFO] [stdout] 285 | ((remaining, ())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `error::ParserError` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use error::ParserError; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Literal` [INFO] [stdout] --> src/main.rs:11:41 [INFO] [stdout] | [INFO] [stdout] 11 | use parser::{build_ast, take_var, Expr, Literal}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `typechecking::type_ast` [INFO] [stdout] --> src/main.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 16 | use typechecking::type_ast; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/evaluation.rs:56:16 [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(eval_input("1+2"), Ok((Literal::Num(Number::I32(3))))); [INFO] [stdout] | ^^^^^^^^^^ ----- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn eval_input<'a>(s: &'a str, variables: &'a mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^ ---------- ---------------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/evaluation.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | assert_eq!(eval_input("1+2"), Ok((Literal::Num(Number::I32(3))))); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result` [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[E0061]: this function takes 2 arguments but 1 argument was supplied [INFO] [stdout] --> src/evaluation.rs:58:9 [INFO] [stdout] | [INFO] [stdout] 58 | eval_input("(1+2) * 3 / 4"), [INFO] [stdout] | ^^^^^^^^^^ --------------- supplied 1 argument [INFO] [stdout] | | [INFO] [stdout] | expected 2 arguments [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> src/main.rs:27:4 [INFO] [stdout] | [INFO] [stdout] 27 | fn eval_input<'a>(s: &'a str, variables: &'a mut HashMap) { [INFO] [stdout] | ^^^^^^^^^^ ---------- ---------------------------------------- [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/evaluation.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | / assert_eq!( [INFO] [stdout] 58 | | eval_input("(1+2) * 3 / 4"), [INFO] [stdout] 59 | | Ok((Literal::Num(Number::I32((1 + 2) * 3 / 4)))) [INFO] [stdout] 60 | | ); [INFO] [stdout] | |______^ expected `()`, found enum `Result` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `Result` [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] [stderr] error: could not compile `parser_combinator` due to 5 previous errors; 7 warnings emitted [INFO] [stdout] error: aborting due to 4 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0061, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] Fixed src/parser.rs (1 fix) [INFO] [stderr] Fixed src/common.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (5 fixes) [INFO] [stdout] warning: associated function is never used: `get_type` [INFO] [stdout] --> src/parser.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn get_type(&self) -> Type { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_type` [INFO] [stdout] --> src/parser.rs:119:12 [INFO] [stdout] | [INFO] [stdout] 119 | pub fn get_type(&self) -> Type { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_type` [INFO] [stdout] --> src/parser.rs:153:12 [INFO] [stdout] | [INFO] [stdout] 153 | pub fn get_type(&self) -> Type { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new_bin_typed` [INFO] [stdout] --> src/parser.rs:211:12 [INFO] [stdout] | [INFO] [stdout] 211 | pub fn new_bin_typed(left: Expr, op: Operator, right: Expr, expr_type: Type) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_type` [INFO] [stdout] --> src/parser.rs:222:12 [INFO] [stdout] | [INFO] [stdout] 222 | pub fn get_type(&self) -> Type { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `into_typed` [INFO] [stdout] --> src/typechecking.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn into_typed(&mut self) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `binary_type` [INFO] [stdout] --> src/typechecking.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn binary_type(left: Type, op: &Operator, right: Type) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `type_ast` [INFO] [stdout] --> src/typechecking.rs:90:8 [INFO] [stdout] | [INFO] [stdout] 90 | pub fn type_ast() -> Parser { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Environment` [INFO] [stdout] --> src/main.rs:18:8 [INFO] [stdout] | [INFO] [stdout] 18 | struct Environment { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/main.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 10 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "d6d5ccca1c1aa6a978a93ee70d10f395901b492696367de4fb748c1a65c1ee25", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6d5ccca1c1aa6a978a93ee70d10f395901b492696367de4fb748c1a65c1ee25", kill_on_drop: false }` [INFO] [stdout] d6d5ccca1c1aa6a978a93ee70d10f395901b492696367de4fb748c1a65c1ee25