From 886fc13b4a6f6dca568e6a316b96eadbd5decfee 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. --- proc_macro/src/bridge/buffer.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/proc_macro/src/bridge/buffer.rs b/proc_macro/src/bridge/buffer.rs index 78fcd1999b2f3..3760749d83a54 100644 --- a/proc_macro/src/bridge/buffer.rs +++ b/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);