[INFO] fetching crate const-linear 0.1.0... [INFO] checking const-linear-0.1.0 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] extracting crate const-linear 0.1.0 into /workspace/builds/worker-5-tc1/source [INFO] validating manifest of crates.io crate const-linear 0.1.0 on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate const-linear 0.1.0 [INFO] finished tweaking crates.io crate const-linear 0.1.0 [INFO] tweaked toml for crates.io crate const-linear 0.1.0 written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 809c18ddfa58f0b43b2a9e085322a5e99f55369fc0981c840fdd36a1743d5dc2 [INFO] running `Command { std: "docker" "start" "-a" "809c18ddfa58f0b43b2a9e085322a5e99f55369fc0981c840fdd36a1743d5dc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "809c18ddfa58f0b43b2a9e085322a5e99f55369fc0981c840fdd36a1743d5dc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "809c18ddfa58f0b43b2a9e085322a5e99f55369fc0981c840fdd36a1743d5dc2", kill_on_drop: false }` [INFO] [stdout] 809c18ddfa58f0b43b2a9e085322a5e99f55369fc0981c840fdd36a1743d5dc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5f40ec64717442338e7367f2cc4457164c751899f3dda74e4a936963a3323108 [INFO] running `Command { std: "docker" "start" "-a" "5f40ec64717442338e7367f2cc4457164c751899f3dda74e4a936963a3323108", kill_on_drop: false }` [INFO] [stderr] Checking const-linear v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in favor of `#![feature(adt_const_params)]` and `#![feature(generic_const_exprs)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(const_generics)] [INFO] [stdout] | ^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in favor of `#![feature(adt_const_params)]` and `#![feature(generic_const_exprs)]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_fn)] [INFO] [stdout] | ^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: split into finer-grained feature gates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(const_fn)] [INFO] [stdout] | ^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: split into finer-grained feature gates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(untagged_unions)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: unions with `Copy` and `ManuallyDrop` fields are stable; there is no intent to stabilize more [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | #![feature(untagged_unions)] [INFO] [stdout] | ^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: unions with `Copy` and `ManuallyDrop` fields are stable; there is no intent to stabilize more [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(const_raw_ptr_to_usize_cast)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: at compile-time, pointers do not have an integer value, so these casts cannot be properly supported [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | #![feature(const_raw_ptr_to_usize_cast)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: at compile-time, pointers do not have an integer value, so these casts cannot be properly supported [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around const expression [INFO] [stdout] --> src/matrix/mod.rs:1272:27 [INFO] [stdout] | [INFO] [stdout] 1272 | impl Vector { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 1272 - impl Vector { [INFO] [stdout] 1272 + impl Vector { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary braces around const expression [INFO] [stdout] --> src/matrix/mod.rs:1272:27 [INFO] [stdout] | [INFO] [stdout] 1272 | impl Vector { [INFO] [stdout] | ^^ ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_braces)]` on by default [INFO] [stdout] help: remove these braces [INFO] [stdout] | [INFO] [stdout] 1272 - impl Vector { [INFO] [stdout] 1272 + impl Vector { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_loop` has been stable since 1.46.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(const_loop)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_if_match` has been stable since 1.46.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(const_if_match)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_fn_union` has been stable since 1.56.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(const_fn_union)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_mut_refs` has been stable since 1.83.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(const_mut_refs)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | #![feature(const_raw_ptr_deref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_slice_from_raw_parts` has been stable since 1.64.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_slice_from_raw_parts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_loop` has been stable since 1.46.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | #![feature(const_loop)] [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(stable_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_if_match` has been stable since 1.46.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | #![feature(const_if_match)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_fn_union` has been stable since 1.56.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 6 | #![feature(const_fn_union)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_mut_refs` has been stable since 1.83.0-nightly and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | #![feature(const_mut_refs)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_raw_ptr_deref` has been stable since 1.58.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:8:12 [INFO] [stdout] | [INFO] [stdout] 8 | #![feature(const_raw_ptr_deref)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the feature `const_slice_from_raw_parts` has been stable since 1.64.0 and no longer requires an attribute to enable [INFO] [stdout] --> src/lib.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | #![feature(const_slice_from_raw_parts)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union [INFO] [stdout] --> src/utils.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | maybe_uninit: MaybeUninit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: union fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>` [INFO] [stdout] help: wrap the field type in `ManuallyDrop<...>` [INFO] [stdout] | [INFO] [stdout] 16 | maybe_uninit: std::mem::ManuallyDrop>, [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0740]: field must implement `Copy` or be wrapped in `ManuallyDrop<...>` to be used in a union [INFO] [stdout] --> src/utils.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | maybe_uninit: MaybeUninit, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: union fields must not have drop side-effects, which is currently enforced via either `Copy` or `ManuallyDrop<...>` [INFO] [stdout] help: wrap the field type in `ManuallyDrop<...>` [INFO] [stdout] | [INFO] [stdout] 16 | maybe_uninit: std::mem::ManuallyDrop>, [INFO] [stdout] | +++++++++++++++++++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: not automatically applying `DerefMut` on `ManuallyDrop` union field [INFO] [stdout] --> src/utils.rs:172:26 [INFO] [stdout] | [INFO] [stdout] 172 | &mut self.inner.maybe_uninit[self.length - 1], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: writing to this reference calls the destructor for the old value [INFO] [stdout] = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: not automatically applying `DerefMut` on `ManuallyDrop` union field [INFO] [stdout] --> src/utils.rs:172:26 [INFO] [stdout] | [INFO] [stdout] 172 | &mut self.inner.maybe_uninit[self.length - 1], [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: writing to this reference calls the destructor for the old value [INFO] [stdout] = help: add an explicit `*` if that is desired, or call `ptr::write` to not run the destructor [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `slice_from_raw_parts_mut` is not yet stable as a const fn [INFO] [stdout] --> src/utils.rs:146:19 [INFO] [stdout] | [INFO] [stdout] 146 | &mut *ptr::slice_from_raw_parts_mut(first_ptr, self.length) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(const_slice_from_raw_parts_mut)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0557, E0740. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0557`. [INFO] [stdout] [INFO] [stderr] error: could not compile `const-linear` (lib) due to 8 previous errors; 7 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: `slice_from_raw_parts_mut` is not yet stable as a const fn [INFO] [stdout] --> src/utils.rs:146:19 [INFO] [stdout] | [INFO] [stdout] 146 | &mut *ptr::slice_from_raw_parts_mut(first_ptr, self.length) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(const_slice_from_raw_parts_mut)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors; 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0557, E0740. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0557`. [INFO] [stdout] [INFO] [stderr] error: could not compile `const-linear` (lib test) due to 8 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "5f40ec64717442338e7367f2cc4457164c751899f3dda74e4a936963a3323108", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5f40ec64717442338e7367f2cc4457164c751899f3dda74e4a936963a3323108", kill_on_drop: false }` [INFO] [stdout] 5f40ec64717442338e7367f2cc4457164c751899f3dda74e4a936963a3323108