fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #72883 - Mark-Simulacrum:stable-next, r=Mark-Simulacrum49cae55760d

1.44.0
894 B27 linesraw
1warning: skipping const checks
2  --> $DIR/drop.rs:17:9
3   |
4LL |     let _v: Vec<i32> = Vec::new();
5   |         ^^
6
7error[E0080]: could not evaluate static initializer
8  --> $SRC_DIR/libcore/ptr/mod.rs:LL:COL
9   |
10LL | / pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
11LL | |     // Code here does not matter - this is replaced by the
12LL | |     // real drop glue by the compiler.
13LL | |     drop_in_place(to_drop)
14LL | | }
15   | | ^
16   | | |
17   | |_calling non-const function `<std::vec::Vec<i32> as std::ops::Drop>::drop`
18   |   inside `std::intrinsics::drop_in_place::<std::vec::Vec<i32>> - shim(Some(std::vec::Vec<i32>))` at $SRC_DIR/libcore/ptr/mod.rs:LL:COL
19   | 
20  ::: $DIR/drop.rs:19:1
21   |
22LL |   };
23   |   - inside `TEST_BAD` at $DIR/drop.rs:19:1
24
25error: aborting due to previous error; 1 warning emitted
26
27For more information about this error, try `rustc --explain E0080`.