[INFO] cloning repository https://github.com/vrmaurice/yron-lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/vrmaurice/yron-lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvrmaurice%2Fyron-lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvrmaurice%2Fyron-lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c8896fb693871ad1bb1cb9d20d220ecbe11d9bdf [INFO] testing vrmaurice/yron-lang against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvrmaurice%2Fyron-lang" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/vrmaurice/yron-lang [INFO] finished tweaking git repo https://github.com/vrmaurice/yron-lang [INFO] tweaked toml for git repo https://github.com/vrmaurice/yron-lang written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/vrmaurice/yron-lang on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/vrmaurice/yron-lang 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1e34280f385a5c0be91cc13f51ce7b4cee05f7087fa4fd7241778d8ac1ae28fc [INFO] running `Command { std: "docker" "start" "-a" "1e34280f385a5c0be91cc13f51ce7b4cee05f7087fa4fd7241778d8ac1ae28fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1e34280f385a5c0be91cc13f51ce7b4cee05f7087fa4fd7241778d8ac1ae28fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1e34280f385a5c0be91cc13f51ce7b4cee05f7087fa4fd7241778d8ac1ae28fc", kill_on_drop: false }` [INFO] [stdout] 1e34280f385a5c0be91cc13f51ce7b4cee05f7087fa4fd7241778d8ac1ae28fc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8f0c82d6a108126d7daf92688978d67cb6f52f05cfdb12eddd4c41a0f8476aba [INFO] running `Command { std: "docker" "start" "-a" "8f0c82d6a108126d7daf92688978d67cb6f52f05cfdb12eddd4c41a0f8476aba", kill_on_drop: false }` [INFO] [stderr] Compiling yron v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lexer.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | let mut tok = Token::Number(result); [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: unused variable: `value` [INFO] [stdout] --> src/parser.rs:33:30 [INFO] [stdout] | [INFO] [stdout] 33 | if let Token::Number(value) = token { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `current_tok` [INFO] [stdout] --> src/parser.rs:43:17 [INFO] [stdout] | [INFO] [stdout] 43 | let mut current_tok = self.current_token; [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_current_tok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut current_tok = self.current_token; [INFO] [stdout] | ----^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0503]: cannot use `self.current_token` because it was mutably borrowed [INFO] [stdout] --> src/parser.rs:43:31 [INFO] [stdout] | [INFO] [stdout] 41 | fn term(&mut self) -> AstNode { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 42 | let left = self.factor().copy(); [INFO] [stdout] | ---- `*self` is borrowed here [INFO] [stdout] 43 | let mut current_tok = self.current_token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ use of borrowed `*self` [INFO] [stdout] ... [INFO] [stdout] 51 | left [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `self.current_token` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:45:61 [INFO] [stdout] | [INFO] [stdout] 41 | fn term(&mut self) -> AstNode { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 42 | let left = self.factor().copy(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 45 | while vec![Token::Multiply, Token::Divide].contains(&self.current_token) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | left [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self.current_token` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:46:34 [INFO] [stdout] | [INFO] [stdout] 41 | fn term(&mut self) -> AstNode { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 42 | let left = self.factor().copy(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 46 | let operator_token = self.current_token.clone(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | left [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/parser.rs:47:25 [INFO] [stdout] | [INFO] [stdout] 41 | fn term(&mut self) -> AstNode { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 42 | let left = self.factor().copy(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 47 | let right = self.factor(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 51 | left [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0384]: cannot assign twice to immutable variable `left` [INFO] [stdout] --> src/parser.rs:48:13 [INFO] [stdout] | [INFO] [stdout] 42 | let left = self.factor().copy(); [INFO] [stdout] | ---- first assignment to `left` [INFO] [stdout] ... [INFO] [stdout] 48 | left = AstNode::BinaryOperationNode(&left.copy(), operator_token, &right.copy()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot assign twice to immutable variable [INFO] [stdout] | [INFO] [stdout] help: consider making this binding mutable [INFO] [stdout] | [INFO] [stdout] 42 | let mut left = self.factor().copy(); [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/parser.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 48 | left = AstNode::BinaryOperationNode(&left.copy(), operator_token, &right.copy()); [INFO] [stdout] | ------------ temporary value created here [INFO] [stdout] ... [INFO] [stdout] 51 | left [INFO] [stdout] | ^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> src/parser.rs:51:9 [INFO] [stdout] | [INFO] [stdout] 48 | left = AstNode::BinaryOperationNode(&left.copy(), operator_token, &right.copy()); [INFO] [stdout] | ----------- temporary value created here [INFO] [stdout] ... [INFO] [stdout] 51 | left [INFO] [stdout] | ^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0384, E0499, E0502, E0503, E0515. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0384`. [INFO] [stdout] [INFO] [stderr] error: could not compile `yron` (bin "yron") due to 7 previous errors; 4 warnings emitted [INFO] running `Command { std: "docker" "inspect" "8f0c82d6a108126d7daf92688978d67cb6f52f05cfdb12eddd4c41a0f8476aba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f0c82d6a108126d7daf92688978d67cb6f52f05cfdb12eddd4c41a0f8476aba", kill_on_drop: false }` [INFO] [stdout] 8f0c82d6a108126d7daf92688978d67cb6f52f05cfdb12eddd4c41a0f8476aba