[INFO] cloning repository https://github.com/ADOzog/learning-llvm
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ADOzog/learning-llvm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FADOzog%2Flearning-llvm", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FADOzog%2Flearning-llvm'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] e633bc0097810b83c7d8794c372d05231c220cf0
[INFO] checking ADOzog/learning-llvm against master#f8463896a9b36a04899c013bd8825a7fd29dd7a4 for pr-151920
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FADOzog%2Flearning-llvm" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ADOzog/learning-llvm
[INFO] finished tweaking git repo https://github.com/ADOzog/learning-llvm
[INFO] tweaked toml for git repo https://github.com/ADOzog/learning-llvm written to /workspace/builds/worker-1-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ADOzog/learning-llvm on toolchain f8463896a9b36a04899c013bd8825a7fd29dd7a4
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f8463896a9b36a04899c013bd8825a7fd29dd7a4" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ADOzog/learning-llvm 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" "+f8463896a9b36a04899c013bd8825a7fd29dd7a4" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+f8463896a9b36a04899c013bd8825a7fd29dd7a4" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 6996bf4903357d426f18dd21e65b4da8fb0a253bf89e2a20b72c705808246ffd
[INFO] running `Command { std: "docker" "start" "-a" "6996bf4903357d426f18dd21e65b4da8fb0a253bf89e2a20b72c705808246ffd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "6996bf4903357d426f18dd21e65b4da8fb0a253bf89e2a20b72c705808246ffd", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "6996bf4903357d426f18dd21e65b4da8fb0a253bf89e2a20b72c705808246ffd", kill_on_drop: false }`
[INFO] [stdout] 6996bf4903357d426f18dd21e65b4da8fb0a253bf89e2a20b72c705808246ffd
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:61361fe0aef631f17e9d025a70c5a647956f8c671dd02950a60ad3f5cc5526d7" "/opt/rustwide/cargo-home/bin/cargo" "+f8463896a9b36a04899c013bd8825a7fd29dd7a4" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4723d84dd3b3ec6af4b45ab73e4dc16b06da4aad51c5ce718d309a7137495a8a
[INFO] running `Command { std: "docker" "start" "-a" "4723d84dd3b3ec6af4b45ab73e4dc16b06da4aad51c5ce718d309a7137495a8a", kill_on_drop: false }`
[INFO] [stderr]     Checking llvm-kaleidoscope v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0425]: cannot find value `till_body` in this scope
[INFO] [stdout]   --> src/ast.rs:45:47
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `till_end` in this scope
[INFO] [stdout]   --> src/ast.rs:45:69
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lexer::*`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use lexer::*;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::boxed`
[INFO] [stdout]  --> src/ast.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::boxed;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::iter`
[INFO] [stdout]  --> src/ast.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::iter;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ast::*`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use ast::*;
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find function `proto_parse` in this scope
[INFO] [stdout]   --> src/ast.rs:45:35
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/ast.rs:45:59
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                       -----------                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ExprAST`, found `Option<ExprAST>`
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       arguments to this struct are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `ExprAST`
[INFO] [stdout]               found enum `Option<ExprAST>`
[INFO] [stdout] note: tuple struct defined here
[INFO] [stdout]   --> src/ast.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct FunctionAST(pub PrototypeAST, pub ExprAST);
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] help: use the `?` operator to extract the `Option<ExprAST>` value, propagating an `Option::None` value to the caller
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)?),
[INFO] [stdout]    |                                                                                       +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `till_body` in this scope
[INFO] [stdout]   --> src/ast.rs:45:47
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                                               ^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `till_end` in this scope
[INFO] [stdout]   --> src/ast.rs:45:69
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                                                                     ^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `lexer::*`
[INFO] [stdout]  --> src/main.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use lexer::*;
[INFO] [stdout]   |     ^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::boxed`
[INFO] [stdout]  --> src/ast.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use std::boxed;
[INFO] [stdout]   |     ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::iter`
[INFO] [stdout]  --> src/ast.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use std::iter;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ast::*`
[INFO] [stdout]  --> src/main.rs:4:5
[INFO] [stdout]   |
[INFO] [stdout] 4 | use ast::*;
[INFO] [stdout]   |     ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `match` arms have incompatible types
[INFO] [stdout]   --> src/ast.rs:45:23
[INFO] [stdout]    |
[INFO] [stdout] 43 | /     match next_token {
[INFO] [stdout] 44 | |         Token::Eof => cur_ast,
[INFO] [stdout]    | |                       ------- this is found to be of type `Option<ExprAST>`
[INFO] [stdout] 45 | |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    | |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<ExprAST>`, found `FunctionAST`
[INFO] [stdout] 46 | |         Token::Extern => {}
[INFO] [stdout] ...  |
[INFO] [stdout] 59 | |     };
[INFO] [stdout]    | |_____- `match` arms have incompatible types
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<ExprAST>`
[INFO] [stdout]             found struct `FunctionAST`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/ast.rs:38:79
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn parse_rec(input: impl Iterator<Item = Token>, cur_ast: Option<ExprAST>) -> Option<ExprAST> {
[INFO] [stdout]    |    ---------                                                                  ^^^^^^^^^^^^^^^ expected `Option<ExprAST>`, found `()`
[INFO] [stdout]    |    |
[INFO] [stdout]    |    implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<ExprAST>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] help: consider returning the local binding `cur_ast`
[INFO] [stdout]    |
[INFO] [stdout] 59 ~     };
[INFO] [stdout] 60 +     cur_ast
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout]   --> src/ast.rs:61:14
[INFO] [stdout]    |
[INFO] [stdout] 61 | fn parse_def(input: &str) -> ParseResult<FunctionAST> {
[INFO] [stdout]    |              ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `llvm-kaleidoscope` (bin "llvm-kaleidoscope") due to 6 previous errors; 5 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] error[E0425]: cannot find function `proto_parse` in this scope
[INFO] [stdout]   --> src/ast.rs:45:35
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                                   ^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/ast.rs:45:59
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    |                       -----------                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `ExprAST`, found `Option<ExprAST>`
[INFO] [stdout]    |                       |
[INFO] [stdout]    |                       arguments to this struct are incorrect
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `ExprAST`
[INFO] [stdout]               found enum `Option<ExprAST>`
[INFO] [stdout] note: tuple struct defined here
[INFO] [stdout]   --> src/ast.rs:24:12
[INFO] [stdout]    |
[INFO] [stdout] 24 | pub struct FunctionAST(pub PrototypeAST, pub ExprAST);
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] help: use the `?` operator to extract the `Option<ExprAST>` value, propagating an `Option::None` value to the caller
[INFO] [stdout]    |
[INFO] [stdout] 45 |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)?),
[INFO] [stdout]    |                                                                                       +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: `match` arms have incompatible types
[INFO] [stdout]   --> src/ast.rs:45:23
[INFO] [stdout]    |
[INFO] [stdout] 43 | /     match next_token {
[INFO] [stdout] 44 | |         Token::Eof => cur_ast,
[INFO] [stdout]    | |                       ------- this is found to be of type `Option<ExprAST>`
[INFO] [stdout] 45 | |         Token::Def => FunctionAST(proto_parse(till_body), parse_rec(till_end, cur_ast)),
[INFO] [stdout]    | |                       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `Option<ExprAST>`, found `FunctionAST`
[INFO] [stdout] 46 | |         Token::Extern => {}
[INFO] [stdout] ...  |
[INFO] [stdout] 59 | |     };
[INFO] [stdout]    | |_____- `match` arms have incompatible types
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected enum `Option<ExprAST>`
[INFO] [stdout]             found struct `FunctionAST`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/ast.rs:38:79
[INFO] [stdout]    |
[INFO] [stdout] 38 | fn parse_rec(input: impl Iterator<Item = Token>, cur_ast: Option<ExprAST>) -> Option<ExprAST> {
[INFO] [stdout]    |    ---------                                                                  ^^^^^^^^^^^^^^^ expected `Option<ExprAST>`, found `()`
[INFO] [stdout]    |    |
[INFO] [stdout]    |    implicitly returns `()` as its body has no tail or `return` expression
[INFO] [stdout]    |
[INFO] [stdout]    = note:   expected enum `Option<ExprAST>`
[INFO] [stdout]            found unit type `()`
[INFO] [stdout] help: consider returning the local binding `cur_ast`
[INFO] [stdout]    |
[INFO] [stdout] 59 ~     };
[INFO] [stdout] 60 +     cur_ast
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `input`
[INFO] [stdout]   --> src/ast.rs:61:14
[INFO] [stdout]    |
[INFO] [stdout] 61 | fn parse_def(input: &str) -> ParseResult<FunctionAST> {
[INFO] [stdout]    |              ^^^^^ help: if this is intentional, prefix it with an underscore: `_input`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0425.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `llvm-kaleidoscope` (bin "llvm-kaleidoscope" test) due to 6 previous errors; 5 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "4723d84dd3b3ec6af4b45ab73e4dc16b06da4aad51c5ce718d309a7137495a8a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4723d84dd3b3ec6af4b45ab73e4dc16b06da4aad51c5ce718d309a7137495a8a", kill_on_drop: false }`
[INFO] [stdout] 4723d84dd3b3ec6af4b45ab73e4dc16b06da4aad51c5ce718d309a7137495a8a
