From 8bab39783534dbf56788c649eced2a9a7f4d5332 Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 18 Sep 2024 08:51:18 -0700 Subject: [PATCH] Revert "Add a hack to prevent proc_macro misopt in CI" This reverts commit da8ac73d910a446e796f511c0dda97e49d14f044. --- library/proc_macro/src/bridge/buffer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/library/proc_macro/src/bridge/buffer.rs b/library/proc_macro/src/bridge/buffer.rs index 78fcd1999b2..3760749d83a 100644 --- a/library/proc_macro/src/bridge/buffer.rs +++ b/library/proc_macro/src/bridge/buffer.rs @@ -119,9 +119,7 @@ impl Write for Buffer { } impl Drop for Buffer { - // HACK(nbdd0121): Hack to prevent LLVM < 17.0.4 from misoptimising, - // change to `#[inline]` if fixed. - #[inline(never)] + #[inline] fn drop(&mut self) { let b = self.take(); (b.drop)(b);