[INFO] cloning repository https://github.com/rroelke/comparatorheap.rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rroelke/comparatorheap.rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frroelke%2Fcomparatorheap.rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frroelke%2Fcomparatorheap.rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c1b6550bf0d153227c7ad02d1e7efb374ade3af9 [INFO] checking rroelke/comparatorheap.rs against master#8365fcb2b840c95eeb0bc377af8bd498fad22245 for pr-145604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frroelke%2Fcomparatorheap.rs" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/rroelke/comparatorheap.rs [INFO] finished tweaking git repo https://github.com/rroelke/comparatorheap.rs [INFO] tweaked toml for git repo https://github.com/rroelke/comparatorheap.rs written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/rroelke/comparatorheap.rs on toolchain 8365fcb2b840c95eeb0bc377af8bd498fad22245 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/rroelke/comparatorheap.rs 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" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: path `src/comparatorheap.rs` was erroneously implicitly accepted for library `comparatorheap`, [INFO] [stderr] please rename the file to `src/lib.rs` or set lib.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f7bc4e58fe8b4fdb304f831dad7002acbd8d580cb8a145ef2d404ebc5b47376 [INFO] running `Command { std: "docker" "start" "-a" "1f7bc4e58fe8b4fdb304f831dad7002acbd8d580cb8a145ef2d404ebc5b47376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f7bc4e58fe8b4fdb304f831dad7002acbd8d580cb8a145ef2d404ebc5b47376", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f7bc4e58fe8b4fdb304f831dad7002acbd8d580cb8a145ef2d404ebc5b47376", kill_on_drop: false }` [INFO] [stdout] 1f7bc4e58fe8b4fdb304f831dad7002acbd8d580cb8a145ef2d404ebc5b47376 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+8365fcb2b840c95eeb0bc377af8bd498fad22245" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 316aae164439cee51422aab8782435f800dfca021065c01ee6f9789b89e96615 [INFO] running `Command { std: "docker" "start" "-a" "316aae164439cee51422aab8782435f800dfca021065c01ee6f9789b89e96615", kill_on_drop: false }` [INFO] [stderr] warning: path `src/comparatorheap.rs` was erroneously implicitly accepted for library `comparatorheap`, [INFO] [stderr] please rename the file to `src/lib.rs` or set lib.path in Cargo.toml [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking comparatorheap v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/comparatorheap.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 31 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/comparatorheap.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:45:68 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn with_capacity(cmp : fn (&T, &T) -> Ordering, capacity : uint) -> ComparatorHeap { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/comparatorheap.rs:31:3 [INFO] [stdout] | [INFO] [stdout] 31 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn capacity(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:56:41 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn reserve_exact(&mut self, n : uint) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn reserve(&mut self, n : uint) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:106:26 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn len(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: variant `Equal` is private [INFO] [stdout] --> src/comparatorheap.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{Equal, Ordering}; [INFO] [stdout] | ^^^^^ private variant [INFO] [stdout] | [INFO] [stdout] note: the variant `Equal` is defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/core/src/cmp.rs:31:5 [INFO] [stdout] help: import `Equal` directly [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{core::cmp::Ordering::Equal, Ordering}; [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `deriving` in this scope [INFO] [stdout] --> src/comparatorheap.rs:4:3 [INFO] [stdout] | [INFO] [stdout] 4 | #[deriving(Clone)] [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:45:68 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn with_capacity(cmp : fn (&T, &T) -> Ordering, capacity : uint) -> ComparatorHeap { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:52:31 [INFO] [stdout] | [INFO] [stdout] 52 | pub fn capacity(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:56:41 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn reserve_exact(&mut self, n : uint) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:60:35 [INFO] [stdout] | [INFO] [stdout] 60 | pub fn reserve(&mut self, n : uint) { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `uint` in this scope [INFO] [stdout] --> src/comparatorheap.rs:106:26 [INFO] [stdout] | [INFO] [stdout] 106 | pub fn len(&self) -> uint { [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0603]: variant `Equal` is private [INFO] [stdout] --> src/comparatorheap.rs:1:16 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{Equal, Ordering}; [INFO] [stdout] | ^^^^^ private variant [INFO] [stdout] | [INFO] [stdout] note: the variant `Equal` is defined here [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/core/src/cmp.rs:31:5 [INFO] [stdout] help: import `Equal` directly [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::{core::cmp::Ordering::Equal, Ordering}; [INFO] [stdout] | +++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `top` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | match self.heap.top() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `pop` with a similar name [INFO] [stdout] | [INFO] [stdout] 65 - match self.heap.top() { [INFO] [stdout] 65 + match self.heap.pop() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_pop` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:88:19 [INFO] [stdout] | [INFO] [stdout] 88 | self.heap.push_pop(ComparatorHeapItem { [INFO] [stdout] | ----------^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `push` with a similar name [INFO] [stdout] | [INFO] [stdout] 88 - self.heap.push_pop(ComparatorHeapItem { [INFO] [stdout] 88 + self.heap.push(ComparatorHeapItem { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `replace` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | match self.heap.replace(ComparatorHeapItem { [INFO] [stdout] | ----------^^^^^^^ method not found in `BinaryHeap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_vec` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:130:32 [INFO] [stdout] | [INFO] [stdout] 130 | heap : BinaryHeap::from_vec(vs) [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `BinaryHeap<_, _>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `BinaryHeap<_, _>` consider using one of the following associated functions: [INFO] [stdout] BinaryHeap::::new [INFO] [stdout] BinaryHeap::::with_capacity [INFO] [stdout] BinaryHeap::::new_in [INFO] [stdout] BinaryHeap::::with_capacity_in [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/alloc/src/collections/binary_heap/mod.rs:514:5 [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 130 - heap : BinaryHeap::from_vec(vs) [INFO] [stdout] 130 + heap : BinaryHeap::from(vs) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/comparatorheap.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | Equal => true, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `top` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:65:25 [INFO] [stdout] | [INFO] [stdout] 65 | match self.heap.top() { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `pop` with a similar name [INFO] [stdout] | [INFO] [stdout] 65 - match self.heap.top() { [INFO] [stdout] 65 + match self.heap.pop() { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/comparatorheap.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 14 | Equal => true, [INFO] [stdout] | ----- matches any value [INFO] [stdout] 15 | _ => false [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/comparatorheap.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | Equal => true, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `push_pop` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:88:19 [INFO] [stdout] | [INFO] [stdout] 88 | self.heap.push_pop(ComparatorHeapItem { [INFO] [stdout] | ----------^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: there is a method `push` with a similar name [INFO] [stdout] | [INFO] [stdout] 88 - self.heap.push_pop(ComparatorHeapItem { [INFO] [stdout] 88 + self.heap.push(ComparatorHeapItem { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `replace` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:97:25 [INFO] [stdout] | [INFO] [stdout] 97 | match self.heap.replace(ComparatorHeapItem { [INFO] [stdout] | ----------^^^^^^^ method not found in `BinaryHeap>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0170, E0412, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_vec` found for struct `BinaryHeap` in the current scope [INFO] [stdout] --> src/comparatorheap.rs:130:32 [INFO] [stdout] | [INFO] [stdout] 130 | heap : BinaryHeap::from_vec(vs) [INFO] [stdout] | ^^^^^^^^ function or associated item not found in `BinaryHeap<_, _>` [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `BinaryHeap<_, _>` consider using one of the following associated functions: [INFO] [stdout] BinaryHeap::::new [INFO] [stdout] BinaryHeap::::with_capacity [INFO] [stdout] BinaryHeap::::new_in [INFO] [stdout] BinaryHeap::::with_capacity_in [INFO] [stdout] --> /rustc/8365fcb2b840c95eeb0bc377af8bd498fad22245/library/alloc/src/collections/binary_heap/mod.rs:514:5 [INFO] [stdout] help: there is an associated function `from` with a similar name [INFO] [stdout] | [INFO] [stdout] 130 - heap : BinaryHeap::from_vec(vs) [INFO] [stdout] 130 + heap : BinaryHeap::from(vs) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `Equal` is named the same as one of the variants of the type `std::cmp::Ordering` [INFO] [stdout] --> src/comparatorheap.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | Equal => true, [INFO] [stdout] | ^^^^^ help: to match on the variant, qualify the path: `std::cmp::Ordering::Equal` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/comparatorheap.rs:15:13 [INFO] [stdout] | [INFO] [stdout] 14 | Equal => true, [INFO] [stdout] | ----- matches any value [INFO] [stdout] 15 | _ => false [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `Equal` [INFO] [stdout] --> src/comparatorheap.rs:14:13 [INFO] [stdout] | [INFO] [stdout] 14 | Equal => true, [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_Equal` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `comparatorheap` (lib test) due to 13 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0170, E0412, E0599, E0603. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0170`. [INFO] [stdout] [INFO] [stderr] error: could not compile `comparatorheap` (lib) due to 13 previous errors; 2 warnings emitted [INFO] running `Command { std: "docker" "inspect" "316aae164439cee51422aab8782435f800dfca021065c01ee6f9789b89e96615", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "316aae164439cee51422aab8782435f800dfca021065c01ee6f9789b89e96615", kill_on_drop: false }` [INFO] [stdout] 316aae164439cee51422aab8782435f800dfca021065c01ee6f9789b89e96615