[INFO] cloning repository https://github.com/craterface77/rust-vending-machine
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/craterface77/rust-vending-machine" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcraterface77%2Frust-vending-machine", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcraterface77%2Frust-vending-machine'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c0ad8c6c2e7ce1e572b7b4b1c67ee320907b6571
[INFO] checking craterface77/rust-vending-machine against try#ac4c3613be2acd5395b65d85e5657b81e3c982f0 for pr-154585
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fcraterface77%2Frust-vending-machine" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/craterface77/rust-vending-machine
[INFO] finished tweaking git repo https://github.com/craterface77/rust-vending-machine
[INFO] tweaked toml for git repo https://github.com/craterface77/rust-vending-machine written to /workspace/builds/worker-7-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/craterface77/rust-vending-machine on toolchain ac4c3613be2acd5395b65d85e5657b81e3c982f0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/craterface77/rust-vending-machine 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" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 1b86dcb6511aa8231ee8a1412d0fa7021eb6d6514e322912fee4dbdfa316e7ed
[INFO] running `Command { std: "docker" "start" "-a" "1b86dcb6511aa8231ee8a1412d0fa7021eb6d6514e322912fee4dbdfa316e7ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "1b86dcb6511aa8231ee8a1412d0fa7021eb6d6514e322912fee4dbdfa316e7ed", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1b86dcb6511aa8231ee8a1412d0fa7021eb6d6514e322912fee4dbdfa316e7ed", kill_on_drop: false }`
[INFO] [stdout] 1b86dcb6511aa8231ee8a1412d0fa7021eb6d6514e322912fee4dbdfa316e7ed
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 8f90330eb02624514420e2be157e57b16eb35c19caca4f6e03001bfac24ef0f8
[INFO] running `Command { std: "docker" "start" "-a" "8f90330eb02624514420e2be157e57b16eb35c19caca4f6e03001bfac24ef0f8", kill_on_drop: false }`
[INFO] [stderr]     Checking rust-vending-machine v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: struct `CoinStorage` is never constructed
[INFO] [stdout]    --> src/main.rs:100:8
[INFO] [stdout]     |
[INFO] [stdout] 100 | struct CoinStorage {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `coin_index`, `add_coin`, and `give_change` are never used
[INFO] [stdout]    --> src/main.rs:105:8
[INFO] [stdout]     |
[INFO] [stdout] 104 | impl CoinStorage {
[INFO] [stdout]     | ---------------- associated items in this implementation
[INFO] [stdout] 105 |     fn new() -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 111 |     fn coin_index(nominal: &CoinNominal) -> usize {
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 122 |     fn add_coin(&mut self, nominal: CoinNominal, amount: u64) {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 126 |     fn give_change(&mut self, amount: u64) -> Result<Vec<CoinNominal>, PurchaseError> {
[INFO] [stdout]     |        ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Capacity` is never constructed
[INFO] [stdout]    --> src/main.rs:196:8
[INFO] [stdout]     |
[INFO] [stdout] 196 | struct Capacity {
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `New` is never constructed
[INFO] [stdout]    --> src/main.rs:203:8
[INFO] [stdout]     |
[INFO] [stdout] 203 | struct New;
[INFO] [stdout]     |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Configure` is never constructed
[INFO] [stdout]    --> src/main.rs:207:8
[INFO] [stdout]     |
[INFO] [stdout] 207 | struct Configure;
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Purchase` is never constructed
[INFO] [stdout]    --> src/main.rs:211:8
[INFO] [stdout]     |
[INFO] [stdout] 211 | struct Purchase;
[INFO] [stdout]     |        ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VendingMachine` is never constructed
[INFO] [stdout]    --> src/main.rs:216:8
[INFO] [stdout]     |
[INFO] [stdout] 216 | struct VendingMachine<S: State> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `product`, `max_capacity`, `max_product_item`, `current_balance`, and `list_products` are never used
[INFO] [stdout]    --> src/main.rs:226:12
[INFO] [stdout]     |
[INFO] [stdout] 224 | impl<S: State> VendingMachine<S> {
[INFO] [stdout]     | -------------------------------- methods in this implementation
[INFO] [stdout] 225 |
[INFO] [stdout] 226 |     pub fn product(&self, id: &product::Id) -> Option<&Product> {
[INFO] [stdout]     |            ^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 230 |     pub fn max_capacity(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 234 |     pub fn max_product_item(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 238 |     pub fn current_balance(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 242 |     pub fn list_products(&self) -> impl Iterator<Item = &Product> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated function `new` is never used
[INFO] [stdout]    --> src/main.rs:248:12
[INFO] [stdout]     |
[INFO] [stdout] 247 | impl VendingMachine<New> {
[INFO] [stdout]     | ------------------------ associated function in this implementation
[INFO] [stdout] 248 |     pub fn new(max_capacity: impl Into<capacity::MaxCapacity>, max_product_item: impl Into<capacity::MaxProductItem>) -> VendingMac...
[INFO] [stdout]     |            ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `add_product`, `remove_product`, `restock_product`, `load_coins`, and `finish_configuration` are never used
[INFO] [stdout]    --> src/main.rs:263:12
[INFO] [stdout]     |
[INFO] [stdout] 262 | impl VendingMachine<Configure> {
[INFO] [stdout]     | ------------------------------ methods in this implementation
[INFO] [stdout] 263 |     pub fn add_product(&mut self, product: impl Into<Product>) -> Result<(), ConfigError> {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 286 |     pub fn remove_product(&mut self, id: &product::Id) -> Option<Product> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 290 |     pub fn restock_product(
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 308 |     pub fn load_coins(&mut self, coin_nominal: CoinNominal, amount: u64) {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 312 |     pub fn finish_configuration(self) -> Result<VendingMachine<Purchase>, ConfigError> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `insert_coin`, `return_coins`, `purchase`, and `enter_configuration_mode` are never used
[INFO] [stdout]    --> src/main.rs:328:12
[INFO] [stdout]     |
[INFO] [stdout] 327 | impl VendingMachine<Purchase> {
[INFO] [stdout]     | ----------------------------- methods in this implementation
[INFO] [stdout] 328 |     pub fn insert_coin(&mut self, coin_nominal: CoinNominal) {
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 333 |     pub fn return_coins(&mut self) -> Result<Vec<CoinNominal>, PurchaseError> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 343 |     pub fn purchase(&mut self, id: &product::Id) -> Result<Vec<CoinNominal>, PurchaseError> {
[INFO] [stdout]     |            ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 363 |     pub fn enter_configuration_mode(mut self) -> Result<VendingMachine<Configure>, PurchaseError> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MaxCapacity` is never constructed
[INFO] [stdout]   --> src/main.rs:48:16
[INFO] [stdout]    |
[INFO] [stdout] 48 |     pub struct MaxCapacity(pub u64);
[INFO] [stdout]    |                ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `MaxProductItem` is never constructed
[INFO] [stdout]   --> src/main.rs:51:16
[INFO] [stdout]    |
[INFO] [stdout] 51 |     pub struct MaxProductItem(pub u64);
[INFO] [stdout]    |                ^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `vm`
[INFO] [stdout]    --> src/main.rs:390:13
[INFO] [stdout]     |
[INFO] [stdout] 390 |         let vm = VendingMachine::<New>::new(10, 50);
[INFO] [stdout]     |             ^^ help: if this is intentional, prefix it with an underscore: `_vm`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `product`
[INFO] [stdout]    --> src/main.rs:395:13
[INFO] [stdout]     |
[INFO] [stdout] 395 |         let product = Product::new(1, "Coke", 50, 10);
[INFO] [stdout]     |             ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_product`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `vm`
[INFO] [stdout]    --> src/main.rs:396:13
[INFO] [stdout]     |
[INFO] [stdout] 396 |         let vm = VendingMachine::<New>::new(10, 50);
[INFO] [stdout]     |             ^^ help: if this is intentional, prefix it with an underscore: `_vm`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/main.rs:670:13
[INFO] [stdout]     |
[INFO] [stdout] 670 |         let mut vm = vm.finish_configuration().unwrap();
[INFO] [stdout]     |             ----^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `max_capacity`, `max_product_item`, and `list_products` are never used
[INFO] [stdout]    --> src/main.rs:230:12
[INFO] [stdout]     |
[INFO] [stdout] 224 | impl<S: State> VendingMachine<S> {
[INFO] [stdout]     | -------------------------------- methods in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 230 |     pub fn max_capacity(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 234 |     pub fn max_product_item(&self) -> u64 {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 242 |     pub fn list_products(&self) -> impl Iterator<Item = &Product> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.11s
[INFO] running `Command { std: "docker" "inspect" "8f90330eb02624514420e2be157e57b16eb35c19caca4f6e03001bfac24ef0f8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "8f90330eb02624514420e2be157e57b16eb35c19caca4f6e03001bfac24ef0f8", kill_on_drop: false }`
[INFO] [stdout] 8f90330eb02624514420e2be157e57b16eb35c19caca4f6e03001bfac24ef0f8
