[INFO] cloning repository https://github.com/charro/coffeemachine [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/charro/coffeemachine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharro%2Fcoffeemachine", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharro%2Fcoffeemachine'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b7e43ee9ec3230b3e7705f4d7a48bebc4d29c73a [INFO] checking charro/coffeemachine against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharro%2Fcoffeemachine" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/charro/coffeemachine on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/charro/coffeemachine [INFO] finished tweaking git repo https://github.com/charro/coffeemachine [INFO] tweaked toml for git repo https://github.com/charro/coffeemachine written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/charro/coffeemachine 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded enum-iterator-derive v0.7.0 [INFO] [stderr] Downloaded enum-iterator v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 242b229f9d225667c1288db914d1eb3e51a6338a17a95b1c1ec23db87bb0eb93 [INFO] running `Command { std: "docker" "start" "-a" "242b229f9d225667c1288db914d1eb3e51a6338a17a95b1c1ec23db87bb0eb93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "242b229f9d225667c1288db914d1eb3e51a6338a17a95b1c1ec23db87bb0eb93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "242b229f9d225667c1288db914d1eb3e51a6338a17a95b1c1ec23db87bb0eb93", kill_on_drop: false }` [INFO] [stdout] 242b229f9d225667c1288db914d1eb3e51a6338a17a95b1c1ec23db87bb0eb93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c0840c828b771ca9f4eae88cdaa792ff2553f86f1eb19cf43d55cdd23951bdc0 [INFO] running `Command { std: "docker" "start" "-a" "c0840c828b771ca9f4eae88cdaa792ff2553f86f1eb19cf43d55cdd23951bdc0", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Checking predicates-core v1.0.2 [INFO] [stderr] Checking regex-syntax v0.6.25 [INFO] [stderr] Checking difference v2.0.0 [INFO] [stderr] Checking termtree v0.2.3 [INFO] [stderr] Checking aho-corasick v0.7.18 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking normalize-line-endings v0.3.0 [INFO] [stderr] Checking approx v0.5.0 [INFO] [stderr] Checking fragile v1.0.0 [INFO] [stderr] Checking downcast v0.10.0 [INFO] [stderr] Checking predicates-tree v1.0.4 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Checking regex v1.5.4 [INFO] [stderr] Checking predicates v1.0.8 [INFO] [stderr] Compiling enum-iterator-derive v0.7.0 [INFO] [stderr] Compiling mockall_derive v0.10.2 [INFO] [stderr] Checking enum-iterator v0.7.0 [INFO] [stderr] Checking coffemachine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `CustomerOrder` is never constructed [INFO] [stdout] --> src/coffe_machine.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub struct CustomerOrder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `CoffeeMachine` is never constructed [INFO] [stdout] --> src/coffe_machine.rs:35:16 [INFO] [stdout] | [INFO] [stdout] 35 | pub struct CoffeeMachine<'a> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `BeverageQuantityChecker` is never used [INFO] [stdout] --> src/coffe_machine.rs:43:15 [INFO] [stdout] | [INFO] [stdout] 43 | pub trait BeverageQuantityChecker { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `EmailNotifier` is never used [INFO] [stdout] --> src/coffe_machine.rs:48:15 [INFO] [stdout] | [INFO] [stdout] 48 | pub trait EmailNotifier { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `with_sugar`, and `extra_hot` are never used [INFO] [stdout] --> src/coffe_machine.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 52 | impl CustomerOrder { [INFO] [stdout] | ------------------ associated items in this implementation [INFO] [stdout] 53 | pub fn new(drink_type: DrinkType) -> CustomerOrder { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | pub fn with_sugar(mut self, sugar: u8) -> CustomerOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn extra_hot(mut self) -> CustomerOrder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `process_order_with_money`, `process_order`, `get_total_money_sold`, `get_total_amount_sold`, and `register_order` are never used [INFO] [stdout] --> src/coffe_machine.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 68 | impl <'a> CoffeeMachine <'_> { [INFO] [stdout] | ---------------------------- associated items in this implementation [INFO] [stdout] 69 | [INFO] [stdout] 70 | pub fn new(quantity_checker: &'a dyn BeverageQuantityChecker, email_notifier: &'a dyn EmailNotifier) -> CoffeeMachine<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn process_order_with_money(&mut self, order: CustomerOrder, money: f32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn process_order(&mut self, order: CustomerOrder) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 103 | pub fn get_total_money_sold(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 107 | pub fn get_total_amount_sold(&self, drink_type:DrinkType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 111 | fn register_order(&mut self, order: CustomerOrder) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_message` is never used [INFO] [stdout] --> src/coffe_machine.rs:121:12 [INFO] [stdout] | [INFO] [stdout] 121 | pub fn process_message(message: String) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_drink_code` is never used [INFO] [stdout] --> src/coffe_machine.rs:126:8 [INFO] [stdout] | [INFO] [stdout] 126 | fn get_drink_code(order: &CustomerOrder) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_extra_hot_code` is never used [INFO] [stdout] --> src/coffe_machine.rs:137:8 [INFO] [stdout] | [INFO] [stdout] 137 | fn get_extra_hot_code(extra_hot: bool) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_sugars_code` is never used [INFO] [stdout] --> src/coffe_machine.rs:144:8 [INFO] [stdout] | [INFO] [stdout] 144 | fn get_sugars_code(sugars: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_spoon_code` is never used [INFO] [stdout] --> src/coffe_machine.rs:151:8 [INFO] [stdout] | [INFO] [stdout] 151 | fn get_spoon_code(sugars: u8) -> &'static str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `check_missing_money_for_product` is never used [INFO] [stdout] --> src/price_manager.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn check_missing_money_for_product(drink_type: DrinkType, money: f32) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_sales_report` is never used [INFO] [stdout] --> src/printer.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn generate_sales_report(coffeemachine: &CoffeeMachine) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking mockall v0.10.2 [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.77s [INFO] running `Command { std: "docker" "inspect" "c0840c828b771ca9f4eae88cdaa792ff2553f86f1eb19cf43d55cdd23951bdc0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0840c828b771ca9f4eae88cdaa792ff2553f86f1eb19cf43d55cdd23951bdc0", kill_on_drop: false }` [INFO] [stdout] c0840c828b771ca9f4eae88cdaa792ff2553f86f1eb19cf43d55cdd23951bdc0