[INFO] cloning repository https://github.com/fulstaph/minmaxheap-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/fulstaph/minmaxheap-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffulstaph%2Fminmaxheap-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffulstaph%2Fminmaxheap-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c3f5d581174735248fa2e4d2a38bcfa184f7091c [INFO] checking fulstaph/minmaxheap-rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ffulstaph%2Fminmaxheap-rust" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/fulstaph/minmaxheap-rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/fulstaph/minmaxheap-rust [INFO] finished tweaking git repo https://github.com/fulstaph/minmaxheap-rust [INFO] tweaked toml for git repo https://github.com/fulstaph/minmaxheap-rust written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/fulstaph/minmaxheap-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded proc-macro-hack v0.5.12 [INFO] [stderr] Downloaded conditional v0.1.1 [INFO] [stderr] Downloaded conditional_impl v0.1.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d66d239d3b7beb23813a97bbe062e996325b2d0003688cd81dd6f5389423fc35 [INFO] running `Command { std: "docker" "start" "-a" "d66d239d3b7beb23813a97bbe062e996325b2d0003688cd81dd6f5389423fc35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d66d239d3b7beb23813a97bbe062e996325b2d0003688cd81dd6f5389423fc35", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d66d239d3b7beb23813a97bbe062e996325b2d0003688cd81dd6f5389423fc35", kill_on_drop: false }` [INFO] [stdout] d66d239d3b7beb23813a97bbe062e996325b2d0003688cd81dd6f5389423fc35 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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" "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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 42ca7610aa6718f3ec295046eef68383db51890cbf45973396a5c5e318320314 [INFO] running `Command { std: "docker" "start" "-a" "42ca7610aa6718f3ec295046eef68383db51890cbf45973396a5c5e318320314", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling proc-macro2 v1.0.9 [INFO] [stderr] Compiling quote v1.0.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling syn v1.0.16 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling proc-macro-hack v0.5.12 [INFO] [stderr] Compiling conditional_impl v0.1.1 [INFO] [stderr] Checking conditional v0.1.1 [INFO] [stderr] Checking min-max-heap v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/minmaxheap/minmaxheap.rs (1 fix) [INFO] [stderr] Fixed src/main.rs (1 fix) [INFO] [stderr] Fixed src/minmaxheap/minmaxheap_tests.rs (2 fixes) [INFO] [stdout] warning: associated function is never used: `from` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn from(v: &Vec) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `with_capacity` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:32:12 [INFO] [stdout] | [INFO] [stdout] 32 | pub fn with_capacity(len: usize) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `empty` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:38:12 [INFO] [stdout] | [INFO] [stdout] 38 | pub fn empty(&self) -> bool { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_min` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn peek_min(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `peek_max` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn peek_max(&self) -> Option { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `erase` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:103:12 [INFO] [stdout] | [INFO] [stdout] 103 | pub fn erase(&mut self) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `right_child` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:218:12 [INFO] [stdout] | [INFO] [stdout] 218 | pub fn right_child(index: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `is_on_max_level` [INFO] [stdout] --> src/minmaxheap/minmaxheap.rs:229:12 [INFO] [stdout] | [INFO] [stdout] 229 | pub fn is_on_max_level(index: usize) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum is never used: `Operation` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:112:6 [INFO] [stdout] | [INFO] [stdout] 112 | enum Operation { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `from` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:122:12 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn from(num: i32) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generate_random_data_set` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:135:4 [INFO] [stdout] | [INFO] [stdout] 135 | fn generate_random_data_set(size: usize) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MinMaxHeap` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:8:16 [INFO] [stdout] | [INFO] [stdout] 8 | let heap = MinMaxHeap::from(&v); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::MinMaxHeap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MinMaxHeap` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:16:16 [INFO] [stdout] | [INFO] [stdout] 16 | let heap = MinMaxHeap::from(&v); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::MinMaxHeap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MinMaxHeap` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | let mut heap = MinMaxHeap::from(&vec![1]); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::MinMaxHeap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MinMaxHeap` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:30:20 [INFO] [stdout] | [INFO] [stdout] 30 | let mut heap = MinMaxHeap::from(&v); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::MinMaxHeap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MinMaxHeap` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:45:20 [INFO] [stdout] | [INFO] [stdout] 45 | let mut heap = MinMaxHeap::from(&v); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::MinMaxHeap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MinMaxHeap` [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | let mut heap = MinMaxHeap::from(&cor_vec); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use crate::MinMaxHeap; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_range` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/minmaxheap/minmaxheap_tests.rs:65:34 [INFO] [stdout] | [INFO] [stdout] 65 | ... .gen_range(0, 5) as i32) [INFO] [stdout] | ^^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/rand-0.7.3/src/lib.rs:212:8 [INFO] [stdout] | [INFO] [stdout] 212 | fn gen_range(&mut self, low: B1, high: B2) -> T [INFO] [stdout] | --------- the method is available for `ThreadRng` here [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] = note: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] `use rand::Rng;` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0433, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `min-max-heap` due to 8 previous errors [INFO] [stderr] error: failed to migrate to next edition [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo fix --edition --allow-no-vcs --allow-dirty --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "42ca7610aa6718f3ec295046eef68383db51890cbf45973396a5c5e318320314", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "42ca7610aa6718f3ec295046eef68383db51890cbf45973396a5c5e318320314", kill_on_drop: false }` [INFO] [stdout] 42ca7610aa6718f3ec295046eef68383db51890cbf45973396a5c5e318320314