[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] building nagaraju-chitluru-jpmc/rust_04 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%2Fnagaraju-chitluru-jpmc%2Frust_04" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nagaraju-chitluru-jpmc/rust_04 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/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-2-tc1/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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] a735ea354d990310e3548eb612bf51e30bf7a2cf442869ed37f0a93301f3cfd2 [INFO] running `Command { std: "docker" "start" "-a" "a735ea354d990310e3548eb612bf51e30bf7a2cf442869ed37f0a93301f3cfd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a735ea354d990310e3548eb612bf51e30bf7a2cf442869ed37f0a93301f3cfd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a735ea354d990310e3548eb612bf51e30bf7a2cf442869ed37f0a93301f3cfd2", kill_on_drop: false }` [INFO] [stdout] a735ea354d990310e3548eb612bf51e30bf7a2cf442869ed37f0a93301f3cfd2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 8c6d3ab79f8ad7af2d8d42cc6164a6a956aa756de3998b9647401dabdc7337b8 [INFO] running `Command { std: "docker" "start" "-a" "8c6d3ab79f8ad7af2d8d42cc6164a6a956aa756de3998b9647401dabdc7337b8", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling iana-time-zone v0.1.57 [INFO] [stderr] Compiling num-traits v0.2.15 [INFO] [stderr] Compiling time v0.1.45 [INFO] [stderr] Compiling chrono v0.4.26 [INFO] [stderr] Compiling 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: 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 2.53s [INFO] running `Command { std: "docker" "inspect" "8c6d3ab79f8ad7af2d8d42cc6164a6a956aa756de3998b9647401dabdc7337b8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8c6d3ab79f8ad7af2d8d42cc6164a6a956aa756de3998b9647401dabdc7337b8", kill_on_drop: false }` [INFO] [stdout] 8c6d3ab79f8ad7af2d8d42cc6164a6a956aa756de3998b9647401dabdc7337b8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] ba6c54143ece24537247419073c61a4f9eed1fde88722e292e6f748af203f020 [INFO] running `Command { std: "docker" "start" "-a" "ba6c54143ece24537247419073c61a4f9eed1fde88722e292e6f748af203f020", kill_on_drop: false }` [INFO] [stderr] Compiling 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: 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 `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "ba6c54143ece24537247419073c61a4f9eed1fde88722e292e6f748af203f020", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba6c54143ece24537247419073c61a4f9eed1fde88722e292e6f748af203f020", kill_on_drop: false }` [INFO] [stdout] ba6c54143ece24537247419073c61a4f9eed1fde88722e292e6f748af203f020