[INFO] cloning repository https://github.com/ZerQAQ/software_security_homework [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZerQAQ/software_security_homework" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZerQAQ%2Fsoftware_security_homework", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZerQAQ%2Fsoftware_security_homework'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 12795984e078c56dcbe9a8372bae7de8472ac475 [INFO] checking ZerQAQ/software_security_homework against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZerQAQ%2Fsoftware_security_homework" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ZerQAQ/software_security_homework on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ZerQAQ/software_security_homework [INFO] finished tweaking git repo https://github.com/ZerQAQ/software_security_homework [INFO] tweaked toml for git repo https://github.com/ZerQAQ/software_security_homework written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/ZerQAQ/software_security_homework already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bacddc071b0fd2374e6f36b022e73ca7821edb35eff3f074a9e98b19b1f00cb4 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "bacddc071b0fd2374e6f36b022e73ca7821edb35eff3f074a9e98b19b1f00cb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bacddc071b0fd2374e6f36b022e73ca7821edb35eff3f074a9e98b19b1f00cb4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bacddc071b0fd2374e6f36b022e73ca7821edb35eff3f074a9e98b19b1f00cb4", kill_on_drop: false }` [INFO] [stdout] bacddc071b0fd2374e6f36b022e73ca7821edb35eff3f074a9e98b19b1f00cb4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6680ad0b08c7bf00277dd4ba591a4989ea72c98218cb8cd421704d59b1a3c0ac [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6680ad0b08c7bf00277dd4ba591a4989ea72c98218cb8cd421704d59b1a3c0ac", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling gcc v0.3.55 [INFO] [stderr] Checking unicode-width v0.1.8 [INFO] [stderr] Checking rustc-serialize v0.3.24 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking time v0.1.44 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking clap v2.33.3 [INFO] [stderr] Compiling rust-crypto v0.2.36 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking code_analys v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/stack.rs (5 fixes) [INFO] [stdout] warning: type `I_token` should have an upper camel case name [INFO] [stdout] --> src/unit.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum I_token { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `IToken` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `I_token` should have an upper camel case name [INFO] [stdout] --> src/unit.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum I_token { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `IToken` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_name` is never read [INFO] [stdout] --> src/stack.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut var_name = String::from(""); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_name` is never read [INFO] [stdout] --> src/stack.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut var_name = String::from(""); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_cgf` [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_cgf(vec: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_EOF` should have a snake case name [INFO] [stdout] --> src/lexer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn is_EOF(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_eof` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_to_I` should have a snake case name [INFO] [stdout] --> src/unit.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn token_to_I(token: Token, lexer: &Lexer) -> I_token { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `token_to_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_cgf` [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_cgf(vec: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines_flag` should have a snake case name [INFO] [stdout] --> src/unit.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_raw_I_token_lines_flag(file_name: &str, endl_flag: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines` should have a snake case name [INFO] [stdout] --> src/unit.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn get_raw_I_token_lines(file_name: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `LCS` should have a snake case name [INFO] [stdout] --> src/unit.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn LCS(s1: &Vec, s2: &Vec) -> u32 { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `lcs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_EOF` should have a snake case name [INFO] [stdout] --> src/lexer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn is_EOF(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_eof` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_to_I` should have a snake case name [INFO] [stdout] --> src/unit.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn token_to_I(token: Token, lexer: &Lexer) -> I_token { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `token_to_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines_flag` should have a snake case name [INFO] [stdout] --> src/unit.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_raw_I_token_lines_flag(file_name: &str, endl_flag: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines` should have a snake case name [INFO] [stdout] --> src/unit.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn get_raw_I_token_lines(file_name: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `LCS` should have a snake case name [INFO] [stdout] --> src/unit.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn LCS(s1: &Vec, s2: &Vec) -> u32 { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `lcs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.59s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking code_analys v0.1.0 (/tmp/fixit) [INFO] [stdout] warning: type `I_token` should have an upper camel case name [INFO] [stdout] --> src/unit.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum I_token { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `IToken` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `I_token` should have an upper camel case name [INFO] [stdout] --> src/unit.rs:85:10 [INFO] [stdout] | [INFO] [stdout] 85 | pub enum I_token { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `IToken` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_name` is never read [INFO] [stdout] --> src/stack.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut var_name = String::from(""); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_cgf` [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_cgf(vec: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `var_name` is never read [INFO] [stdout] --> src/stack.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | let mut var_name = String::from(""); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_EOF` should have a snake case name [INFO] [stdout] --> src/lexer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn is_EOF(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_eof` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_to_I` should have a snake case name [INFO] [stdout] --> src/unit.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn token_to_I(token: Token, lexer: &Lexer) -> I_token { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `token_to_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines_flag` should have a snake case name [INFO] [stdout] --> src/unit.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_raw_I_token_lines_flag(file_name: &str, endl_flag: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines` should have a snake case name [INFO] [stdout] --> src/unit.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn get_raw_I_token_lines(file_name: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `LCS` should have a snake case name [INFO] [stdout] --> src/unit.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn LCS(s1: &Vec, s2: &Vec) -> u32 { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `lcs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_cgf` [INFO] [stdout] --> src/main.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn print_cgf(vec: &Vec) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `is_EOF` should have a snake case name [INFO] [stdout] --> src/lexer.rs:110:12 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn is_EOF(&mut self) -> bool{ [INFO] [stdout] | ^^^^^^ help: convert the identifier to snake case: `is_eof` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `token_to_I` should have a snake case name [INFO] [stdout] --> src/unit.rs:109:4 [INFO] [stdout] | [INFO] [stdout] 109 | fn token_to_I(token: Token, lexer: &Lexer) -> I_token { [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `token_to_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines_flag` should have a snake case name [INFO] [stdout] --> src/unit.rs:124:8 [INFO] [stdout] | [INFO] [stdout] 124 | pub fn get_raw_I_token_lines_flag(file_name: &str, endl_flag: bool) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines_flag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_raw_I_token_lines` should have a snake case name [INFO] [stdout] --> src/unit.rs:143:8 [INFO] [stdout] | [INFO] [stdout] 143 | pub fn get_raw_I_token_lines(file_name: &str) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `get_raw_i_token_lines` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `LCS` should have a snake case name [INFO] [stdout] --> src/unit.rs:178:8 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn LCS(s1: &Vec, s2: &Vec) -> u32 { [INFO] [stdout] | ^^^ help: convert the identifier to snake case: `lcs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.16s [INFO] running `Command { std: "docker" "inspect" "6680ad0b08c7bf00277dd4ba591a4989ea72c98218cb8cd421704d59b1a3c0ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6680ad0b08c7bf00277dd4ba591a4989ea72c98218cb8cd421704d59b1a3c0ac", kill_on_drop: false }` [INFO] [stdout] 6680ad0b08c7bf00277dd4ba591a4989ea72c98218cb8cd421704d59b1a3c0ac