[INFO] cloning repository https://github.com/walac/cool-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/walac/cool-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwalac%2Fcool-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwalac%2Fcool-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 08f49bc7a724e521d01fe1a2eaecd917ab62d1cf [INFO] checking walac/cool-rs against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fwalac%2Fcool-rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/walac/cool-rs [INFO] finished tweaking git repo https://github.com/walac/cool-rs [INFO] tweaked toml for git repo https://github.com/walac/cool-rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/walac/cool-rs on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/walac/cool-rs 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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded encoding8 v0.3.2 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b57dded82ea317a293408ce29b67f6d97b9f31debf5dece546b986c92ee0b44e [INFO] running `Command { std: "docker" "start" "-a" "b57dded82ea317a293408ce29b67f6d97b9f31debf5dece546b986c92ee0b44e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b57dded82ea317a293408ce29b67f6d97b9f31debf5dece546b986c92ee0b44e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b57dded82ea317a293408ce29b67f6d97b9f31debf5dece546b986c92ee0b44e", kill_on_drop: false }` [INFO] [stdout] b57dded82ea317a293408ce29b67f6d97b9f31debf5dece546b986c92ee0b44e [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f093d738dc4e6e83ef5d185f29376a68bad374986174cc00163ce6e685a64728 [INFO] running `Command { std: "docker" "start" "-a" "f093d738dc4e6e83ef5d185f29376a68bad374986174cc00163ce6e685a64728", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Checking regex-syntax v0.6.18 [INFO] [stderr] Checking encoding8 v0.3.2 [INFO] [stderr] Checking glob v0.3.0 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking aho-corasick v0.7.10 [INFO] [stderr] Checking regex v1.3.9 [INFO] [stderr] Checking cool-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant `MAX_STR` is never used [INFO] [stdout] --> src/lexer.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const MAX_STR: usize = 1026; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `escaped_string` is never used [INFO] [stdout] --> src/lexer.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn escaped_string(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenKind` is never used [INFO] [stdout] --> src/lexer.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum TokenKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/lexer.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/lexer.rs:212:6 [INFO] [stdout] | [INFO] [stdout] 212 | enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tokenizer` is never constructed [INFO] [stdout] --> src/lexer.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct Tokenizer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `peek`, `update_pos`, and `new_token` are never used [INFO] [stdout] --> src/lexer.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl<'a> Tokenizer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn new(src: &'a str) -> Tokenizer<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | fn peek(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | fn update_pos(&mut self, ch: char) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn new_token(&mut self, tok: String, is_err: bool) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `init`, `number`, `id`, `comment`, `skip_str`, and `str_` are never used [INFO] [stdout] --> src/lexer.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 283 | impl<'a> Tokenizer<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 284 | fn init(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | fn number(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 367 | fn id(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 375 | fn comment(&mut self, ch: char) -> State { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | fn skip_str(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 413 | fn str_(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `MAX_STR` is never used [INFO] [stdout] --> src/lexer.rs:12:7 [INFO] [stdout] | [INFO] [stdout] 12 | const MAX_STR: usize = 1026; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `escaped_string` is never used [INFO] [stdout] --> src/lexer.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn escaped_string(s: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `TokenKind` is never used [INFO] [stdout] --> src/lexer.rs:36:10 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum TokenKind { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Token` is never constructed [INFO] [stdout] --> src/lexer.rs:204:12 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `State` is never used [INFO] [stdout] --> src/lexer.rs:212:6 [INFO] [stdout] | [INFO] [stdout] 212 | enum State { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Tokenizer` is never constructed [INFO] [stdout] --> src/lexer.rs:224:12 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct Tokenizer<'a> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `peek`, `update_pos`, and `new_token` are never used [INFO] [stdout] --> src/lexer.rs:235:12 [INFO] [stdout] | [INFO] [stdout] 232 | impl<'a> Tokenizer<'a> { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 235 | pub fn new(src: &'a str) -> Tokenizer<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 247 | fn peek(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 252 | fn update_pos(&mut self, ch: char) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 263 | fn new_token(&mut self, tok: String, is_err: bool) -> Option { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `init`, `number`, `id`, `comment`, `skip_str`, and `str_` are never used [INFO] [stdout] --> src/lexer.rs:284:8 [INFO] [stdout] | [INFO] [stdout] 283 | impl<'a> Tokenizer<'a> { [INFO] [stdout] | ---------------------- methods in this implementation [INFO] [stdout] 284 | fn init(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 359 | fn number(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 367 | fn id(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^ [INFO] [stdout] ... [INFO] [stdout] 375 | fn comment(&mut self, ch: char) -> State { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 403 | fn skip_str(&mut self) { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 413 | fn str_(&mut self, ch: char, tok: &mut String) -> State { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `filename` is never read [INFO] [stdout] --> tests/test_lexer.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 19 | struct LexerOutput { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 20 | pub filename: String, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `col` is never read [INFO] [stdout] --> tests/../src/lexer.rs:207:9 [INFO] [stdout] | [INFO] [stdout] 204 | pub struct Token { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] ... [INFO] [stdout] 207 | pub col: usize, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> tests/test_lexer.rs:78:30 [INFO] [stdout] | [INFO] [stdout] 78 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 78 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 78 - Err(e) => panic!(e), [INFO] [stdout] 78 + Err(e) => std::panic::panic_any(e), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.79s [INFO] running `Command { std: "docker" "inspect" "f093d738dc4e6e83ef5d185f29376a68bad374986174cc00163ce6e685a64728", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f093d738dc4e6e83ef5d185f29376a68bad374986174cc00163ce6e685a64728", kill_on_drop: false }` [INFO] [stdout] f093d738dc4e6e83ef5d185f29376a68bad374986174cc00163ce6e685a64728