[INFO] cloning repository https://github.com/kn0w-n0thing/two-week-script-by-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kn0w-n0thing/two-week-script-by-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkn0w-n0thing%2Ftwo-week-script-by-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkn0w-n0thing%2Ftwo-week-script-by-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 37280c84129f923fab0ef575516d95cde4bbf5a6 [INFO] building kn0w-n0thing/two-week-script-by-rust against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkn0w-n0thing%2Ftwo-week-script-by-rust" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kn0w-n0thing/two-week-script-by-rust on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kn0w-n0thing/two-week-script-by-rust [INFO] finished tweaking git repo https://github.com/kn0w-n0thing/two-week-script-by-rust [INFO] tweaked toml for git repo https://github.com/kn0w-n0thing/two-week-script-by-rust written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/kn0w-n0thing/two-week-script-by-rust 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded stringreader v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1cea631424581e86d8fd317499ce65e7c54cd643a04ea8a86cf1bb4d3f9b7950 [INFO] running `Command { std: "docker" "start" "-a" "1cea631424581e86d8fd317499ce65e7c54cd643a04ea8a86cf1bb4d3f9b7950", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1cea631424581e86d8fd317499ce65e7c54cd643a04ea8a86cf1bb4d3f9b7950", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1cea631424581e86d8fd317499ce65e7c54cd643a04ea8a86cf1bb4d3f9b7950", kill_on_drop: false }` [INFO] [stdout] 1cea631424581e86d8fd317499ce65e7c54cd643a04ea8a86cf1bb4d3f9b7950 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 35de5a7858a633b06165db981897be485d2501be8a2c5fae5202dec1651e467d [INFO] running `Command { std: "docker" "start" "-a" "35de5a7858a633b06165db981897be485d2501be8a2c5fae5202dec1651e467d", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling stringreader v0.1.1 [INFO] [stderr] Compiling aho-corasick v0.7.20 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling two-week-script v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/lexer.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `TOKEN_REG_STR` is never used [INFO] [stdout] --> src/lexer.rs:8:7 [INFO] [stdout] | [INFO] [stdout] 8 | const TOKEN_REG_STR: &str = "\\s*((//.*)|([0-9]+)|(\"(\\\\\"|\\\\\\\\|\\\\n|[^\"])*\")|[A-Z_a-z][A-Z_a-z0-9]*|==|<=|>=|&&|\\|\\||[[:punct... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `EOF_ERR_STR` is never used [INFO] [stdout] --> src/lexer.rs:9:7 [INFO] [stdout] | [INFO] [stdout] 9 | const EOF_ERR_STR: &str = "Already reach EOF!"; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Lexer` is never constructed [INFO] [stdout] --> src/lexer.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Lexer { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `get_token_regex`, `new`, `read`, `peek`, `fill_queue`, and `read_line` are never used [INFO] [stdout] --> src/lexer.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 18 | impl Lexer { [INFO] [stdout] | ---------------------- associated items in this implementation [INFO] [stdout] 19 | #[inline] [INFO] [stdout] 20 | fn get_token_regex() -> Regex { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 24 | pub fn new(reader: BufReader) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 33 | pub fn read(&mut self) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 42 | pub fn peek(&mut self, i: usize) -> Result<&Token, String> { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 51 | fn fill_queue(&mut self, i: usize) -> Result { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | fn read_line(&mut self) -> Result<(), String> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `IDENTIFIER`, `NUMBER`, `STRING`, `EOL`, and `EOF` are never constructed [INFO] [stdout] --> src/lexer.rs:108:5 [INFO] [stdout] | [INFO] [stdout] 107 | pub enum Token { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 108 | IDENTIFIER { token_base: TokenBase }, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 109 | NUMBER { token_base: TokenBase, number: i32 }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 110 | STRING { token_base: TokenBase }, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 111 | EOL { token_base: TokenBase }, [INFO] [stdout] | ^^^ [INFO] [stdout] 112 | EOF { token_base: TokenBase }, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` 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: methods `get_text`, `get_line_number`, and `get_number` are never used [INFO] [stdout] --> src/lexer.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 116 | pub fn get_text(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn get_line_number(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn get_number(&self) -> Result<&i32, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `LEAF` and `LIST` are never constructed [INFO] [stdout] --> src/ast.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ASTree { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 7 | LEAF { token: Token }, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | LIST { token_list: LinkedList }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ASTree` 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 items `children_number`, `children`, `location`, and `get_location_from_token` are never used [INFO] [stdout] --> src/ast.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ASTree { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn children_number(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn children(&self) -> impl Iterator { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn location(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_location_from_token(token: &Token) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.06s [INFO] running `Command { std: "docker" "inspect" "35de5a7858a633b06165db981897be485d2501be8a2c5fae5202dec1651e467d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "35de5a7858a633b06165db981897be485d2501be8a2c5fae5202dec1651e467d", kill_on_drop: false }` [INFO] [stdout] 35de5a7858a633b06165db981897be485d2501be8a2c5fae5202dec1651e467d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 387a5cc16e02f56e2ccfd4b35cc6230767ae62472b8e422a7c1650a410a070da [INFO] running `Command { std: "docker" "start" "-a" "387a5cc16e02f56e2ccfd4b35cc6230767ae62472b8e422a7c1650a410a070da", kill_on_drop: false }` [INFO] [stderr] Compiling two-week-script v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/lexer.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::os::unix::raw::time_t` [INFO] [stdout] --> src/ast.rs:76:9 [INFO] [stdout] | [INFO] [stdout] 76 | use std::os::unix::raw::time_t; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `regex::internal::Input` [INFO] [stdout] --> src/ast.rs:77:9 [INFO] [stdout] | [INFO] [stdout] 77 | use regex::internal::Input; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated type alias `std::os::unix::raw::time_t`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/ast.rs:76:29 [INFO] [stdout] | [INFO] [stdout] 76 | use std::os::unix::raw::time_t; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `get_text`, `get_line_number`, and `get_number` are never used [INFO] [stdout] --> src/lexer.rs:116:12 [INFO] [stdout] | [INFO] [stdout] 115 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] 116 | pub fn get_text(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn get_line_number(&self) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 136 | pub fn get_number(&self) -> Result<&i32, String> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/ast.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | LEAF { token: Token }, [INFO] [stdout] | ---- ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ASTree` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `LIST` is never constructed [INFO] [stdout] --> src/ast.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum ASTree { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] 7 | LEAF { token: Token }, [INFO] [stdout] 8 | LIST { token_list: LinkedList }, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ASTree` 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 items `location` and `get_location_from_token` are never used [INFO] [stdout] --> src/ast.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 11 | impl ASTree { [INFO] [stdout] | ----------- associated items in this implementation [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn location(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | pub fn get_location_from_token(token: &Token) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ASTList` is never used [INFO] [stdout] --> src/ast.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn ASTList() -> () { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ASTLeaf` should have a snake case name [INFO] [stdout] --> src/ast.rs:87:8 [INFO] [stdout] | [INFO] [stdout] 87 | fn ASTLeaf() -> () { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `astleaf` [INFO] [stdout] | [INFO] [stdout] note: the lint level is defined here [INFO] [stdout] --> src/ast.rs:86:12 [INFO] [stdout] | [INFO] [stdout] 86 | #[warn(non_snake_case)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ASTList` should have a snake case name [INFO] [stdout] --> src/ast.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | fn ASTList() -> () { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `astlist` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.30s [INFO] running `Command { std: "docker" "inspect" "387a5cc16e02f56e2ccfd4b35cc6230767ae62472b8e422a7c1650a410a070da", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "387a5cc16e02f56e2ccfd4b35cc6230767ae62472b8e422a7c1650a410a070da", kill_on_drop: false }` [INFO] [stdout] 387a5cc16e02f56e2ccfd4b35cc6230767ae62472b8e422a7c1650a410a070da