[INFO] fetching crate median 0.3.1... [INFO] checking median-0.3.1 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] extracting crate median 0.3.1 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate median 0.3.1 on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate median 0.3.1 [INFO] finished tweaking crates.io crate median 0.3.1 [INFO] tweaked toml for crates.io crate median 0.3.1 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded arraydeque v0.4.5 [INFO] [stderr] Downloaded noisy_float v0.1.15 [INFO] [stderr] Downloaded missing_mpl v0.1.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f785f8df3d4cca7b01ae3742223490445f43308f1ef627abd7418389688ca7dc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "f785f8df3d4cca7b01ae3742223490445f43308f1ef627abd7418389688ca7dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f785f8df3d4cca7b01ae3742223490445f43308f1ef627abd7418389688ca7dc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f785f8df3d4cca7b01ae3742223490445f43308f1ef627abd7418389688ca7dc", kill_on_drop: false }` [INFO] [stdout] f785f8df3d4cca7b01ae3742223490445f43308f1ef627abd7418389688ca7dc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 92df126a31d8beaabeae6471f6825e8c71623246836556dc55214e3f268eecb9 [INFO] running `Command { std: "docker" "start" "-a" "92df126a31d8beaabeae6471f6825e8c71623246836556dc55214e3f268eecb9", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling typenum v1.13.0 [INFO] [stderr] Compiling libc v0.2.88 [INFO] [stderr] Compiling arraydeque v0.4.5 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking generic-array v0.11.2 [INFO] [stderr] Checking median v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Checking noisy_float v0.1.15 [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> benches/main.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let mut aux_buffer = mem::MaybeUninit::::uninit(); [INFO] [stdout] | ----^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.aux_buffer` which is behind a mutable reference [INFO] [stdout] --> benches/main.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ move occurs because `self.aux_buffer` has type `MaybeUninit`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0716]: temporary value dropped while borrowed [INFO] [stdout] --> benches/main.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stdout] | | [INFO] [stdout] | creates a temporary which is freed while still in use [INFO] [stdout] 50 | for (index, item) in self.buffer.iter().enumerate() { [INFO] [stdout] 51 | slice[index] = item.clone(); [INFO] [stdout] | ------------ borrow later used here [INFO] [stdout] | [INFO] [stdout] = note: consider using a `let` binding to create a longer lived value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.aux_buffer` which is behind a mutable reference [INFO] [stdout] --> benches/main.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stdout] | ^^^^^^^^^^^^^^^ move occurs because `self.aux_buffer` has type `MaybeUninit`, which does not implement the `Copy` trait [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0515]: cannot return value referencing temporary value [INFO] [stdout] --> benches/main.rs:81:13 [INFO] [stdout] | [INFO] [stdout] 79 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stdout] | ----------------------------- temporary value created here [INFO] [stdout] 80 | if low == high { [INFO] [stdout] 81 | &slice[low] [INFO] [stdout] | ^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function is unsafe and requires unsafe function or block [INFO] [stdout] --> benches/main.rs:49:30 [INFO] [stdout] | [INFO] [stdout] 49 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0133]: call to unsafe function is unsafe and requires unsafe function or block [INFO] [stdout] --> benches/main.rs:79:26 [INFO] [stdout] | [INFO] [stdout] 79 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stdout] | [INFO] [stdout] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0133, E0507, E0515, E0716. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0133`. [INFO] [stdout] [INFO] [stderr] error: could not compile `median` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "92df126a31d8beaabeae6471f6825e8c71623246836556dc55214e3f268eecb9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92df126a31d8beaabeae6471f6825e8c71623246836556dc55214e3f268eecb9", kill_on_drop: false }` [INFO] [stdout] 92df126a31d8beaabeae6471f6825e8c71623246836556dc55214e3f268eecb9