[INFO] cloning repository https://github.com/lbuchli/kern
[INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lbuchli/kern" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbuchli%2Fkern"`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbuchli%2Fkern'...
[INFO] running `"git" "rev-parse" "HEAD"`
[INFO] [stdout] 5131614d360f2137997e18587f755da59d395311
[INFO] testing lbuchli/kern against 1.100.0-beta.13+cargoflags=--release for beta-release-1.101-2
[INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flbuchli%2Fkern" "/workspace/builds/worker-4-tc1/source"`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/lbuchli/kern
[INFO] finished tweaking git repo https://github.com/lbuchli/kern
[INFO] tweaked toml for git repo https://github.com/lbuchli/kern written to /workspace/builds/worker-4-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/lbuchli/kern on toolchain 1.100.0-beta.13
[INFO] running `"cargo" "+1.100.0-beta.13" "metadata" "--manifest-path" "Cargo.toml" "--no-deps"`
[INFO] crate git repo https://github.com/lbuchli/kern already has a lockfile, it will not be regenerated
[INFO] running `"cargo" "+1.100.0-beta.13" "fetch" "--manifest-path" "Cargo.toml"`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded peg-runtime v0.6.2
[INFO] [stderr]   Downloaded peg v0.6.2
[INFO] [stderr]   Downloaded peg-macros v0.6.2
[INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:13253766d39459fde29cea4e7c35a3fe37c2c19b4a224f71f2c27711c2837d36" "sleep" "infinity"`
[INFO] [stdout] 1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559
[INFO] running `"docker" "start" "1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559"`
[INFO] running `"docker" "inspect" "1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "metadata" "--no-deps" "--format-version=1"`
[INFO] running `"docker" "inspect" "1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559"`
[INFO] running `"docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-w" "/opt/rustwide/workdir" "--user" "0:0" "1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559" "/opt/rustwide/cargo-home/bin/cargo" "+1.100.0-beta.13" "build" "--frozen" "--message-format=json" "--release"`
[INFO] [stderr]    Compiling proc-macro2 v1.0.8
[INFO] [stderr]    Compiling unicode-xid v0.2.0
[INFO] [stderr]    Compiling peg-runtime v0.6.2
[INFO] [stderr]    Compiling quote v1.0.2
[INFO] [stderr]    Compiling peg-macros v0.6.2
[INFO] [stderr]    Compiling peg v0.6.2
[INFO] [stderr]    Compiling kern v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]   --> src/reducer.rs:59:20
[INFO] [stdout]    |
[INFO] [stdout] 59 |             if let HNode::Application(ref left, _) = *last {
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^   ----- this expression has type `Ref<'_, reducer::HNode<'_>>`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    expected `Ref<'_, HNode<'_>>`, found `HNode<'_>`
[INFO] [stdout]    |
[INFO] [stdout]    = note: expected struct `Ref<'_, HNode<'_>>`
[INFO] [stdout]                 found enum `HNode<'_>`
[INFO] [stdout] help: consider dereferencing to access the inner value using the `Deref` trait
[INFO] [stdout]    |
[INFO] [stdout] 59 |             if let HNode::Application(ref left, _) = **last {
[INFO] [stdout]    |                                                      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get` found for reference `&reducer::NodeBox<'_>` in the current scope
[INFO] [stdout]   --> src/reducer.rs:60:39
[INFO] [stdout]    |
[INFO] [stdout] 60 |                 spine_stack.push(left.get());
[INFO] [stdout]    |                                       ^^^ method not found in `&reducer::NodeBox<'_>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `get`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `SliceIndex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get` found for reference `&reducer::NodeBox<'a>` in the current scope
[INFO] [stdout]   --> src/reducer.rs:69:64
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut spine_stack = vec![self.stack.first().unwrap().get()];
[INFO] [stdout]    |                                    ----------                  ^^^ method not found in `&reducer::NodeBox<'a>`
[INFO] [stdout]    |                                    |
[INFO] [stdout]    |                                    method `get` is available on `&[reducer::NodeBox<'a>]`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `get`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `SliceIndex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get` found for struct `reducer::NodeBox<'a>` in the current scope
[INFO] [stdout]   --> src/reducer.rs:72:39
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct NodeBox<'a>(Rc<RefCell<HNode<'a>>>);
[INFO] [stdout]    | ---------------------- method `get` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 72 |                 spine_stack.push(left.get());
[INFO] [stdout]    |                                       ^^^ method not found in `reducer::NodeBox<'_>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `get`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `SliceIndex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get` found for struct `reducer::NodeBox<'a>` in the current scope
[INFO] [stdout]   --> src/reducer.rs:91:55
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct NodeBox<'a>(Rc<RefCell<HNode<'a>>>);
[INFO] [stdout]    | ---------------------- method `get` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 91 |                     if let HNode::Number(a) = right_a.get() {
[INFO] [stdout]    |                                                       ^^^ method not found in `reducer::NodeBox<'_>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `get`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `SliceIndex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `get` found for struct `reducer::NodeBox<'a>` in the current scope
[INFO] [stdout]   --> src/reducer.rs:95:67
[INFO] [stdout]    |
[INFO] [stdout]  8 | pub struct NodeBox<'a>(Rc<RefCell<HNode<'a>>>);
[INFO] [stdout]    | ---------------------- method `get` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 95 |                                 if let HNode::Number(b) = right_b.get() {
[INFO] [stdout]    |                                                                   ^^^ method not found in `reducer::NodeBox<'_>`
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following trait defines an item `get`, perhaps you need to implement it:
[INFO] [stdout]            candidate #1: `SliceIndex`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `reducer::NodeBox::<'a>::new` is unsafe and requires unsafe function or block
[INFO] [stdout]   --> src/compiler.rs:12:25
[INFO] [stdout]    |
[INFO] [stdout] 12 |             stack: vec![NodeBox::new(HNode::SuperCombinator("main"))],
[INFO] [stdout]    |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `reducer::NodeBox::<'a>::new` is unsafe and requires unsafe function or block
[INFO] [stdout]   --> src/compiler.rs:29:32
[INFO] [stdout]    |
[INFO] [stdout] 29 |             locals.insert(arg, NodeBox::new(HNode::Number(42))); // TODO what to put here? I'm afraid 42 isn't the answer...
[INFO] [stdout]    |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `reducer::NodeBox::<'a>::new` is unsafe and requires unsafe function or block
[INFO] [stdout]   --> src/compiler.rs:44:20
[INFO] [stdout]    |
[INFO] [stdout] 44 |                 Ok(NodeBox::new(HNode::PrimitiveFn(&name)))
[INFO] [stdout]    |                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `reducer::NodeBox::<'a>::new` is unsafe and requires unsafe function or block
[INFO] [stdout]   --> src/compiler.rs:50:24
[INFO] [stdout]    |
[INFO] [stdout] 50 |                     Ok(NodeBox::new(HNode::SuperCombinator(&name)))
[INFO] [stdout]    |                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `reducer::NodeBox::<'a>::new` is unsafe and requires unsafe function or block
[INFO] [stdout]   --> src/compiler.rs:54:31
[INFO] [stdout]    |
[INFO] [stdout] 54 |         Expr::Number(n) => Ok(NodeBox::new(HNode::Number(n))),
[INFO] [stdout]    |                               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0133]: call to unsafe function `reducer::NodeBox::<'a>::new` is unsafe and requires unsafe function or block
[INFO] [stdout]   --> src/compiler.rs:56:39
[INFO] [stdout]    |
[INFO] [stdout] 56 |           Expr::Application(a, b) => Ok(NodeBox::new(HNode::Application(
[INFO] [stdout]    |  _______________________________________^
[INFO] [stdout] 57 | |             parse_expr(*a, locals.clone())?,
[INFO] [stdout] 58 | |             parse_expr(*b, locals.clone())?,
[INFO] [stdout] 59 | |         ))),
[INFO] [stdout]    | |__________^ call to unsafe function
[INFO] [stdout]    |
[INFO] [stdout]    = note: consult the function's documentation for information on how to avoid undefined behavior
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `name`
[INFO] [stdout]   --> src/compiler.rs:44:17
[INFO] [stdout]    |
[INFO] [stdout] 44 |                 Ok(NodeBox::new(HNode::PrimitiveFn(&name)))
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----^^^
[INFO] [stdout]    |                 |                                  |
[INFO] [stdout]    |                 |                                  `name` is borrowed here
[INFO] [stdout]    |                 returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0515]: cannot return value referencing local variable `name`
[INFO] [stdout]   --> src/compiler.rs:50:21
[INFO] [stdout]    |
[INFO] [stdout] 50 |                     Ok(NodeBox::new(HNode::SuperCombinator(&name)))
[INFO] [stdout]    |                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^-----^^^
[INFO] [stdout]    |                     |                                      |
[INFO] [stdout]    |                     |                                      `name` is borrowed here
[INFO] [stdout]    |                     returns a value referencing data owned by the current function
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0133, E0308, E0515, E0599.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0133`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `kern` (bin "kern") due to 14 previous errors
[INFO] running `"docker" "inspect" "1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559"`
[INFO] running `"docker" "rm" "-f" "1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559"`
[INFO] [stdout] 1d6889103e4909d20d5027864181976d920c43268abae9ee988f5bfafe2a8559
