about summary refs log tree commit diff
diff options
context:
space:
mode:
authorJosh Stone <jistone@redhat.com>2024-09-18 08:51:18 -0700
committerJosh Stone <jistone@redhat.com>2024-09-18 13:53:33 -0700
commit8bab39783534dbf56788c649eced2a9a7f4d5332 (patch)
tree96fff66bff6180c81cdc959504db210c90d9c41d
parent6fd8a5068034ad8a60704ef72e335d1b4c32cfd4 (diff)
downloadrust-8bab39783534dbf56788c649eced2a9a7f4d5332.tar.gz
rust-8bab39783534dbf56788c649eced2a9a7f4d5332.zip
Revert "Add a hack to prevent proc_macro misopt in CI"
This reverts commit da8ac73d910a446e796f511c0dda97e49d14f044.
-rw-r--r--library/proc_macro/src/bridge/buffer.rs4
1 files changed, 1 insertions, 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);