[INFO] cloning repository https://github.com/qiaojinxia/StanfordCompilers-priciples [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/qiaojinxia/StanfordCompilers-priciples" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2FStanfordCompilers-priciples", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2FStanfordCompilers-priciples'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6848bb99d35073a3b3e7304f990defbc79916a74 [INFO] checking qiaojinxia/StanfordCompilers-priciples against master#e4106065bf1bb515935d5d024e8d9c86454e2b22 for pr-112160 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fqiaojinxia%2FStanfordCompilers-priciples" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/qiaojinxia/StanfordCompilers-priciples on toolchain e4106065bf1bb515935d5d024e8d9c86454e2b22 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/qiaojinxia/StanfordCompilers-priciples [INFO] finished tweaking git repo https://github.com/qiaojinxia/StanfordCompilers-priciples [INFO] tweaked toml for git repo https://github.com/qiaojinxia/StanfordCompilers-priciples written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/qiaojinxia/StanfordCompilers-priciples 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" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5efde49ee10ff5efc4b316ac28b68e4c441cbf2137105ba8d625d4ea1ea43107 [INFO] running `Command { std: "docker" "start" "-a" "5efde49ee10ff5efc4b316ac28b68e4c441cbf2137105ba8d625d4ea1ea43107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5efde49ee10ff5efc4b316ac28b68e4c441cbf2137105ba8d625d4ea1ea43107", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5efde49ee10ff5efc4b316ac28b68e4c441cbf2137105ba8d625d4ea1ea43107", kill_on_drop: false }` [INFO] [stdout] 5efde49ee10ff5efc4b316ac28b68e4c441cbf2137105ba8d625d4ea1ea43107 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:19e73879b68f455e41552ea35293514db52ea292d993f571636dbffedb77a1ee" "/opt/rustwide/cargo-home/bin/cargo" "+e4106065bf1bb515935d5d024e8d9c86454e2b22" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] cdf45578db29c1c91201a8d6c0554d3c31e2c6d28ea5937705b6240168b6869e [INFO] running `Command { std: "docker" "start" "-a" "cdf45578db29c1c91201a8d6c0554d3c31e2c6d28ea5937705b6240168b6869e", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking StanfordCompilers-priciples v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `ASSIGN`, `ASTERISK`, `MINUS`, `PLUS`, `SLASH` [INFO] [stdout] --> src/lexers.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::define::TokenType::{ASSIGN, ASTERISK, EOF, ID, KEYWORDS, LPAREN, MINUS, NUM, PLUS, RPAREN, SEMICOLON, SLASH, LBRACES, RBRACES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^ ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `ASSIGN`, `ASTERISK`, `MINUS`, `PLUS`, `SLASH` [INFO] [stdout] --> src/lexers.rs:4:32 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::define::TokenType::{ASSIGN, ASTERISK, EOF, ID, KEYWORDS, LPAREN, MINUS, NUM, PLUS, RPAREN, SEMICOLON, SLASH, LBRACES, RBRACES}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^ ^^^^^ ^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/parse.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | pub(crate) fn func_parser_if(parser: &mut Parser) -> Option> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `parser` [INFO] [stdout] --> src/parse.rs:109:30 [INFO] [stdout] | [INFO] [stdout] 109 | pub(crate) fn func_parser_if(parser: &mut Parser) -> Option> { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_parser` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:140:19 [INFO] [stdout] | [INFO] [stdout] 140 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:109:19 [INFO] [stdout] | [INFO] [stdout] 109 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:125:19 [INFO] [stdout] | [INFO] [stdout] 125 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `curr_token` is never read [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct TokenScaner { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | scan_token: usize, [INFO] [stdout] 11 | curr_token: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenScaner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `f` [INFO] [stdout] --> src/ast.rs:140:19 [INFO] [stdout] | [INFO] [stdout] 140 | fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_f` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `value` are never read [INFO] [stdout] --> src/ast.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Strings { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 49 | pub(crate) m_type: NType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub(crate) value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Strings` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Strings { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 54 | pub(crate) fn new() -> Strings { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct ArrayExpress { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 104 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 105 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:120:16 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct BlockStatement { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 120 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 121 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `test` and `alternate` are never read [INFO] [stdout] --> src/ast.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct IfStatement{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 135 | pub(crate) test:Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 136 | pub(crate) alternate:Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MINUS`, `OPERATOR`, and `WHITESPACE` are never constructed [INFO] [stdout] --> src/define.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 35 | MINUS, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | OPERATOR, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | WHITESPACE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Float` and `Strings` are never constructed [INFO] [stdout] --> src/define.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum NType { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 104 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | Strings, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `StanfordCompilers_priciples` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `stanford_compilers_priciples` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `curr_token` is never read [INFO] [stdout] --> src/parse.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub(crate) struct TokenScaner { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 10 | scan_token: usize, [INFO] [stdout] 11 | curr_token: usize, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenScaner` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `value` are never read [INFO] [stdout] --> src/ast.rs:49:16 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Strings { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 49 | pub(crate) m_type: NType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 50 | pub(crate) value: String, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Strings` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast.rs:54:19 [INFO] [stdout] | [INFO] [stdout] 53 | impl Strings { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 54 | pub(crate) fn new() -> Strings { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:104:16 [INFO] [stdout] | [INFO] [stdout] 103 | pub struct ArrayExpress { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 104 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 105 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `m_type` and `body` are never read [INFO] [stdout] --> src/ast.rs:120:16 [INFO] [stdout] | [INFO] [stdout] 119 | pub struct BlockStatement { [INFO] [stdout] | -------------- fields in this struct [INFO] [stdout] 120 | pub(crate) m_type: TokenType, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 121 | pub(crate) body:Vec> [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `test` and `alternate` are never read [INFO] [stdout] --> src/ast.rs:135:16 [INFO] [stdout] | [INFO] [stdout] 134 | pub struct IfStatement{ [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 135 | pub(crate) test:Option>, [INFO] [stdout] | ^^^^ [INFO] [stdout] 136 | pub(crate) alternate:Option>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `MINUS`, `OPERATOR`, and `WHITESPACE` are never constructed [INFO] [stdout] --> src/define.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 32 | pub enum TokenType { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 35 | MINUS, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | OPERATOR, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | WHITESPACE, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Float` and `Strings` are never constructed [INFO] [stdout] --> src/define.rs:104:5 [INFO] [stdout] | [INFO] [stdout] 101 | pub enum NType { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 104 | Float, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 105 | Strings, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `NType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `StanfordCompilers_priciples` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = help: convert the identifier to snake case: `stanford_compilers_priciples` [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 3.02s [INFO] running `Command { std: "docker" "inspect" "cdf45578db29c1c91201a8d6c0554d3c31e2c6d28ea5937705b6240168b6869e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cdf45578db29c1c91201a8d6c0554d3c31e2c6d28ea5937705b6240168b6869e", kill_on_drop: false }` [INFO] [stdout] cdf45578db29c1c91201a8d6c0554d3c31e2c6d28ea5937705b6240168b6869e