[INFO] crate median 0.3.1 is already in cache [INFO] checking median-0.3.1 against master#45d050cde277b22a755847338f2acc2c7b834141 for pr-71393 [INFO] extracting crate median 0.3.1 into /workspace/builds/worker-6/source [INFO] validating manifest of crates.io crate median 0.3.1 on toolchain 45d050cde277b22a755847338f2acc2c7b834141 [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "read-manifest" "--manifest-path" "Cargo.toml"` [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-6/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+45d050cde277b22a755847338f2acc2c7b834141" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] d3757088389eeb1e1b1906771276cc6cf2bdb712d1f0d0a5b275ec32f3529e87 [INFO] running `"docker" "start" "-a" "d3757088389eeb1e1b1906771276cc6cf2bdb712d1f0d0a5b275ec32f3529e87"` [INFO] [stderr] Compiling typenum v1.12.0 [INFO] [stderr] Compiling libc v0.2.69 [INFO] [stderr] Compiling arraydeque v0.4.5 [INFO] [stderr] Checking noisy_float v0.1.12 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking generic-array v0.11.1 [INFO] [stderr] Checking median v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> benches/main.rs:37:13 [INFO] [stderr] | [INFO] [stderr] 37 | let mut aux_buffer = mem::MaybeUninit::::uninit(); [INFO] [stderr] | ----^^^^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0507]: cannot move out of `self.aux_buffer` which is behind a mutable reference [INFO] [stderr] --> benches/main.rs:49:30 [INFO] [stderr] | [INFO] [stderr] 49 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stderr] | ^^^^^^^^^^^^^^^ move occurs because `self.aux_buffer` has type `std::mem::MaybeUninit`, which does not implement the `Copy` trait [INFO] [stderr] [INFO] [stderr] error[E0716]: temporary value dropped while borrowed [INFO] [stderr] --> benches/main.rs:49:30 [INFO] [stderr] | [INFO] [stderr] 49 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - temporary value is freed at the end of this statement [INFO] [stderr] | | [INFO] [stderr] | creates a temporary which is freed while still in use [INFO] [stderr] 50 | for (index, item) in self.buffer.iter().enumerate() { [INFO] [stderr] 51 | slice[index] = item.clone(); [INFO] [stderr] | ------------ borrow later used here [INFO] [stderr] | [INFO] [stderr] = note: consider using a `let` binding to create a longer lived value [INFO] [stderr] [INFO] [stderr] error[E0507]: cannot move out of `self.aux_buffer` which is behind a mutable reference [INFO] [stderr] --> benches/main.rs:79:26 [INFO] [stderr] | [INFO] [stderr] 79 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stderr] | ^^^^^^^^^^^^^^^ move occurs because `self.aux_buffer` has type `std::mem::MaybeUninit`, which does not implement the `Copy` trait [INFO] [stderr] [INFO] [stderr] error[E0515]: cannot return value referencing temporary value [INFO] [stderr] --> benches/main.rs:81:13 [INFO] [stderr] | [INFO] [stderr] 79 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stderr] | ----------------------------- temporary value created here [INFO] [stderr] 80 | if low == high { [INFO] [stderr] 81 | &slice[low] [INFO] [stderr] | ^^^^^^^^^^^ returns a value referencing data owned by the current function [INFO] [stderr] [INFO] [stderr] error[E0133]: call to unsafe function is unsafe and requires unsafe function or block [INFO] [stderr] --> benches/main.rs:49:30 [INFO] [stderr] | [INFO] [stderr] 49 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] error[E0133]: call to unsafe function is unsafe and requires unsafe function or block [INFO] [stderr] --> benches/main.rs:79:26 [INFO] [stderr] | [INFO] [stderr] 79 | let slice = &mut self.aux_buffer.assume_init().as_mut_slice()[0..size]; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ call to unsafe function [INFO] [stderr] | [INFO] [stderr] = note: consult the function's documentation for information on how to avoid undefined behavior [INFO] [stderr] [INFO] [stderr] error: aborting due to 6 previous errors; 1 warning emitted [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0133, E0507, E0515, E0716. [INFO] [stderr] For more information about an error, try `rustc --explain E0133`. [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 `"docker" "inspect" "d3757088389eeb1e1b1906771276cc6cf2bdb712d1f0d0a5b275ec32f3529e87"` [INFO] running `"docker" "rm" "-f" "d3757088389eeb1e1b1906771276cc6cf2bdb712d1f0d0a5b275ec32f3529e87"` [INFO] [stdout] d3757088389eeb1e1b1906771276cc6cf2bdb712d1f0d0a5b275ec32f3529e87