[INFO] cloning repository https://github.com/sanarberkebayram/heap-vs-stack
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sanarberkebayram/heap-vs-stack" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsanarberkebayram%2Fheap-vs-stack", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsanarberkebayram%2Fheap-vs-stack'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 5665ea10ac97f021138882176b045d07e766b1d1
[INFO] checking sanarberkebayram/heap-vs-stack against try#0611f7de057c584b8771102fde7aed6c70c71d3b for pr-146440
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsanarberkebayram%2Fheap-vs-stack" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/sanarberkebayram/heap-vs-stack
[INFO] finished tweaking git repo https://github.com/sanarberkebayram/heap-vs-stack
[INFO] tweaked toml for git repo https://github.com/sanarberkebayram/heap-vs-stack written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/sanarberkebayram/heap-vs-stack on toolchain 0611f7de057c584b8771102fde7aed6c70c71d3b
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/sanarberkebayram/heap-vs-stack 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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] c4e26c1a5c85a7b601a6d1a746cc3922977c5d65953e4e74cde92060bbc0bd1f
[INFO] running `Command { std: "docker" "start" "-a" "c4e26c1a5c85a7b601a6d1a746cc3922977c5d65953e4e74cde92060bbc0bd1f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "c4e26c1a5c85a7b601a6d1a746cc3922977c5d65953e4e74cde92060bbc0bd1f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "c4e26c1a5c85a7b601a6d1a746cc3922977c5d65953e4e74cde92060bbc0bd1f", kill_on_drop: false }`
[INFO] [stdout] c4e26c1a5c85a7b601a6d1a746cc3922977c5d65953e4e74cde92060bbc0bd1f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+0611f7de057c584b8771102fde7aed6c70c71d3b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 66db340e92ae6698b89f1b8613093da08ca6d8f6ac65af18535012352d34ef02
[INFO] running `Command { std: "docker" "start" "-a" "66db340e92ae6698b89f1b8613093da08ca6d8f6ac65af18535012352d34ef02", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.101
[INFO] [stderr]    Compiling libc v0.2.175
[INFO] [stderr]     Checking clap_lex v0.7.5
[INFO] [stderr]     Checking ciborium-io v0.2.2
[INFO] [stderr]     Checking memchr v2.7.5
[INFO] [stderr]     Checking half v2.6.0
[INFO] [stderr]     Checking regex-syntax v0.8.6
[INFO] [stderr]     Checking anstyle v1.0.11
[INFO] [stderr]     Checking itertools v0.10.5
[INFO] [stderr]     Checking cast v0.3.0
[INFO] [stderr]     Checking oorandom v11.1.5
[INFO] [stderr]     Checking anes v0.1.6
[INFO] [stderr]     Checking heap_vs_stack v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Checking plotters v0.3.7
[INFO] [stderr]     Checking rayon v1.11.0
[INFO] [stdout] warning: unused imports: `ecommerce_heap::heap_test` and `ecommerce_stack::stack_test`
[INFO] [stdout]  --> src/lib.rs:1:13
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::{ecommerce_heap::heap_test, ecommerce_stack::stack_test};
[INFO] [stdout]   |             ^^^^^^^^^^^^^^^^^^^^^^^^^  ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ecommerce_stack.rs:126:9
[INFO] [stdout]     |
[INFO] [stdout] 126 |     let mut laptop = Product::new("Laptop", 15000.0, NoDiscount);
[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: variable does not need to be mutable
[INFO] [stdout]    --> src/ecommerce_stack.rs:127:9
[INFO] [stdout]     |
[INFO] [stdout] 127 |     let mut mouse = Product::new("Gaming Mouse", 1200.0, NoDiscount);
[INFO] [stdout]     |         ----^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/ecommerce_stack.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 128 |     let mut keyboard = Product::new("Mechanical Keyboard", 800.0, NoDiscount);
[INFO] [stdout]     |         ----^^^^^^^^
[INFO] [stdout]     |         |
[INFO] [stdout]     |         help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ecommerce_stack::DiscountStrategy` is more private than the item `ecommerce_stack::Product`
[INFO] [stdout]   --> src/ecommerce_stack.rs:43:1
[INFO] [stdout]    |
[INFO] [stdout] 43 | pub struct Product<S: DiscountStrategy> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `ecommerce_stack::Product` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but trait `ecommerce_stack::DiscountStrategy` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/ecommerce_stack.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | trait DiscountStrategy {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]    = note: `#[warn(private_bounds)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ecommerce_stack::DiscountStrategy` is more private than the item `ecommerce_stack::Product<S>`
[INFO] [stdout]   --> src/ecommerce_stack.rs:49:1
[INFO] [stdout]    |
[INFO] [stdout] 49 | impl<S: DiscountStrategy> Product<S> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation `ecommerce_stack::Product<S>` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but trait `ecommerce_stack::DiscountStrategy` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/ecommerce_stack.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | trait DiscountStrategy {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ecommerce_stack::ProductComponent` is more private than the item `ecommerce_stack::ProductBundle`
[INFO] [stdout]   --> src/ecommerce_stack.rs:83:1
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub struct ProductBundle<C: ProductComponent, S: DiscountStrategy> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `ecommerce_stack::ProductBundle` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but trait `ecommerce_stack::ProductComponent` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/ecommerce_stack.rs:37:1
[INFO] [stdout]    |
[INFO] [stdout] 37 | trait ProductComponent {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ecommerce_stack::DiscountStrategy` is more private than the item `ecommerce_stack::ProductBundle`
[INFO] [stdout]   --> src/ecommerce_stack.rs:83:1
[INFO] [stdout]    |
[INFO] [stdout] 83 | pub struct ProductBundle<C: ProductComponent, S: DiscountStrategy> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ struct `ecommerce_stack::ProductBundle` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but trait `ecommerce_stack::DiscountStrategy` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/ecommerce_stack.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | trait DiscountStrategy {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ecommerce_stack::ProductComponent` is more private than the item `ecommerce_stack::ProductBundle<C, S>`
[INFO] [stdout]   --> src/ecommerce_stack.rs:89:1
[INFO] [stdout]    |
[INFO] [stdout] 89 | impl<C: ProductComponent, S: DiscountStrategy> ProductBundle<C, S> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation `ecommerce_stack::ProductBundle<C, S>` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but trait `ecommerce_stack::ProductComponent` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/ecommerce_stack.rs:37:1
[INFO] [stdout]    |
[INFO] [stdout] 37 | trait ProductComponent {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ecommerce_stack::DiscountStrategy` is more private than the item `ecommerce_stack::ProductBundle<C, S>`
[INFO] [stdout]   --> src/ecommerce_stack.rs:89:1
[INFO] [stdout]    |
[INFO] [stdout] 89 | impl<C: ProductComponent, S: DiscountStrategy> ProductBundle<C, S> {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ implementation `ecommerce_stack::ProductBundle<C, S>` is reachable at visibility `pub`
[INFO] [stdout]    |
[INFO] [stdout] note: but trait `ecommerce_stack::DiscountStrategy` is only usable at visibility `pub(self)`
[INFO] [stdout]   --> src/ecommerce_stack.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout]  1 | trait DiscountStrategy {
[INFO] [stdout]    | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `ecommerce_stack::DiscountStrategy` is more private than the item `ecommerce_stack::ProductBundle::<C, S>::set_discount_strategy`
[INFO] [stdout]    --> src/ecommerce_stack.rs:116:5
[INFO] [stdout]     |
[INFO] [stdout] 116 |     pub fn set_discount_strategy<T: DiscountStrategy>(self, strategy: T) -> ProductBundle<C, T> {
[INFO] [stdout]     |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ method `ecommerce_stack::ProductBundle::<C, S>::set_discount_strategy` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but trait `ecommerce_stack::DiscountStrategy` is only usable at visibility `pub(self)`
[INFO] [stdout]    --> src/ecommerce_stack.rs:1:1
[INFO] [stdout]     |
[INFO] [stdout]   1 | trait DiscountStrategy {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error: struct `FixedDiscount` is never constructed
[INFO] [stdout]   --> src/ecommerce_heap.rs:10:12
[INFO] [stdout]    |
[INFO] [stdout] 10 | pub struct FixedDiscount(f64);
[INFO] [stdout]    |            ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: this `pub` struct has private fields, no public constructor, and is not otherwise reachable through the external API, so consider providing a public constructor or removing it
[INFO] [stdout]    = note: `#[deny(unused_unconstructable_pub_struct)]` (part of `#[deny(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `PriceObserver` is never used
[INFO] [stdout]    --> src/ecommerce_heap.rs:136:7
[INFO] [stdout]     |
[INFO] [stdout] 136 | trait PriceObserver {
[INFO] [stdout]     |       ^^^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `PriceDisplayObserver` is never constructed
[INFO] [stdout]    --> src/ecommerce_heap.rs:140:8
[INFO] [stdout]     |
[INFO] [stdout] 140 | struct PriceDisplayObserver;
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `ObservableProduct` is never constructed
[INFO] [stdout]    --> src/ecommerce_heap.rs:148:8
[INFO] [stdout]     |
[INFO] [stdout] 148 | struct ObservableProduct<'a> {
[INFO] [stdout]     |        ^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new`, `add_observer`, and `notify` are never used
[INFO] [stdout]    --> src/ecommerce_heap.rs:154:8
[INFO] [stdout]     |
[INFO] [stdout] 153 | impl<'a> ObservableProduct<'a> {
[INFO] [stdout]     | ------------------------------ associated items in this implementation
[INFO] [stdout] 154 |     fn new(name: &'a str, price: f64, strategy: &'static dyn DiscountStrategy) -> Self {
[INFO] [stdout]     |        ^^^
[INFO] [stdout] ...
[INFO] [stdout] 160 |     fn add_observer(&self, observer: &'a dyn PriceObserver) {
[INFO] [stdout]     |        ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 163 |     fn notify(&self) {
[INFO] [stdout]     |        ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `FIXED_2000` is never used
[INFO] [stdout]    --> src/ecommerce_heap.rs:187:8
[INFO] [stdout]     |
[INFO] [stdout] 187 | static FIXED_2000: FixedDiscount = FixedDiscount(2000.0);
[INFO] [stdout]     |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: static `FIXED_200` is never used
[INFO] [stdout]    --> src/ecommerce_heap.rs:188:8
[INFO] [stdout]     |
[INFO] [stdout] 188 | static FIXED_200: FixedDiscount = FixedDiscount(200.0);
[INFO] [stdout]     |        ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_discount_strategy` is never used
[INFO] [stdout]   --> src/ecommerce_stack.rs:40:8
[INFO] [stdout]    |
[INFO] [stdout] 37 | trait ProductComponent {
[INFO] [stdout]    |       ---------------- method in this trait
[INFO] [stdout] ...
[INFO] [stdout] 40 |     fn set_discount_strategy(&mut self);
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `set_strategy` is never used
[INFO] [stdout]   --> src/ecommerce_stack.rs:58:8
[INFO] [stdout]    |
[INFO] [stdout] 49 | impl<S: DiscountStrategy> Product<S> {
[INFO] [stdout]    | ------------------------------------ method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 58 |     fn set_strategy<T: DiscountStrategy>(self, strategy: T) -> Product<T> {
[INFO] [stdout]    |        ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `heap_vs_stack` (lib) due to 1 previous error; 19 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "66db340e92ae6698b89f1b8613093da08ca6d8f6ac65af18535012352d34ef02", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "66db340e92ae6698b89f1b8613093da08ca6d8f6ac65af18535012352d34ef02", kill_on_drop: false }`
[INFO] [stdout] 66db340e92ae6698b89f1b8613093da08ca6d8f6ac65af18535012352d34ef02
