[INFO] cloning repository https://github.com/lusamreth/rust-learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lusamreth/rust-learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusamreth%2Frust-learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusamreth%2Frust-learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e20a2c8d82dffd0020d733df01c29617bc9d458 [INFO] checking lusamreth/rust-learning against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flusamreth%2Frust-learning" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/lusamreth/rust-learning on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/lusamreth/rust-learning [INFO] finished tweaking git repo https://github.com/lusamreth/rust-learning [INFO] tweaked toml for git repo https://github.com/lusamreth/rust-learning written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/lusamreth/rust-learning already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 24f9dcf0a66143460de009ec9e25a0ce9a939aad958e69e8e9100b8746cabd51 [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" "24f9dcf0a66143460de009ec9e25a0ce9a939aad958e69e8e9100b8746cabd51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "24f9dcf0a66143460de009ec9e25a0ce9a939aad958e69e8e9100b8746cabd51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "24f9dcf0a66143460de009ec9e25a0ce9a939aad958e69e8e9100b8746cabd51", kill_on_drop: false }` [INFO] [stdout] 24f9dcf0a66143460de009ec9e25a0ce9a939aad958e69e8e9100b8746cabd51 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 64916a754ea5c9afe7882d274c098e9dc96f9f8dc1af0e376204b2702855120f [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" "64916a754ea5c9afe7882d274c098e9dc96f9f8dc1af0e376204b2702855120f", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Checking Cpx1 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::structure::shop` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::structure::shop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::structure::shop` [INFO] [stdout] --> src/main.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::structure::shop; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self` [INFO] [stdout] --> src/main.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{self}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `half` [INFO] [stdout] --> src/structure.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let half = point_array.len() / 2; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_half` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_array` [INFO] [stdout] --> src/structure.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut line_array: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/interface.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | for (i, app) in appshop.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_inventory` [INFO] [stdout] --> src/interface.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let new_inventory = shop::Inventory { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_inventory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structure.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut line_array: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `half` [INFO] [stdout] --> src/structure.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 10 | let half = point_array.len() / 2; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_half` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line_array` [INFO] [stdout] --> src/structure.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut line_array: Vec = Vec::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_line_array` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `app` [INFO] [stdout] --> src/interface.rs:19:17 [INFO] [stdout] | [INFO] [stdout] 19 | for (i, app) in appshop.iter().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_app` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `new_inventory` [INFO] [stdout] --> src/interface.rs:24:29 [INFO] [stdout] | [INFO] [stdout] 24 | let new_inventory = shop::Inventory { [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_new_inventory` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lifetime.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut bum :&i32; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Cpx1` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `cpx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Wordsliced` should have a snake case name [INFO] [stdout] --> src/ownership.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let Wordsliced = word.as_bytes(); // convert to ASCII code; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `wordsliced` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Exchange_Usa` should have a snake case name [INFO] [stdout] --> src/structure.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn Exchange_Usa(money: f64, curr: Currency) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `exchange_usa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `DollarCountries` should have a snake case name [INFO] [stdout] --> src/structure.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | Currency::Dollar(DollarCountries) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `dollar_countries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/structure.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | let mut line_array: Vec = Vec::new(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lifetime.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let mut bum :&i32; [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate `Cpx1` should have a snake case name [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] = help: convert the identifier to snake case: `cpx1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `Wordsliced` should have a snake case name [INFO] [stdout] --> src/ownership.rs:54:9 [INFO] [stdout] | [INFO] [stdout] 54 | let Wordsliced = word.as_bytes(); // convert to ASCII code; [INFO] [stdout] | ^^^^^^^^^^ help: convert the identifier to snake case (notice the capitalization): `wordsliced` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `Exchange_Usa` should have a snake case name [INFO] [stdout] --> src/structure.rs:106:8 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn Exchange_Usa(money: f64, curr: Currency) -> f64 { [INFO] [stdout] | ^^^^^^^^^^^^ help: convert the identifier to snake case: `exchange_usa` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `DollarCountries` should have a snake case name [INFO] [stdout] --> src/structure.rs:115:26 [INFO] [stdout] | [INFO] [stdout] 115 | Currency::Dollar(DollarCountries) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `dollar_countries` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.99s [INFO] running `Command { std: "docker" "inspect" "64916a754ea5c9afe7882d274c098e9dc96f9f8dc1af0e376204b2702855120f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64916a754ea5c9afe7882d274c098e9dc96f9f8dc1af0e376204b2702855120f", kill_on_drop: false }` [INFO] [stdout] 64916a754ea5c9afe7882d274c098e9dc96f9f8dc1af0e376204b2702855120f