[INFO] cloning repository https://github.com/Jandhi/Hatchet [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Jandhi/Hatchet" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJandhi%2FHatchet", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJandhi%2FHatchet'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ce8c53b7f3f6a0d379e8352cf38ba4ccb2d56a07 [INFO] checking Jandhi/Hatchet/ce8c53b7f3f6a0d379e8352cf38ba4ccb2d56a07 against master#c2f2db79ca3024f68d22b45aa22b570775c2c4ad for pr-124305 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJandhi%2FHatchet" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Jandhi/Hatchet on toolchain c2f2db79ca3024f68d22b45aa22b570775c2c4ad [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Jandhi/Hatchet [INFO] finished tweaking git repo https://github.com/Jandhi/Hatchet [INFO] tweaked toml for git repo https://github.com/Jandhi/Hatchet written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Jandhi/Hatchet 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" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 16a39f6611c5eabb60cc6f63b7f1276d2443078783fc05caff6e64de62ba4f07 [INFO] running `Command { std: "docker" "start" "-a" "16a39f6611c5eabb60cc6f63b7f1276d2443078783fc05caff6e64de62ba4f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "16a39f6611c5eabb60cc6f63b7f1276d2443078783fc05caff6e64de62ba4f07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "16a39f6611c5eabb60cc6f63b7f1276d2443078783fc05caff6e64de62ba4f07", kill_on_drop: false }` [INFO] [stdout] 16a39f6611c5eabb60cc6f63b7f1276d2443078783fc05caff6e64de62ba4f07 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+c2f2db79ca3024f68d22b45aa22b570775c2c4ad" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 72d08e06fd3e4a4c2ba55eecd59446d522f5d66649b525404d0a5a8cd425358d [INFO] running `Command { std: "docker" "start" "-a" "72d08e06fd3e4a4c2ba55eecd59446d522f5d66649b525404d0a5a8cd425358d", kill_on_drop: false }` [INFO] [stderr] Checking hatchet v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `base_functions::load_base_scope` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use base_functions::load_base_scope; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `functions::function::Function` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use functions::function::Function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::string::StringValue` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use types::string::StringValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `base_functions::load_base_scope` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use base_functions::load_base_scope; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `functions::function::Function` [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use functions::function::Function; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `types::string::StringValue` [INFO] [stdout] --> src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use types::string::StringValue; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/value.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | *self [INFO] [stdout] | ^^^^^ move occurs because `*self` has type `Value`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `*self` which is behind a mutable reference [INFO] [stdout] --> src/value.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 31 | *self [INFO] [stdout] | ^^^^^ move occurs because `*self` has type `Value`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_num` [INFO] [stdout] --> src/lexer/lexer.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut line_num = 0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_num` [INFO] [stdout] --> src/lexer/lexer.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | let mut line_num = 0; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `character_num` is assigned to, but never used [INFO] [stdout] --> src/lexer/lexer.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut character_num = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_character_num` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `character_num` is assigned to, but never used [INFO] [stdout] --> src/lexer/lexer.rs:17:13 [INFO] [stdout] | [INFO] [stdout] 17 | let mut character_num = 0; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: consider using `_character_num` instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer/lexer.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut line_num = 0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer/lexer.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let mut line_num = 0; [INFO] [stdout] | ----^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parse.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn parse(mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/parser/parse.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parse.rs:5:39 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn parse(mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `localScope` [INFO] [stdout] --> src/parser/parse.rs:17:74 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_localScope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `globalScope` [INFO] [stdout] --> src/parser/parse.rs:17:95 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_globalScope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `contents` [INFO] [stdout] --> src/parser/parse.rs:17:25 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_contents` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `localScope` [INFO] [stdout] --> src/parser/parse.rs:17:74 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_localScope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `globalScope` [INFO] [stdout] --> src/parser/parse.rs:17:95 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_globalScope` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parse.rs:17:70 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser/parse.rs:17:70 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn parse_identifier(contents : &String, mut tokens : Vec, mut localScope : &Scope, globalScope : &Scope) { [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `**expr` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/block.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 11 | for expr in self.contents[1..].iter() { [INFO] [stdout] | ------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: use mutable method: `iter_mut()` [INFO] [stdout] | this iterator yields `&` references [INFO] [stdout] 12 | value = expr.evaluate(); [INFO] [stdout] | ^^^^ `expr` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `**expr` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/block.rs:12:21 [INFO] [stdout] | [INFO] [stdout] 11 | for expr in self.contents[1..].iter() { [INFO] [stdout] | ------------------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: use mutable method: `iter_mut()` [INFO] [stdout] | this iterator yields `&` references [INFO] [stdout] 12 | value = expr.evaluate(); [INFO] [stdout] | ^^^^ `expr` is a `&` reference, so the data it refers to cannot be borrowed as mutable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0507`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hatchet` (bin "hatchet" test) due to 3 previous errors; 11 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hatchet` (bin "hatchet") due to 3 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "72d08e06fd3e4a4c2ba55eecd59446d522f5d66649b525404d0a5a8cd425358d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72d08e06fd3e4a4c2ba55eecd59446d522f5d66649b525404d0a5a8cd425358d", kill_on_drop: false }` [INFO] [stdout] 72d08e06fd3e4a4c2ba55eecd59446d522f5d66649b525404d0a5a8cd425358d