[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#4987e9d4227139400384ab59296ffee3b0fb1183 for pr-146237-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frishabh3112%2Flox-in-rust" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-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-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rishabh3112/lox-in-rust on toolchain 4987e9d4227139400384ab59296ffee3b0fb1183 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4987e9d4227139400384ab59296ffee3b0fb1183" "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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9d052e17466c938560d72b7da0318a0343c65c703f18e965aa4fc9741a0dcf9e [INFO] running `Command { std: "docker" "start" "-a" "9d052e17466c938560d72b7da0318a0343c65c703f18e965aa4fc9741a0dcf9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9d052e17466c938560d72b7da0318a0343c65c703f18e965aa4fc9741a0dcf9e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9d052e17466c938560d72b7da0318a0343c65c703f18e965aa4fc9741a0dcf9e", kill_on_drop: false }` [INFO] [stdout] 9d052e17466c938560d72b7da0318a0343c65c703f18e965aa4fc9741a0dcf9e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+4987e9d4227139400384ab59296ffee3b0fb1183" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f3c78b00e3501f9651a8751bd396d83f65922c4ee926b3262355d4a44d6a7018 [INFO] running `Command { std: "docker" "start" "-a" "f3c78b00e3501f9651a8751bd396d83f65922c4ee926b3262355d4a44d6a7018", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling bytes v1.7.1 [INFO] [stderr] Compiling 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] Compiling thiserror 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" "f3c78b00e3501f9651a8751bd396d83f65922c4ee926b3262355d4a44d6a7018", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3c78b00e3501f9651a8751bd396d83f65922c4ee926b3262355d4a44d6a7018", kill_on_drop: false }` [INFO] [stdout] f3c78b00e3501f9651a8751bd396d83f65922c4ee926b3262355d4a44d6a7018