[INFO] cloning repository https://github.com/rishabh3112/lox-in-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rishabh3112/lox-in-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh3112%2Flox-in-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh3112%2Flox-in-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4bdbeebc8a55279f84160ae9700e41377f840150 [INFO] checking rishabh3112/lox-in-rust against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh3112%2Flox-in-rust" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rishabh3112/lox-in-rust [INFO] finished tweaking git repo https://github.com/rishabh3112/lox-in-rust [INFO] tweaked toml for git repo https://github.com/rishabh3112/lox-in-rust written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rishabh3112/lox-in-rust on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rishabh3112/lox-in-rust 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 33d278b377fc62649ae2199132c712ef9fb2246d591128b494d99bc6b6840484 [INFO] running `Command { std: "docker" "start" "-a" "33d278b377fc62649ae2199132c712ef9fb2246d591128b494d99bc6b6840484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "33d278b377fc62649ae2199132c712ef9fb2246d591128b494d99bc6b6840484", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "33d278b377fc62649ae2199132c712ef9fb2246d591128b494d99bc6b6840484", kill_on_drop: false }` [INFO] [stdout] 33d278b377fc62649ae2199132c712ef9fb2246d591128b494d99bc6b6840484 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 81d0cebbf76498c312c915622fd5ecab83031976c685f606145e75310d538123 [INFO] running `Command { std: "docker" "start" "-a" "81d0cebbf76498c312c915622fd5ecab83031976c685f606145e75310d538123", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.12 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Checking bytes v1.7.1 [INFO] [stderr] Checking unicode-segmentation v1.12.0 [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking lox-interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0063]: missing field `locals` in initializer of `visitor::Interpreter` [INFO] [stdout] --> src/interpreter/callable.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 100 | let mut child_interpreter = Interpreter { [INFO] [stdout] | ^^^^^^^^^^^ missing `locals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `insert` exists for struct `HashMap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/interpreter/visitor.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | self.locals.insert(expr.clone(), index); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/nodes/expr.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Expr { [INFO] [stdout] | ------------- doesn't satisfy `expr::Expr: Eq` or `expr::Expr: Hash` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `expr::Expr: Eq` [INFO] [stdout] `expr::Expr: Hash` [INFO] [stdout] help: consider annotating `expr::Expr` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] --> src/ast/nodes/expr.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 9 | pub enum Expr { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0063]: missing field `locals` in initializer of `visitor::Interpreter` [INFO] [stdout] --> src/interpreter/callable.rs:100:37 [INFO] [stdout] | [INFO] [stdout] 100 | let mut child_interpreter = Interpreter { [INFO] [stdout] | ^^^^^^^^^^^ missing `locals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `self.interpreter` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/interpreter/resolver.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | self.interpreter [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 61 | fn resolve_local(&mut self, expr: &Expr, token: &Token) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `insert` exists for struct `HashMap`, but its trait bounds were not satisfied [INFO] [stdout] --> src/interpreter/visitor.rs:77:21 [INFO] [stdout] | [INFO] [stdout] 77 | self.locals.insert(expr.clone(), index); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/ast/nodes/expr.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Expr { [INFO] [stdout] | ------------- doesn't satisfy `expr::Expr: Eq` or `expr::Expr: Hash` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `expr::Expr: Eq` [INFO] [stdout] `expr::Expr: Hash` [INFO] [stdout] help: consider annotating `expr::Expr` with `#[derive(Eq, Hash, PartialEq)]` [INFO] [stdout] --> src/ast/nodes/expr.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 + #[derive(Eq, Hash, PartialEq)] [INFO] [stdout] 9 | pub enum Expr { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lox-interpreter` (bin "lox-interpreter" test) due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0596]: cannot borrow `self.interpreter` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/interpreter/resolver.rs:64:17 [INFO] [stdout] | [INFO] [stdout] 64 | self.interpreter [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `self` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be a mutable reference [INFO] [stdout] | [INFO] [stdout] 61 | fn resolve_local(&mut self, expr: &Expr, token: &Token) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0063, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0063`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lox-interpreter` (bin "lox-interpreter") due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "81d0cebbf76498c312c915622fd5ecab83031976c685f606145e75310d538123", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "81d0cebbf76498c312c915622fd5ecab83031976c685f606145e75310d538123", kill_on_drop: false }` [INFO] [stdout] 81d0cebbf76498c312c915622fd5ecab83031976c685f606145e75310d538123