[INFO] cloning repository https://github.com/mrsekut/WritingAnInterpreterInRust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mrsekut/WritingAnInterpreterInRust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrsekut%2FWritingAnInterpreterInRust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrsekut%2FWritingAnInterpreterInRust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 47e33ce0c7bf8e097416023bee7b640f9dae80ea [INFO] checking mrsekut/WritingAnInterpreterInRust against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmrsekut%2FWritingAnInterpreterInRust" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mrsekut/WritingAnInterpreterInRust on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mrsekut/WritingAnInterpreterInRust [INFO] finished tweaking git repo https://github.com/mrsekut/WritingAnInterpreterInRust [INFO] tweaked toml for git repo https://github.com/mrsekut/WritingAnInterpreterInRust written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/mrsekut/WritingAnInterpreterInRust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2b1858ddac5580ebdcc66c26aff0c18c0b69602090e9aa849cb7115413da3350 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "2b1858ddac5580ebdcc66c26aff0c18c0b69602090e9aa849cb7115413da3350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2b1858ddac5580ebdcc66c26aff0c18c0b69602090e9aa849cb7115413da3350", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b1858ddac5580ebdcc66c26aff0c18c0b69602090e9aa849cb7115413da3350", kill_on_drop: false }` [INFO] [stdout] 2b1858ddac5580ebdcc66c26aff0c18c0b69602090e9aa849cb7115413da3350 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cc3567c62b39f6d194ec47c09dad82251662d1b67dabb7dc6e1e2d2da751a714 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "cc3567c62b39f6d194ec47c09dad82251662d1b67dabb7dc6e1e2d2da751a714", kill_on_drop: false }` [INFO] [stderr] Checking monkey v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/lexer/lexer.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | match &*self.ch { [INFO] [stdout] | ^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `&_` not covered [INFO] [stdout] --> src/lexer/lexer.rs:44:15 [INFO] [stdout] | [INFO] [stdout] 44 | match &*self.ch { [INFO] [stdout] | ^^^^^^^^^ pattern `&_` not covered [INFO] [stdout] | [INFO] [stdout] = help: ensure that all possible cases are being handled, possibly by adding wildcards or more match arms [INFO] [stdout] = note: the matched value is of type `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token_type` [INFO] [stdout] --> src/lexer/lexer.rs:91:14 [INFO] [stdout] | [INFO] [stdout] 91 | for (token_type, literal) in expects { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_token_type` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:45:49 [INFO] [stdout] | [INFO] [stdout] 45 | "=" => new_token(TokenType::ASSIGN, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:46:52 [INFO] [stdout] | [INFO] [stdout] 46 | ";" => new_token(TokenType::SEMICOLON, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | "(" => new_token(TokenType::LPAREN, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:48:49 [INFO] [stdout] | [INFO] [stdout] 48 | ")" => new_token(TokenType::RPAREN, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:49:48 [INFO] [stdout] | [INFO] [stdout] 49 | "," => new_token(TokenType::COMMA, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:50:47 [INFO] [stdout] | [INFO] [stdout] 50 | "+" => new_token(TokenType::PLUS, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:51:49 [INFO] [stdout] | [INFO] [stdout] 51 | "{" => new_token(TokenType::LBRACE, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:52:49 [INFO] [stdout] | [INFO] [stdout] 52 | "}" => new_token(TokenType::RBRACE, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: assign to part of possibly-uninitialized variable: `token` [INFO] [stdout] --> src/lexer/lexer.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | token.Type = TokenType::EOF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 10 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0381, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:45:49 [INFO] [stdout] | [INFO] [stdout] 45 | "=" => new_token(TokenType::ASSIGN, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:46:52 [INFO] [stdout] | [INFO] [stdout] 46 | ";" => new_token(TokenType::SEMICOLON, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:47:49 [INFO] [stdout] | [INFO] [stdout] 47 | "(" => new_token(TokenType::LPAREN, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:48:49 [INFO] [stdout] | [INFO] [stdout] 48 | ")" => new_token(TokenType::RPAREN, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:49:48 [INFO] [stdout] | [INFO] [stdout] 49 | "," => new_token(TokenType::COMMA, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:50:47 [INFO] [stdout] | [INFO] [stdout] 50 | "+" => new_token(TokenType::PLUS, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:51:49 [INFO] [stdout] | [INFO] [stdout] 51 | "{" => new_token(TokenType::LBRACE, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.ch` which is behind a shared reference [INFO] [stdout] --> src/lexer/lexer.rs:52:49 [INFO] [stdout] | [INFO] [stdout] 52 | "}" => new_token(TokenType::RBRACE, self.ch), [INFO] [stdout] | ^^^^^^^ move occurs because `self.ch` has type `String`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0381]: assign to part of possibly-uninitialized variable: `token` [INFO] [stdout] --> src/lexer/lexer.rs:54:17 [INFO] [stdout] | [INFO] [stdout] 54 | token.Type = TokenType::EOF; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ use of possibly-uninitialized `token` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `monkey` [INFO] [stdout] error: aborting due to 10 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0004, E0381, E0507. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "cc3567c62b39f6d194ec47c09dad82251662d1b67dabb7dc6e1e2d2da751a714", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cc3567c62b39f6d194ec47c09dad82251662d1b67dabb7dc6e1e2d2da751a714", kill_on_drop: false }` [INFO] [stdout] cc3567c62b39f6d194ec47c09dad82251662d1b67dabb7dc6e1e2d2da751a714