[INFO] cloning repository https://github.com/var-che/loklang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/var-che/loklang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvar-che%2Floklang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvar-che%2Floklang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3e11c5aad93ae256cc93cd818dae6d931aa735c2 [INFO] checking var-che/loklang against try#dd2d87b6cc31907ae305875eb6be399783dc0256 for pr-143929 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fvar-che%2Floklang" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/var-che/loklang [INFO] finished tweaking git repo https://github.com/var-che/loklang [INFO] tweaked toml for git repo https://github.com/var-che/loklang written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/var-che/loklang on toolchain dd2d87b6cc31907ae305875eb6be399783dc0256 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/var-che/loklang 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" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 431c790acde2cc193535a5cf7c413334afd58f096d5311e755453e7884fd870e [INFO] running `Command { std: "docker" "start" "-a" "431c790acde2cc193535a5cf7c413334afd58f096d5311e755453e7884fd870e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "431c790acde2cc193535a5cf7c413334afd58f096d5311e755453e7884fd870e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "431c790acde2cc193535a5cf7c413334afd58f096d5311e755453e7884fd870e", kill_on_drop: false }` [INFO] [stdout] 431c790acde2cc193535a5cf7c413334afd58f096d5311e755453e7884fd870e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:e8955075918b6d00525c617f7c34ee2595c70db70b3cf844dc875e4d3604499b" "/opt/rustwide/cargo-home/bin/cargo" "+dd2d87b6cc31907ae305875eb6be399783dc0256" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5fa97409f9fa2469668180033ed7bfdb7f8287c1f3b3ab4c099170e1c6858fdd [INFO] running `Command { std: "docker" "start" "-a" "5fa97409f9fa2469668180033ed7bfdb7f8287c1f3b3ab4c099170e1c6858fdd", kill_on_drop: false }` [INFO] [stderr] Checking loklang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition: `match_tokens` [INFO] [stdout] --> src/parser.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | macro_rules! match_tokens { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `match_tokens` [INFO] [stdout] --> src/parser.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | macro_rules! match_tokens { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `StringLit` found for enum `scanner::TokenType` in the current scope [INFO] [stdout] --> src/expr.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | TokenType::StringLit => Self::StringValue(unwrap_as_string(token.literal)), [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `scanner::TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/scanner.rs:267:1 [INFO] [stdout] | [INFO] [stdout] 267 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `StringLit` not found for this enum [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 37 - TokenType::StringLit => Self::StringValue(unwrap_as_string(token.literal)), [INFO] [stdout] 37 + TokenType::String => Self::StringValue(unwrap_as_string(token.literal)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `StringLit` found for enum `TokenType` in the current scope [INFO] [stdout] --> src/expr.rs:37:24 [INFO] [stdout] | [INFO] [stdout] 37 | TokenType::StringLit => Self::StringValue(unwrap_as_string(token.literal)), [INFO] [stdout] | ^^^^^^^^^ variant or associated item not found in `TokenType` [INFO] [stdout] | [INFO] [stdout] ::: src/scanner.rs:267:1 [INFO] [stdout] | [INFO] [stdout] 267 | pub enum TokenType { [INFO] [stdout] | ------------------ variant or associated item `StringLit` not found for this enum [INFO] [stdout] | [INFO] [stdout] help: there is a variant with a similar name [INFO] [stdout] | [INFO] [stdout] 37 - TokenType::StringLit => Self::StringValue(unwrap_as_string(token.literal)), [INFO] [stdout] 37 + TokenType::String => Self::StringValue(unwrap_as_string(token.literal)), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:123:27 [INFO] [stdout] | [INFO] [stdout] 123 | operator: minus_token, [INFO] [stdout] | ^^^^^^^^^^^ expected `&Token`, found `Token` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 123 | operator: &minus_token, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:110:49 [INFO] [stdout] | [INFO] [stdout] 110 | value: LiteralValue::from_token(token), [INFO] [stdout] | ------------------------ ^^^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/expr.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn from_token(token: Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^ ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 110 | value: LiteralValue::from_token(token.clone()), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/expr.rs:126:23 [INFO] [stdout] | [INFO] [stdout] 126 | operator: multi, [INFO] [stdout] | ^^^^^ expected `&Token`, found `Token` [INFO] [stdout] | [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 126 | operator: &multi, [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:110:49 [INFO] [stdout] | [INFO] [stdout] 110 | value: LiteralValue::from_token(token), [INFO] [stdout] | ------------------------ ^^^^^ expected `Token`, found `&Token` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/expr.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | pub fn from_token(token: Token) -> Self { [INFO] [stdout] | ^^^^^^^^^^ ------------ [INFO] [stdout] help: consider using clone here [INFO] [stdout] | [INFO] [stdout] 110 | value: LiteralValue::from_token(token.clone()), [INFO] [stdout] | ++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/parser.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 31 | fn equality(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 32 | let mut expr = self.comparison(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 33 | [INFO] [stdout] 34 | while self.match_tokens(&[BangEqual, EqualEqual]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | expr [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:35:23 [INFO] [stdout] | [INFO] [stdout] 31 | fn equality(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 32 | let mut expr = self.comparison(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | let rhs = self.comparison(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 31 | fn equality(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 32 | let mut expr = self.comparison(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 36 | let operator = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | expr [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:48:15 [INFO] [stdout] | [INFO] [stdout] 45 | fn comparison(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 46 | let mut expr = self.term(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 47 | [INFO] [stdout] 48 | while self.match_tokens(&[Greater, GreaterEqual, Less, LessEqual]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 45 | fn comparison(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 46 | let mut expr = self.term(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 49 | let op = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | expr [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:50:23 [INFO] [stdout] | [INFO] [stdout] 45 | fn comparison(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 46 | let mut expr = self.term(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 50 | let rhs = self.term(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | expr [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:63:15 [INFO] [stdout] | [INFO] [stdout] 60 | fn term(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 61 | let mut expr = self.factor(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 62 | [INFO] [stdout] 63 | while self.match_tokens(&[Minus, Plus]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 72 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 60 | fn term(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 61 | let mut expr = self.factor(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 64 | let op = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 72 | expr [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:65:23 [INFO] [stdout] | [INFO] [stdout] 60 | fn term(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 61 | let mut expr = self.factor(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 65 | let rhs = self.factor(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 72 | expr [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:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | fn factor(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 75 | let mut expr = self.unary(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 76 | while self.match_tokens(&[Slash, Star]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 85 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 74 | fn factor(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 75 | let mut expr = self.unary(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 76 | while self.match_tokens(&[Slash, Star]) { [INFO] [stdout] 77 | let op = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 85 | expr [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:78:23 [INFO] [stdout] | [INFO] [stdout] 74 | fn factor(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 75 | let mut expr = self.unary(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 78 | let rhs = self.unary(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 85 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/parser.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut expr = self.unary(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/parser.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | fn unary(&mut self) -> Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 88 | let mut expr = self.unary(); [INFO] [stdout] | ------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut expr = self.unary(); [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] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/parser.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 87 | fn unary(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 90 | let op = self.previous(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 91 | let rhs = self.unary(); [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 92 | / Unary { [INFO] [stdout] 93 | | operator: op, [INFO] [stdout] 94 | | right: Box::from(rhs), [INFO] [stdout] 95 | | } [INFO] [stdout] | |_____________- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/parser.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | self.advance(); [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] 122 | fn match_token(&mut self, typ: &TokenType) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typs` [INFO] [stdout] --> src/parser.rs:134:32 [INFO] [stdout] | [INFO] [stdout] 134 | fn match_tokens(&mut self, typs: &[TokenType]) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_typs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/parser.rs:34:15 [INFO] [stdout] | [INFO] [stdout] 31 | fn equality(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 32 | let mut expr = self.comparison(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 33 | [INFO] [stdout] 34 | while self.match_tokens(&[BangEqual, EqualEqual]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/parser.rs:35:23 [INFO] [stdout] | [INFO] [stdout] 31 | fn equality(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 32 | let mut expr = self.comparison(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 35 | let rhs = self.comparison(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:36:28 [INFO] [stdout] | [INFO] [stdout] 31 | fn equality(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 32 | let mut expr = self.comparison(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 36 | let operator = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 43 | expr [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:48:15 [INFO] [stdout] | [INFO] [stdout] 45 | fn comparison(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 46 | let mut expr = self.term(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 47 | [INFO] [stdout] 48 | while self.match_tokens(&[Greater, GreaterEqual, Less, LessEqual]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:49:22 [INFO] [stdout] | [INFO] [stdout] 45 | fn comparison(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 46 | let mut expr = self.term(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 49 | let op = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | expr [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:50:23 [INFO] [stdout] | [INFO] [stdout] 45 | fn comparison(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 46 | let mut expr = self.term(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 50 | let rhs = self.term(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 58 | expr [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:63:15 [INFO] [stdout] | [INFO] [stdout] 60 | fn term(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 61 | let mut expr = self.factor(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 62 | [INFO] [stdout] 63 | while self.match_tokens(&[Minus, Plus]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 72 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:64:22 [INFO] [stdout] | [INFO] [stdout] 60 | fn term(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 61 | let mut expr = self.factor(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 64 | let op = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 72 | expr [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:65:23 [INFO] [stdout] | [INFO] [stdout] 60 | fn term(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 61 | let mut expr = self.factor(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 65 | let rhs = self.factor(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 72 | expr [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:76:15 [INFO] [stdout] | [INFO] [stdout] 74 | fn factor(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 75 | let mut expr = self.unary(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] 76 | while self.match_tokens(&[Slash, Star]) { [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 85 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*self` as immutable because it is also borrowed as mutable [INFO] [stdout] --> src/parser.rs:77:22 [INFO] [stdout] | [INFO] [stdout] 74 | fn factor(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 75 | let mut expr = self.unary(); [INFO] [stdout] | ---- mutable borrow occurs here [INFO] [stdout] 76 | while self.match_tokens(&[Slash, Star]) { [INFO] [stdout] 77 | let op = self.previous(); [INFO] [stdout] | ^^^^ immutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 85 | expr [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:78:23 [INFO] [stdout] | [INFO] [stdout] 74 | fn factor(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 75 | let mut expr = self.unary(); [INFO] [stdout] | ---- first mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 78 | let rhs = self.unary(); [INFO] [stdout] | ^^^^ second mutable borrow occurs here [INFO] [stdout] ... [INFO] [stdout] 85 | expr [INFO] [stdout] | ---- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/parser.rs:88:17 [INFO] [stdout] | [INFO] [stdout] 88 | let mut expr = self.unary(); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function cannot return without recursing [INFO] [stdout] --> src/parser.rs:87:5 [INFO] [stdout] | [INFO] [stdout] 87 | fn unary(&mut self) -> Expr { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot return without recursing [INFO] [stdout] 88 | let mut expr = self.unary(); [INFO] [stdout] | ------------ recursive call site [INFO] [stdout] | [INFO] [stdout] = help: a `loop` may express intention better if this is on purpose [INFO] [stdout] = note: `#[warn(unconditional_recursion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:88:13 [INFO] [stdout] | [INFO] [stdout] 88 | let mut expr = self.unary(); [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] error[E0502]: cannot borrow `*self` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/parser.rs:91:23 [INFO] [stdout] | [INFO] [stdout] 87 | fn unary(&mut self) -> Expr { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] ... [INFO] [stdout] 90 | let op = self.previous(); [INFO] [stdout] | ---- immutable borrow occurs here [INFO] [stdout] 91 | let rhs = self.unary(); [INFO] [stdout] | ^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 92 | / Unary { [INFO] [stdout] 93 | | operator: op, [INFO] [stdout] 94 | | right: Box::from(rhs), [INFO] [stdout] 95 | | } [INFO] [stdout] | |_____________- returning this value requires that `*self` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/parser.rs:127:17 [INFO] [stdout] | [INFO] [stdout] 127 | self.advance(); [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] 122 | fn match_token(&mut self, typ: &TokenType) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `typs` [INFO] [stdout] --> src/parser.rs:134:32 [INFO] [stdout] | [INFO] [stdout] 134 | fn match_tokens(&mut self, typs: &[TokenType]) -> bool { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_typs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:71:21 [INFO] [stdout] | [INFO] [stdout] 71 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:85:21 [INFO] [stdout] | [INFO] [stdout] 85 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/scanner.rs:92:21 [INFO] [stdout] | [INFO] [stdout] 92 | let token = if self.char_match('=') { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0499, E0502, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loklang` (bin "loklang") due to 16 previous errors; 9 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0308, E0499, E0502, E0596, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `loklang` (bin "loklang" test) due to 18 previous errors; 9 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5fa97409f9fa2469668180033ed7bfdb7f8287c1f3b3ab4c099170e1c6858fdd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5fa97409f9fa2469668180033ed7bfdb7f8287c1f3b3ab4c099170e1c6858fdd", kill_on_drop: false }` [INFO] [stdout] 5fa97409f9fa2469668180033ed7bfdb7f8287c1f3b3ab4c099170e1c6858fdd