[INFO] cloning repository https://github.com/MrMineev/Different-Recommendation-Systems [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/MrMineev/Different-Recommendation-Systems" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrMineev%2FDifferent-Recommendation-Systems", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrMineev%2FDifferent-Recommendation-Systems'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 41e527ee89c689dc7d93c1a2858eb1312d8adaea [INFO] checking MrMineev/Different-Recommendation-Systems against master#bca37a20bd376ce3fd138e7cdee7fe704e0f8814 for pr-139493-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMrMineev%2FDifferent-Recommendation-Systems" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/MrMineev/Different-Recommendation-Systems [INFO] finished tweaking git repo https://github.com/MrMineev/Different-Recommendation-Systems [INFO] tweaked toml for git repo https://github.com/MrMineev/Different-Recommendation-Systems written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/MrMineev/Different-Recommendation-Systems on toolchain bca37a20bd376ce3fd138e7cdee7fe704e0f8814 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/MrMineev/Different-Recommendation-Systems 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" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cli-table v0.4.7 [INFO] [stderr] Downloaded proc-macro2 v1.0.63 [INFO] [stderr] Downloaded cli-table-derive v0.4.5 [INFO] [stderr] Downloaded itoa v1.0.6 [INFO] [stderr] Downloaded ryu v1.0.13 [INFO] [stderr] Downloaded serde v1.0.164 [INFO] [stderr] Downloaded csv v1.2.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d06995087286a72a8eca48ee00449c36955b35e2289c72ec0d0e7d9988f777c3 [INFO] running `Command { std: "docker" "start" "-a" "d06995087286a72a8eca48ee00449c36955b35e2289c72ec0d0e7d9988f777c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d06995087286a72a8eca48ee00449c36955b35e2289c72ec0d0e7d9988f777c3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d06995087286a72a8eca48ee00449c36955b35e2289c72ec0d0e7d9988f777c3", kill_on_drop: false }` [INFO] [stdout] d06995087286a72a8eca48ee00449c36955b35e2289c72ec0d0e7d9988f777c3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "-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:aa71247004a7fa38d13ec170f48f06cdedf5bc50b2a8645e56ed7e992e6fa513" "/opt/rustwide/cargo-home/bin/cargo" "+bca37a20bd376ce3fd138e7cdee7fe704e0f8814" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b56ccabc50f32e9bcef751c4d4abf4db54a68b14eed1b35547c55ef6625e50f7 [INFO] running `Command { std: "docker" "start" "-a" "b56ccabc50f32e9bcef751c4d4abf4db54a68b14eed1b35547c55ef6625e50f7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.63 [INFO] [stderr] Compiling libc v0.2.147 [INFO] [stderr] Compiling unicode-ident v1.0.9 [INFO] [stderr] Compiling quote v1.0.28 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling serde v1.0.164 [INFO] [stderr] Checking ryu v1.0.13 [INFO] [stderr] Checking csv-core v0.1.10 [INFO] [stderr] Checking itoa v1.0.6 [INFO] [stderr] Checking unicode-width v0.1.10 [INFO] [stderr] Checking termcolor v1.2.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking colored v2.0.0 [INFO] [stderr] Compiling cli-table-derive v0.4.5 [INFO] [stderr] Checking csv v1.2.2 [INFO] [stderr] Checking cli-table v0.4.7 [INFO] [stderr] Checking RecommendationSystem v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/collaborative_filtering/system.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format::Justify` and `print_stdout` [INFO] [stdout] --> src/logger/logger.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use cli_table::{format::Justify, print_stdout, Cell, CellStruct, Style, Table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::object::object::Object` [INFO] [stdout] --> src/person/person.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::object::object::Object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/person/person.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/test/test.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | for j in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rate`, `add_product`, and `add_person` are never used [INFO] [stdout] --> src/collaborative_filtering/system.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl System { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 15 | pub fn rate(&mut self, person_id: u64, object_id: u64, review: u8) { // this function rates a Object [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_product(&mut self, product: Object) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn add_person(&mut self, person: Person) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `description` are never read [INFO] [stdout] --> src/object/object.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Object { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Object` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/object/object.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Object { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | pub fn init(name: &str, description: &str) -> Object { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `error`, `result`, `assert`, `execution_report`, and `show_rankings` are never used [INFO] [stdout] --> src/logger/logger.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Logger { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn error(location: String, message: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn result(location: String, message: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn assert(expression: bool, location: String, message: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn execution_report(time: &String, status: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn show_rankings(rankings: &Vec<(usize, usize)>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs` is never used [INFO] [stdout] --> src/person/person.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn abs(n: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/collaborative_filtering/system.rs:27:60 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn recommend(&mut self, person_id: u64, feed: i32, N: usize) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/collaborative_filtering/system.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `format::Justify` and `print_stdout` [INFO] [stdout] --> src/logger/logger.rs:3:17 [INFO] [stdout] | [INFO] [stdout] 3 | use cli_table::{format::Justify, print_stdout, Cell, CellStruct, Style, Table}; [INFO] [stdout] | ^^^^^^^^^^^^^^^ ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::object::object::Object` [INFO] [stdout] --> src/person/person.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::object::object::Object; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> src/person/person.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `j` [INFO] [stdout] --> src/test/test.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | for j in 0..5 { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_j` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `rate`, `add_product`, and `add_person` are never used [INFO] [stdout] --> src/collaborative_filtering/system.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 14 | impl System { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 15 | pub fn rate(&mut self, person_id: u64, object_id: u64, review: u8) { // this function rates a Object [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 19 | pub fn add_product(&mut self, product: Object) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn add_person(&mut self, person: Person) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `description` are never read [INFO] [stdout] --> src/object/object.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Object { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 4 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | description: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Object` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `init` is never used [INFO] [stdout] --> src/object/object.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Object { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 9 | pub fn init(name: &str, description: &str) -> Object { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `error`, `result`, `assert`, `execution_report`, and `show_rankings` are never used [INFO] [stdout] --> src/logger/logger.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Logger { [INFO] [stdout] | ----------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 13 | pub fn error(location: String, message: String) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | pub fn result(location: String, message: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 21 | pub fn assert(expression: bool, location: String, message: String) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn execution_report(time: &String, status: &String) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn show_rankings(rankings: &Vec<(usize, usize)>) { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs` is never used [INFO] [stdout] --> src/person/person.rs:4:8 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn abs(n: i32) -> i32 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `N` should have a snake case name [INFO] [stdout] --> src/collaborative_filtering/system.rs:27:60 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn recommend(&mut self, person_id: u64, feed: i32, N: usize) -> Vec { [INFO] [stdout] | ^ help: convert the identifier to snake case: `n` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` (part of `#[warn(nonstandard_style)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.62s [INFO] running `Command { std: "docker" "inspect" "b56ccabc50f32e9bcef751c4d4abf4db54a68b14eed1b35547c55ef6625e50f7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b56ccabc50f32e9bcef751c4d4abf4db54a68b14eed1b35547c55ef6625e50f7", kill_on_drop: false }` [INFO] [stdout] b56ccabc50f32e9bcef751c4d4abf4db54a68b14eed1b35547c55ef6625e50f7