[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] testing charro/coffeemachine against beta-2022-04-10 for beta-1.61-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcharro%2Fcoffeemachine" "/workspace/builds/worker-96/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-96/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/charro/coffeemachine on toolchain beta-2022-04-10 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-96/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: "/workspace/cargo-home/bin/cargo" "+beta-2022-04-10" "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-96/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-96/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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e5718ea5f42d05f0b663ed8dc7bf7666b8c0aa6ef15beab343b74b43acaf7447 [INFO] running `Command { std: "docker" "start" "-a" "e5718ea5f42d05f0b663ed8dc7bf7666b8c0aa6ef15beab343b74b43acaf7447", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e5718ea5f42d05f0b663ed8dc7bf7666b8c0aa6ef15beab343b74b43acaf7447", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e5718ea5f42d05f0b663ed8dc7bf7666b8c0aa6ef15beab343b74b43acaf7447", kill_on_drop: false }` [INFO] [stdout] e5718ea5f42d05f0b663ed8dc7bf7666b8c0aa6ef15beab343b74b43acaf7447 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-96/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-96/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1faa1e2c96794bff253825ccd27e25434d9d3773b4dff54bd197e4f52660a60e [INFO] running `Command { std: "docker" "start" "-a" "1faa1e2c96794bff253825ccd27e25434d9d3773b4dff54bd197e4f52660a60e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.32 [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling quote v1.0.10 [INFO] [stderr] Compiling approx v0.5.0 [INFO] [stderr] Compiling enum-iterator-derive v0.7.0 [INFO] [stderr] Compiling enum-iterator v0.7.0 [INFO] [stderr] Compiling coffemachine v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct is never constructed: `CustomerOrder` [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 is never constructed: `CoffeeMachine` [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: associated function is never used: `new` [INFO] [stdout] --> src/coffe_machine.rs:53:16 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn new(drink_type: DrinkType) -> CustomerOrder { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_sugar` [INFO] [stdout] --> src/coffe_machine.rs:57:16 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn with_sugar(mut self, sugar: u8) -> CustomerOrder { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `extra_hot` [INFO] [stdout] --> src/coffe_machine.rs:62:16 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn extra_hot(mut self) -> CustomerOrder { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/coffe_machine.rs:70:16 [INFO] [stdout] | [INFO] [stdout] 70 | pub fn new(quantity_checker: &'a dyn BeverageQuantityChecker, email_notifier: &'a dyn EmailNotifier) -> CoffeeMachine<'a> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_order_with_money` [INFO] [stdout] --> src/coffe_machine.rs:79:16 [INFO] [stdout] | [INFO] [stdout] 79 | pub fn process_order_with_money(&mut self, order: CustomerOrder, money: f32) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `process_order` [INFO] [stdout] --> src/coffe_machine.rs:89:16 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn process_order(&mut self, order: CustomerOrder) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_total_money_sold` [INFO] [stdout] --> src/coffe_machine.rs:103:16 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn get_total_money_sold(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_total_amount_sold` [INFO] [stdout] --> src/coffe_machine.rs:107:16 [INFO] [stdout] | [INFO] [stdout] 107 | pub fn get_total_amount_sold(&self, drink_type:DrinkType) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `register_order` [INFO] [stdout] --> src/coffe_machine.rs:111:12 [INFO] [stdout] | [INFO] [stdout] 111 | fn register_order(&mut self, order: CustomerOrder) { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `process_message` [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 is never used: `get_drink_code` [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 is never used: `get_extra_hot_code` [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 is never used: `get_sugars_code` [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 is never used: `get_spoon_code` [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 is never used: `check_missing_money_for_product` [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 is never used: `generate_sales_report` [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: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 13.23s [INFO] running `Command { std: "docker" "inspect" "1faa1e2c96794bff253825ccd27e25434d9d3773b4dff54bd197e4f52660a60e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1faa1e2c96794bff253825ccd27e25434d9d3773b4dff54bd197e4f52660a60e", kill_on_drop: false }` [INFO] [stdout] 1faa1e2c96794bff253825ccd27e25434d9d3773b4dff54bd197e4f52660a60e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-96/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-96/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0029c3646a45c3e733e041f0d309142ad3cf03499d4184999e9f925adf07ff61 [INFO] running `Command { std: "docker" "start" "-a" "0029c3646a45c3e733e041f0d309142ad3cf03499d4184999e9f925adf07ff61", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling predicates-core v1.0.2 [INFO] [stderr] Compiling termtree v0.2.3 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling normalize-line-endings v0.3.0 [INFO] [stderr] Compiling downcast v0.10.0 [INFO] [stderr] Compiling fragile v1.0.0 [INFO] [stderr] Compiling float-cmp v0.8.0 [INFO] [stderr] Compiling mockall_derive v0.10.2 [INFO] [stderr] Compiling predicates-tree v1.0.4 [INFO] [stderr] Compiling aho-corasick v0.7.18 [INFO] [stderr] Compiling regex v1.5.4 [INFO] [stderr] Compiling predicates v1.0.8 [INFO] [stderr] Compiling mockall v0.10.2 [INFO] [stderr] Compiling coffemachine v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 13.46s [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/coffemachine-38407116822ea051) [INFO] running `Command { std: "docker" "inspect" "0029c3646a45c3e733e041f0d309142ad3cf03499d4184999e9f925adf07ff61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0029c3646a45c3e733e041f0d309142ad3cf03499d4184999e9f925adf07ff61", kill_on_drop: false }` [INFO] [stdout] 0029c3646a45c3e733e041f0d309142ad3cf03499d4184999e9f925adf07ff61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-96/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-96/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=warn" "-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:b0c94ce3c1162fcb8e57cac5b65ec2f72eabb1eebea4fcc35e269e823f681646" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2022-04-10" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 47319edda7653ea7ea69a4e58b432b57e85b9e2883374930ec14a23c21a632ab [INFO] running `Command { std: "docker" "start" "-a" "47319edda7653ea7ea69a4e58b432b57e85b9e2883374930ec14a23c21a632ab", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 16.88s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/coffemachine-38407116822ea051) [INFO] [stdout] [INFO] [stdout] running 19 tests [INFO] [stdout] test tests::tests::test_accept_order_with_more_than_enough_money ... ok [INFO] [stdout] test tests::tests::test_beverage_shortage_generates_error_output ... ok [INFO] [stdout] test tests::tests::test_accept_order_with_exact_money ... ok [INFO] [stdout] test tests::tests::test_chocolate_two_sugars ... ok [INFO] [stdout] test tests::tests::test_coffee_no_sugar ... ok [INFO] [stdout] test tests::tests::test_exact_price_for_chocolate ... ok [INFO] [stdout] test tests::tests::test_beverage_shortage_sends_email ... ok [INFO] [stdout] test tests::tests::test_make_some_orders_and_check_how_many_sold_drinks ... ok [INFO] [stdout] test tests::tests::test_make_some_orders_and_check_resulting_money_earned ... ok [INFO] [stdout] test tests::tests::test_missing_money_for_chocolate ... ok [INFO] [stdout] test tests::tests::test_print_a_sales_report ... ok [INFO] [stdout] test tests::tests::test_reject_order_with_not_enough_money ... ok [INFO] [stdout] test tests::tests::test_tea_one_sugar ... ok [INFO] [stdout] test tests::tests::test_tea_two_sugars_extra_hot ... ok [INFO] [stdout] test tests::tests::test_user_message ... ok [INFO] [stdout] test tests::tests::test_excess_of_money_for_chocolate ... ok [INFO] [stdout] test tests::tests::test_exact_money_for_orange_juice ... ok [INFO] [stdout] test tests::tests::test_chocolate_no_sugar_extra_hot ... ok [INFO] [stdout] test tests::tests::test_orange_juice ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 19 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "47319edda7653ea7ea69a4e58b432b57e85b9e2883374930ec14a23c21a632ab", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "47319edda7653ea7ea69a4e58b432b57e85b9e2883374930ec14a23c21a632ab", kill_on_drop: false }` [INFO] [stdout] 47319edda7653ea7ea69a4e58b432b57e85b9e2883374930ec14a23c21a632ab