[INFO] cloning repository https://github.com/jimoh-sodiq/crafting-interpreters [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jimoh-sodiq/crafting-interpreters" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjimoh-sodiq%2Fcrafting-interpreters", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjimoh-sodiq%2Fcrafting-interpreters'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 576752eb6041fcce78d625718e8238724296bccd [INFO] checking jimoh-sodiq/crafting-interpreters against master#75530e9f72a1990ed2305e16fd51d02f47048f12 for pr-135899 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjimoh-sodiq%2Fcrafting-interpreters" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jimoh-sodiq/crafting-interpreters on toolchain 75530e9f72a1990ed2305e16fd51d02f47048f12 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jimoh-sodiq/crafting-interpreters [INFO] finished tweaking git repo https://github.com/jimoh-sodiq/crafting-interpreters [INFO] tweaked toml for git repo https://github.com/jimoh-sodiq/crafting-interpreters written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/jimoh-sodiq/crafting-interpreters 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" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "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-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6475c868a6d27846ca172efb246699580b64b57a5b3744ef73949e850a31b38a" "/opt/rustwide/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b29396bfc1fc877f08c840c85b605e63255bd43968f24ee54eb56770c110445c [INFO] running `Command { std: "docker" "start" "-a" "b29396bfc1fc877f08c840c85b605e63255bd43968f24ee54eb56770c110445c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b29396bfc1fc877f08c840c85b605e63255bd43968f24ee54eb56770c110445c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b29396bfc1fc877f08c840c85b605e63255bd43968f24ee54eb56770c110445c", kill_on_drop: false }` [INFO] [stdout] b29396bfc1fc877f08c840c85b605e63255bd43968f24ee54eb56770c110445c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:6475c868a6d27846ca172efb246699580b64b57a5b3744ef73949e850a31b38a" "/opt/rustwide/cargo-home/bin/cargo" "+75530e9f72a1990ed2305e16fd51d02f47048f12" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8efb033a3e550e992ea2855d01c593d9596d9a80bea6d127ba9277da7a7cb115 [INFO] running `Command { std: "docker" "start" "-a" "8efb033a3e550e992ea2855d01c593d9596d9a80bea6d127ba9277da7a7cb115", kill_on_drop: false }` [INFO] [stderr] Checking crafting-interpreters v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::write` [INFO] [stdout] --> src/bin/generate-ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::write` [INFO] [stdout] --> src/bin/generate-ast.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/parser.rs:23:28 [INFO] [stdout] | [INFO] [stdout] 23 | let operator = *self.previous(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `token::Token`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the dereference here [INFO] [stdout] | [INFO] [stdout] 23 - let operator = *self.previous(); [INFO] [stdout] 23 + let operator = self.previous(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/parser.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 119 | value: self.previous().literal [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `Option`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/parser.rs:135:45 [INFO] [stdout] | [INFO] [stdout] 135 | fn consume(&mut self, ttype: TokenType, message: String) -> Result<&Token, LoxError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/parser.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | 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] 142 | fn is_match(&mut self, token_types: Vec) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crafting-interpreters` (bin "crafting-interpreters" test) due to 7 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:47:17 [INFO] [stdout] | [INFO] [stdout] 47 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:62:17 [INFO] [stdout] | [INFO] [stdout] 62 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:77:17 [INFO] [stdout] | [INFO] [stdout] 77 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/parser.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | operator, [INFO] [stdout] | ^^^^^^^^ expected `Token`, found `&Token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/parser.rs:23:28 [INFO] [stdout] | [INFO] [stdout] 23 | let operator = *self.previous(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ move occurs because value has type `token::Token`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] help: consider removing the dereference here [INFO] [stdout] | [INFO] [stdout] 23 - let operator = *self.previous(); [INFO] [stdout] 23 + let operator = self.previous(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of a shared reference [INFO] [stdout] --> src/parser.rs:119:24 [INFO] [stdout] | [INFO] [stdout] 119 | value: self.previous().literal [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ move occurs because value has type `Option`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `message` [INFO] [stdout] --> src/parser.rs:135:45 [INFO] [stdout] | [INFO] [stdout] 135 | fn consume(&mut self, ttype: TokenType, message: String) -> Result<&Token, LoxError> { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_message` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/parser.rs:145:17 [INFO] [stdout] | [INFO] [stdout] 145 | 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] 142 | fn is_match(&mut self, token_types: Vec) -> bool { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0507, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `crafting-interpreters` (bin "crafting-interpreters") due to 7 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "8efb033a3e550e992ea2855d01c593d9596d9a80bea6d127ba9277da7a7cb115", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8efb033a3e550e992ea2855d01c593d9596d9a80bea6d127ba9277da7a7cb115", kill_on_drop: false }` [INFO] [stdout] 8efb033a3e550e992ea2855d01c593d9596d9a80bea6d127ba9277da7a7cb115