[INFO] cloning repository https://github.com/oddsafe5538/Rust-Gestion-Commerciale [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/oddsafe5538/Rust-Gestion-Commerciale" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foddsafe5538%2FRust-Gestion-Commerciale", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foddsafe5538%2FRust-Gestion-Commerciale'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 35058e55d727342bdc039922a2a7ff324002d953 [INFO] checking oddsafe5538/Rust-Gestion-Commerciale against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Foddsafe5538%2FRust-Gestion-Commerciale" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/oddsafe5538/Rust-Gestion-Commerciale on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/oddsafe5538/Rust-Gestion-Commerciale [INFO] finished tweaking git repo https://github.com/oddsafe5538/Rust-Gestion-Commerciale [INFO] tweaked toml for git repo https://github.com/oddsafe5538/Rust-Gestion-Commerciale written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/oddsafe5538/Rust-Gestion-Commerciale 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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bda49a5e817321256c5242c37373ec26536fe2e6d17cf13551d378a0933d38c6 [INFO] running `Command { std: "docker" "start" "-a" "bda49a5e817321256c5242c37373ec26536fe2e6d17cf13551d378a0933d38c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bda49a5e817321256c5242c37373ec26536fe2e6d17cf13551d378a0933d38c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bda49a5e817321256c5242c37373ec26536fe2e6d17cf13551d378a0933d38c6", kill_on_drop: false }` [INFO] [stdout] bda49a5e817321256c5242c37373ec26536fe2e6d17cf13551d378a0933d38c6 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ec794bb145f2b5d3aa7fe2a71a05d6384a0f4b445a468846e428aed89157c03 [INFO] running `Command { std: "docker" "start" "-a" "1ec794bb145f2b5d3aa7fe2a71a05d6384a0f4b445a468846e428aed89157c03", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling unicode-ident v1.0.16 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling zerocopy v0.8.17 [INFO] [stderr] Compiling getrandom v0.3.1 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.98 [INFO] [stderr] Checking rand_core v0.9.0 [INFO] [stderr] Compiling zerocopy-derive v0.7.35 [INFO] [stderr] Checking zerocopy v0.7.35 [INFO] [stderr] Checking ppv-lite86 v0.2.20 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.0 [INFO] [stderr] Checking rust_ges_com v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `iter::Product` [INFO] [stdout] --> src/commerce/mod.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, iter::Product}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `iter::Product` [INFO] [stdout] --> src/commerce/mod.rs:1:33 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{collections::HashMap, iter::Product}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commandes` is never read [INFO] [stdout] --> src/commerce/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct GestionCommerciale { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | commandes: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `creer_commande` and `calculer_total` are never used [INFO] [stdout] --> src/commerce/mod.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl GestionCommerciale { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn creer_commande(&mut self, client_id: u32, produits: Vec<(u32, u32)>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn calculer_total(&self, produits: Vec<(u32, u32)>) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `adress` is never read [INFO] [stdout] --> src/commerce/client/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Client { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub adress: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `client_id`, and `produits` are never read [INFO] [stdout] --> src/commerce/commande/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Commande { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 2 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 3 | client_id: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | produits: Vec<(u32, u32)>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/commerce/commande/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Commande { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(id: u32, client_id: u32, produits: Vec<(u32, u32)>) -> Commande { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `nom`, `prix`, and `stock` are never read [INFO] [stdout] --> src/commerce/product/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Produit { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 2 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 3 | nom: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | prix: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | stock: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price` is never used [INFO] [stdout] --> src/commerce/product/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Produit { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_price(&self)-> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `commandes` is never read [INFO] [stdout] --> src/commerce/mod.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct GestionCommerciale { [INFO] [stdout] | ------------------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 14 | commandes: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `creer_commande` and `calculer_total` are never used [INFO] [stdout] --> src/commerce/mod.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl GestionCommerciale { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn creer_commande(&mut self, client_id: u32, produits: Vec<(u32, u32)>) -> () { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 73 | fn calculer_total(&self, produits: Vec<(u32, u32)>) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `adress` is never read [INFO] [stdout] --> src/commerce/client/mod.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Client { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 5 | pub adress: String, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `client_id`, and `produits` are never read [INFO] [stdout] --> src/commerce/commande/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Commande { [INFO] [stdout] | -------- fields in this struct [INFO] [stdout] 2 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 3 | client_id: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 4 | produits: Vec<(u32, u32)>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/commerce/commande/mod.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 7 | impl Commande { [INFO] [stdout] | ------------- associated function in this implementation [INFO] [stdout] 8 | pub fn new(id: u32, client_id: u32, produits: Vec<(u32, u32)>) -> Commande { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `nom`, `prix`, and `stock` are never read [INFO] [stdout] --> src/commerce/product/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 1 | pub struct Produit { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 2 | id: u32, [INFO] [stdout] | ^^ [INFO] [stdout] 3 | nom: String, [INFO] [stdout] | ^^^ [INFO] [stdout] 4 | prix: f32, [INFO] [stdout] | ^^^^ [INFO] [stdout] 5 | stock: u32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_price` is never used [INFO] [stdout] --> src/commerce/product/mod.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 8 | impl Produit { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 18 | pub fn get_price(&self)-> f32 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 6.65s [INFO] running `Command { std: "docker" "inspect" "1ec794bb145f2b5d3aa7fe2a71a05d6384a0f4b445a468846e428aed89157c03", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ec794bb145f2b5d3aa7fe2a71a05d6384a0f4b445a468846e428aed89157c03", kill_on_drop: false }` [INFO] [stdout] 1ec794bb145f2b5d3aa7fe2a71a05d6384a0f4b445a468846e428aed89157c03