[INFO] cloning repository https://github.com/Thom-ASM/basic_compiler [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Thom-ASM/basic_compiler" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThom-ASM%2Fbasic_compiler", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThom-ASM%2Fbasic_compiler'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] e0a66e90f8ab22bef155e338b8a12a14d64465df [INFO] checking Thom-ASM/basic_compiler against try#4797991aa2efb6d658150f10425b3f3b5d10eceb for pr-143193 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThom-ASM%2Fbasic_compiler" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Thom-ASM/basic_compiler [INFO] finished tweaking git repo https://github.com/Thom-ASM/basic_compiler [INFO] tweaked toml for git repo https://github.com/Thom-ASM/basic_compiler written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Thom-ASM/basic_compiler on toolchain 4797991aa2efb6d658150f10425b3f3b5d10eceb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Thom-ASM/basic_compiler 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" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "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-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c6fa40db28938594ea67b5a13d5148c7c4321c8cabff62ac35f4c8fb682d583 [INFO] running `Command { std: "docker" "start" "-a" "2c6fa40db28938594ea67b5a13d5148c7c4321c8cabff62ac35f4c8fb682d583", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c6fa40db28938594ea67b5a13d5148c7c4321c8cabff62ac35f4c8fb682d583", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c6fa40db28938594ea67b5a13d5148c7c4321c8cabff62ac35f4c8fb682d583", kill_on_drop: false }` [INFO] [stdout] 2c6fa40db28938594ea67b5a13d5148c7c4321c8cabff62ac35f4c8fb682d583 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:cf8efcab8866f2cf4285301c7418e2f4f2a9b088c91ba69c40d5b659f81557f7" "/opt/rustwide/cargo-home/bin/cargo" "+4797991aa2efb6d658150f10425b3f3b5d10eceb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b7d4c65c32ba619174bfe77e642132bd03d00235723932b37602de8c7deea743 [INFO] running `Command { std: "docker" "start" "-a" "b7d4c65c32ba619174bfe77e642132bd03d00235723932b37602de8c7deea743", kill_on_drop: false }` [INFO] [stderr] Checking basic_compiler v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: type `token_type` should have an upper camel case name [INFO] [stdout] --> src/Tokens.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum token_type { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `TokenType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `token_type` should have an upper camel case name [INFO] [stdout] --> src/Tokens.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum token_type { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to upper camel case: `TokenType` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `text` and `kind` are never read [INFO] [stdout] --> src/Tokens.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 37 | //text needs to be a string because of tokens like == and << [INFO] [stdout] 38 | text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | kind: token_type, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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: module `Lexer` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Lexer; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `lexer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Tokens` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Tokens; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `test` should have an upper case name [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const test: &str = " IF+-123 foo*THEN/ "; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 6 - const test: &str = " IF+-123 foo*THEN/ "; [INFO] [stdout] 6 + const TEST: &str = " IF+-123 foo*THEN/ "; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `special_chars` should have an upper case name [INFO] [stdout] --> src/Lexer.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const special_chars: [char; 5] = ['\r', '\t', '\n', '\\', '%']; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 3 - const special_chars: [char; 5] = ['\r', '\t', '\n', '\\', '%']; [INFO] [stdout] 3 + const SPECIAL_CHARS: [char; 5] = ['\r', '\t', '\n', '\\', '%']; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `text` and `kind` are never read [INFO] [stdout] --> src/Tokens.rs:38:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 37 | //text needs to be a string because of tokens like == and << [INFO] [stdout] 38 | text: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 39 | kind: token_type, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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: module `Lexer` should have a snake case name [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | mod Lexer; [INFO] [stdout] | ^^^^^ help: convert the identifier to snake case: `lexer` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: module `Tokens` should have a snake case name [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | mod Tokens; [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `tokens` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `test` should have an upper case name [INFO] [stdout] --> src/main.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | const test: &str = " IF+-123 foo*THEN/ "; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 6 - const test: &str = " IF+-123 foo*THEN/ "; [INFO] [stdout] 6 + const TEST: &str = " IF+-123 foo*THEN/ "; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `special_chars` should have an upper case name [INFO] [stdout] --> src/Lexer.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | const special_chars: [char; 5] = ['\r', '\t', '\n', '\\', '%']; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: convert the identifier to upper case [INFO] [stdout] | [INFO] [stdout] 3 - const special_chars: [char; 5] = ['\r', '\t', '\n', '\\', '%']; [INFO] [stdout] 3 + const SPECIAL_CHARS: [char; 5] = ['\r', '\t', '\n', '\\', '%']; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "b7d4c65c32ba619174bfe77e642132bd03d00235723932b37602de8c7deea743", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b7d4c65c32ba619174bfe77e642132bd03d00235723932b37602de8c7deea743", kill_on_drop: false }` [INFO] [stdout] b7d4c65c32ba619174bfe77e642132bd03d00235723932b37602de8c7deea743