remove the #[inline] attribute from drop_in_place
Apparently LLVM has exponential code growth while inlining landing pads if that attribute is present. Fixes #41696.
This commit is contained in:
@@ -56,7 +56,6 @@ pub use intrinsics::write_bytes;
|
||||
/// invalid pointers, types, and double drops.
|
||||
#[stable(feature = "drop_in_place", since = "1.8.0")]
|
||||
#[lang="drop_in_place"]
|
||||
#[inline]
|
||||
#[allow(unconditional_recursion)]
|
||||
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
||||
// Code here does not matter - this is replaced by the
|
||||
|
||||
Reference in New Issue
Block a user