Auto merge of #140895 - matthiaskrgr:rollup-rfvqv4t, r=matthiaskrgr
Rollup of 7 pull requests Successful merges: - #129334 (Implement (part of) ACP 429: add `DerefMut` to `Lazy[Cell/Lock]`) - #139562 (rustdoc: add a handle that makes sidebar resizing more obvious) - #140151 (remove intrinsics::drop_in_place) - #140660 (remove 'unordered' atomic intrinsics) - #140783 (Update documentation of OnceLock::get_or_init.) - #140789 (Update hermit-abi to 0.5.1) - #140879 (1.87.0 release notes: remove nonsensical `~` operator) r? `@ghost` `@rustbot` modify labels: rollup
This commit is contained in:
commit
dbab4e152b
30 changed files with 110 additions and 93 deletions
|
|
@ -1,12 +1,12 @@
|
|||
error[E0080]: evaluation of `std::ptr::drop_in_place::<Vec<u32>> - shim(Some(Vec<u32>))` failed
|
||||
error[E0080]: evaluation of `drop_in_place::<Vec<u32>> - shim(Some(Vec<u32>))` failed
|
||||
--> $DIR/assoc_const.rs:12:31
|
||||
|
|
||||
LL | const F: u32 = (U::X, 42).1;
|
||||
| ^ calling non-const function `<Vec<u32> as Drop>::drop`
|
||||
|
|
||||
note: inside `std::ptr::drop_in_place::<(Vec<u32>, u32)> - shim(Some((Vec<u32>, u32)))`
|
||||
note: inside `drop_in_place::<(Vec<u32>, u32)> - shim(Some((Vec<u32>, u32)))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
note: inside `std::ptr::drop_in_place::<Vec<u32>> - shim(Some(Vec<u32>))`
|
||||
note: inside `drop_in_place::<Vec<u32>> - shim(Some(Vec<u32>))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
|
||||
note: erroneous constant encountered
|
||||
|
|
|
|||
|
|
@ -15,6 +15,6 @@ static TEST_BAD: () = {
|
|||
let _v: Vec<i32> = Vec::new();
|
||||
}; //~ ERROR could not evaluate static initializer
|
||||
//~| NOTE calling non-const function `<Vec<i32> as Drop>::drop`
|
||||
//~| NOTE inside `std::ptr::drop_in_place::<Vec<i32>> - shim(Some(Vec<i32>))`
|
||||
//~| NOTE inside `drop_in_place::<Vec<i32>> - shim(Some(Vec<i32>))`
|
||||
|
||||
//~? WARN skipping const checks
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ error[E0080]: could not evaluate static initializer
|
|||
LL | };
|
||||
| ^ calling non-const function `<Vec<i32> as Drop>::drop`
|
||||
|
|
||||
note: inside `std::ptr::drop_in_place::<Vec<i32>> - shim(Some(Vec<i32>))`
|
||||
note: inside `drop_in_place::<Vec<i32>> - shim(Some(Vec<i32>))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
|
||||
warning: skipping const checks
|
||||
|
|
|
|||
|
|
@ -13,11 +13,11 @@ error[E0080]: evaluation of constant value failed
|
|||
LL | };
|
||||
| ^ calling non-const function `<Vec<u8> as Drop>::drop`
|
||||
|
|
||||
note: inside `std::ptr::drop_in_place::<Option<String>> - shim(Some(Option<String>))`
|
||||
note: inside `drop_in_place::<Option<String>> - shim(Some(Option<String>))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
note: inside `std::ptr::drop_in_place::<String> - shim(Some(String))`
|
||||
note: inside `drop_in_place::<String> - shim(Some(String))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
note: inside `std::ptr::drop_in_place::<Vec<u8>> - shim(Some(Vec<u8>))`
|
||||
note: inside `drop_in_place::<Vec<u8>> - shim(Some(Vec<u8>))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
|
||||
error[E0493]: destructor of `Option<String>` cannot be evaluated at compile-time
|
||||
|
|
@ -34,11 +34,11 @@ error[E0080]: evaluation of constant value failed
|
|||
LL | };
|
||||
| ^ calling non-const function `<Vec<u8> as Drop>::drop`
|
||||
|
|
||||
note: inside `std::ptr::drop_in_place::<Option<String>> - shim(Some(Option<String>))`
|
||||
note: inside `drop_in_place::<Option<String>> - shim(Some(Option<String>))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
note: inside `std::ptr::drop_in_place::<String> - shim(Some(String))`
|
||||
note: inside `drop_in_place::<String> - shim(Some(String))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
note: inside `std::ptr::drop_in_place::<Vec<u8>> - shim(Some(Vec<u8>))`
|
||||
note: inside `drop_in_place::<Vec<u8>> - shim(Some(Vec<u8>))`
|
||||
--> $SRC_DIR/core/src/ptr/mod.rs:LL:COL
|
||||
|
||||
error[E0493]: destructor of `(u32, Option<String>)` cannot be evaluated at compile-time
|
||||
|
|
|
|||
|
|
@ -8,10 +8,9 @@
|
|||
#![allow(unused_imports)]
|
||||
#![allow(deprecated)]
|
||||
|
||||
use std::intrinsics::drop_in_place as _;
|
||||
use std::intrinsics::copy_nonoverlapping as _;
|
||||
use std::intrinsics::copy as _;
|
||||
use std::intrinsics::write_bytes as _;
|
||||
use std::intrinsics::{drop_in_place, copy_nonoverlapping, copy, write_bytes};
|
||||
use std::intrinsics::{copy_nonoverlapping, copy, write_bytes};
|
||||
|
||||
fn main() {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue