[INFO] cloning repository https://github.com/nagaraju-chitluru-jpmc/rust_04 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nagaraju-chitluru-jpmc/rust_04" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnagaraju-chitluru-jpmc%2Frust_04", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnagaraju-chitluru-jpmc%2Frust_04'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c901fbe6483895685d8a9e0e259db796a2c6de62 [INFO] checking nagaraju-chitluru-jpmc/rust_04 against try#44e31dee3cf6f37b4f652572897bb0eb25c477ee for pr-139763 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnagaraju-chitluru-jpmc%2Frust_04" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nagaraju-chitluru-jpmc/rust_04 on toolchain 44e31dee3cf6f37b4f652572897bb0eb25c477ee [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nagaraju-chitluru-jpmc/rust_04 [INFO] finished tweaking git repo https://github.com/nagaraju-chitluru-jpmc/rust_04 [INFO] tweaked toml for git repo https://github.com/nagaraju-chitluru-jpmc/rust_04 written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nagaraju-chitluru-jpmc/rust_04 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" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f8df916e034c6113d03d58278af70e577da21f8aa1a18bf6865d48107568ae9f [INFO] running `Command { std: "docker" "start" "-a" "f8df916e034c6113d03d58278af70e577da21f8aa1a18bf6865d48107568ae9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f8df916e034c6113d03d58278af70e577da21f8aa1a18bf6865d48107568ae9f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f8df916e034c6113d03d58278af70e577da21f8aa1a18bf6865d48107568ae9f", kill_on_drop: false }` [INFO] [stdout] f8df916e034c6113d03d58278af70e577da21f8aa1a18bf6865d48107568ae9f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+44e31dee3cf6f37b4f652572897bb0eb25c477ee" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] dac4e4aa3466c367c6e9530d2a26bc693a5fe21600230f797cedcede21e7f675 [INFO] running `Command { std: "docker" "start" "-a" "dac4e4aa3466c367c6e9530d2a26bc693a5fe21600230f797cedcede21e7f675", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Checking iana-time-zone v0.1.57 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Checking time v0.1.45 [INFO] [stderr] Checking chrono v0.4.26 [INFO] [stderr] Checking assignment_04 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: fields `transaction_id`, `client_id`, `asset_name`, `country`, and `days_under_management` are never read [INFO] [stdout] --> src/transaction.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub transaction_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | pub client_id: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | pub asset_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | pub country: Country, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub days_under_management: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` 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: variable `amountInvestedByContinent` should have a snake case name [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut amountInvestedByContinent: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_invested_by_continent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalAmount` should have a snake case name [INFO] [stdout] --> src/main.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | Some(totalAmount) => { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `total_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amountInvested` should have a snake case name [INFO] [stdout] --> src/main.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | for (continent, amountInvested) in amountInvestedByContinent { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_invested` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `transaction_id`, `client_id`, `asset_name`, `country`, and `days_under_management` are never read [INFO] [stdout] --> src/transaction.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Transaction { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 6 | pub transaction_id: u32, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 7 | pub client_id: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 8 | pub asset_name: String, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 9 | pub country: Country, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 12 | pub days_under_management: i64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Transaction` 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: function `printTransactionsByContinent` should have a snake case name [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn printTransactionsByContinent(transactions: &Vec, continent: &Continent) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_transactions_by_continent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filteredTransactions` should have a snake case name [INFO] [stdout] --> src/utils.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let filteredTransactions: Vec<&Transaction> = transactions [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `filtered_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amountInvestedByContinent` should have a snake case name [INFO] [stdout] --> src/main.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 20 | let mut amountInvestedByContinent: HashMap = HashMap::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_invested_by_continent` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `totalAmount` should have a snake case name [INFO] [stdout] --> src/main.rs:49:18 [INFO] [stdout] | [INFO] [stdout] 49 | Some(totalAmount) => { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `total_amount` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `amountInvested` should have a snake case name [INFO] [stdout] --> src/main.rs:58:21 [INFO] [stdout] | [INFO] [stdout] 58 | for (continent, amountInvested) in amountInvestedByContinent { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: convert the identifier to snake case: `amount_invested` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `printTransactionsByContinent` should have a snake case name [INFO] [stdout] --> src/utils.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn printTransactionsByContinent(transactions: &Vec, continent: &Continent) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `print_transactions_by_continent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `filteredTransactions` should have a snake case name [INFO] [stdout] --> src/utils.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let filteredTransactions: Vec<&Transaction> = transactions [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `filtered_transactions` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.12s [INFO] running `Command { std: "docker" "inspect" "dac4e4aa3466c367c6e9530d2a26bc693a5fe21600230f797cedcede21e7f675", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dac4e4aa3466c367c6e9530d2a26bc693a5fe21600230f797cedcede21e7f675", kill_on_drop: false }` [INFO] [stdout] dac4e4aa3466c367c6e9530d2a26bc693a5fe21600230f797cedcede21e7f675