[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] building rishabh3112/lox-in-rust against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh3112%2Flox-in-rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-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-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rishabh3112/lox-in-rust on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e739dede6521c5450668226f207ffabc1fb5ee775e4d4d8029c0fe3f6d2b2fa2 [INFO] running `Command { std: "docker" "start" "-a" "e739dede6521c5450668226f207ffabc1fb5ee775e4d4d8029c0fe3f6d2b2fa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e739dede6521c5450668226f207ffabc1fb5ee775e4d4d8029c0fe3f6d2b2fa2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e739dede6521c5450668226f207ffabc1fb5ee775e4d4d8029c0fe3f6d2b2fa2", kill_on_drop: false }` [INFO] [stdout] e739dede6521c5450668226f207ffabc1fb5ee775e4d4d8029c0fe3f6d2b2fa2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0be1c5f889dee5213ef129d607478e449c0505b446d9f508c93bd0acdbf0d4a1 [INFO] running `Command { std: "docker" "start" "-a" "0be1c5f889dee5213ef129d607478e449c0505b446d9f508c93bd0acdbf0d4a1", kill_on_drop: false }` [INFO] [stderr] Compiling quote v1.0.36 [INFO] [stderr] Compiling thiserror v1.0.63 [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Compiling 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[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" "0be1c5f889dee5213ef129d607478e449c0505b446d9f508c93bd0acdbf0d4a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0be1c5f889dee5213ef129d607478e449c0505b446d9f508c93bd0acdbf0d4a1", kill_on_drop: false }` [INFO] [stdout] 0be1c5f889dee5213ef129d607478e449c0505b446d9f508c93bd0acdbf0d4a1