[INFO] cloning repository https://github.com/strangelovephd/rusty_interpreter [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/strangelovephd/rusty_interpreter" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrangelovephd%2Frusty_interpreter", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrangelovephd%2Frusty_interpreter'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 422e6cf00cb9681f0b308a4a7c977f7d1bd733e2 [INFO] checking strangelovephd/rusty_interpreter against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstrangelovephd%2Frusty_interpreter" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/strangelovephd/rusty_interpreter [INFO] finished tweaking git repo https://github.com/strangelovephd/rusty_interpreter [INFO] tweaked toml for git repo https://github.com/strangelovephd/rusty_interpreter written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/strangelovephd/rusty_interpreter on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/strangelovephd/rusty_interpreter 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d6af561f4b5707a1b0be8fcbb24cd165f6e504a383a1bdb9cde0b39b6994bb1b [INFO] running `Command { std: "docker" "start" "-a" "d6af561f4b5707a1b0be8fcbb24cd165f6e504a383a1bdb9cde0b39b6994bb1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d6af561f4b5707a1b0be8fcbb24cd165f6e504a383a1bdb9cde0b39b6994bb1b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d6af561f4b5707a1b0be8fcbb24cd165f6e504a383a1bdb9cde0b39b6994bb1b", kill_on_drop: false }` [INFO] [stdout] d6af561f4b5707a1b0be8fcbb24cd165f6e504a383a1bdb9cde0b39b6994bb1b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0108e096891a3c199e6280954d16657858d03d1db7adc537de6c20318b0ed4d9 [INFO] running `Command { std: "docker" "start" "-a" "0108e096891a3c199e6280954d16657858d03d1db7adc537de6c20318b0ed4d9", kill_on_drop: false }` [INFO] [stderr] Checking lazy_static v1.2.0 [INFO] [stderr] Checking rusty_interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `tests` [INFO] [stdout] --> src/token.rs:140:13 [INFO] [stdout] | [INFO] [stdout] 140 | let tests: Vec<&str> = vec![ [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_tests` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LexerError` is never constructed [INFO] [stdout] --> src/token.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LexerError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `IllegalIdent` is never constructed [INFO] [stdout] --> src/token.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 14 | Illegal(String), [INFO] [stdout] 15 | IllegalIdent(String), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ILLEGAL` is never used [INFO] [stdout] --> src/token.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | pub const ILLEGAL: &str = "ILLEGAL"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EOF` is never used [INFO] [stdout] --> src/token.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | pub const EOF: &str = "EOF"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENT` is never used [INFO] [stdout] --> src/token.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | pub const IDENT: &str = "IDENT"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INT` is never used [INFO] [stdout] --> src/token.rs:114:15 [INFO] [stdout] | [INFO] [stdout] 114 | pub const INT: &str = "INT"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSIGN` is never used [INFO] [stdout] --> src/token.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 117 | pub const ASSIGN: &str = "="; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLUS` is never used [INFO] [stdout] --> src/token.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | pub const PLUS: &str = "+"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMMA` is never used [INFO] [stdout] --> src/token.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 121 | pub const COMMA: &str = ","; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEMICOLON` is never used [INFO] [stdout] --> src/token.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | pub const SEMICOLON: &str = ";"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LPAREN` is never used [INFO] [stdout] --> src/token.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | pub const LPAREN: &str = "("; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RPAREN` is never used [INFO] [stdout] --> src/token.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | pub const RPAREN: &str = ")"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LBRACE` is never used [INFO] [stdout] --> src/token.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | pub const LBRACE: &str = "{"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RBRACE` is never used [INFO] [stdout] --> src/token.rs:128:15 [INFO] [stdout] | [INFO] [stdout] 128 | pub const RBRACE: &str = "}"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FUNCTION` is never used [INFO] [stdout] --> src/token.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | pub const FUNCTION: &str = "FUNCTION"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LET` is never used [INFO] [stdout] --> src/token.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | pub const LET: &str = "LET"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `is_letter` is never used [INFO] [stdout] --> src/lexer.rs:104:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl Lexer { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] ... [INFO] [stdout] 104 | fn is_letter(ch: &u8) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LexerError` is never constructed [INFO] [stdout] --> src/token.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub struct LexerError { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenType` is never used [INFO] [stdout] --> src/token.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | pub enum TokenType { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `look_up_token` is never used [INFO] [stdout] --> src/token.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn look_up_token(tok: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/token.rs:72:12 [INFO] [stdout] | [INFO] [stdout] 72 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/token.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl Token { [INFO] [stdout] | ---------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(tt: TokenType, lit: String) -> Token { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Keyword` is never used [INFO] [stdout] --> src/token.rs:87:10 [INFO] [stdout] | [INFO] [stdout] 87 | pub enum Keyword { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `look_up_keyword` is never used [INFO] [stdout] --> src/token.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn look_up_keyword(kw: &str) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ILLEGAL` is never used [INFO] [stdout] --> src/token.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | pub const ILLEGAL: &str = "ILLEGAL"; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EOF` is never used [INFO] [stdout] --> src/token.rs:110:15 [INFO] [stdout] | [INFO] [stdout] 110 | pub const EOF: &str = "EOF"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `IDENT` is never used [INFO] [stdout] --> src/token.rs:113:15 [INFO] [stdout] | [INFO] [stdout] 113 | pub const IDENT: &str = "IDENT"; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `INT` is never used [INFO] [stdout] --> src/token.rs:114:15 [INFO] [stdout] | [INFO] [stdout] 114 | pub const INT: &str = "INT"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `ASSIGN` is never used [INFO] [stdout] --> src/token.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 117 | pub const ASSIGN: &str = "="; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `PLUS` is never used [INFO] [stdout] --> src/token.rs:118:15 [INFO] [stdout] | [INFO] [stdout] 118 | pub const PLUS: &str = "+"; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `COMMA` is never used [INFO] [stdout] --> src/token.rs:121:15 [INFO] [stdout] | [INFO] [stdout] 121 | pub const COMMA: &str = ","; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `SEMICOLON` is never used [INFO] [stdout] --> src/token.rs:122:15 [INFO] [stdout] | [INFO] [stdout] 122 | pub const SEMICOLON: &str = ";"; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LPAREN` is never used [INFO] [stdout] --> src/token.rs:125:15 [INFO] [stdout] | [INFO] [stdout] 125 | pub const LPAREN: &str = "("; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RPAREN` is never used [INFO] [stdout] --> src/token.rs:126:15 [INFO] [stdout] | [INFO] [stdout] 126 | pub const RPAREN: &str = ")"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LBRACE` is never used [INFO] [stdout] --> src/token.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | pub const LBRACE: &str = "{"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `RBRACE` is never used [INFO] [stdout] --> src/token.rs:128:15 [INFO] [stdout] | [INFO] [stdout] 128 | pub const RBRACE: &str = "}"; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `FUNCTION` is never used [INFO] [stdout] --> src/token.rs:131:15 [INFO] [stdout] | [INFO] [stdout] 131 | pub const FUNCTION: &str = "FUNCTION"; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `LET` is never used [INFO] [stdout] --> src/token.rs:132:15 [INFO] [stdout] | [INFO] [stdout] 132 | pub const LET: &str = "LET"; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated items are never used [INFO] [stdout] --> src/lexer.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 12 | impl Lexer { [INFO] [stdout] | ---------- associated items in this implementation [INFO] [stdout] 13 | pub fn new(i: Vec) -> Lexer { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | fn read_char(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn next_token(&mut self) -> TokenType { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 104 | fn is_letter(ch: &u8) -> bool { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 109 | fn is_char(ch: &char) -> bool { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 113 | fn read_identifier(&mut self) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | fn skip_whitespace(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 131 | fn read_number(&mut self) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 146 | fn is_digit(byte: &char) -> bool { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.88s [INFO] running `Command { std: "docker" "inspect" "0108e096891a3c199e6280954d16657858d03d1db7adc537de6c20318b0ed4d9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0108e096891a3c199e6280954d16657858d03d1db7adc537de6c20318b0ed4d9", kill_on_drop: false }` [INFO] [stdout] 0108e096891a3c199e6280954d16657858d03d1db7adc537de6c20318b0ed4d9