[INFO] updating cached 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" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune", kill_on_drop: false }` [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6e20a2c8d82dffd0020d733df01c29617bc9d458 [INFO] checking lusamreth/rust-learning against master#1557fb031b272b4c5bfcc7de5df7eddc7b36a584 for pr-73166 [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 1557fb031b272b4c5bfcc7de5df7eddc7b36a584 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "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" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a7ebbe395dea9afe07c6ae0b65a17d4eae2c8563da716100f4f5a31189f8ee7a [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" "a7ebbe395dea9afe07c6ae0b65a17d4eae2c8563da716100f4f5a31189f8ee7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a7ebbe395dea9afe07c6ae0b65a17d4eae2c8563da716100f4f5a31189f8ee7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7ebbe395dea9afe07c6ae0b65a17d4eae2c8563da716100f4f5a31189f8ee7a", kill_on_drop: false }` [INFO] [stdout] a7ebbe395dea9afe07c6ae0b65a17d4eae2c8563da716100f4f5a31189f8ee7a [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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1557fb031b272b4c5bfcc7de5df7eddc7b36a584" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e1a95f36455021a9497ef025238a9b9f1d3c77e658fa99bd5b9ee680fd290c7e [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" "e1a95f36455021a9497ef025238a9b9f1d3c77e658fa99bd5b9ee680fd290c7e", kill_on_drop: false }` [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking getrandom v0.1.14 [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 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: 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: 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: 13 warnings emitted [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: 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 4.54s [INFO] running `Command { std: "docker" "inspect" "e1a95f36455021a9497ef025238a9b9f1d3c77e658fa99bd5b9ee680fd290c7e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e1a95f36455021a9497ef025238a9b9f1d3c77e658fa99bd5b9ee680fd290c7e", kill_on_drop: false }` [INFO] [stdout] e1a95f36455021a9497ef025238a9b9f1d3c77e658fa99bd5b9ee680fd290c7e