Skip to content

Commit

Permalink
Add a hack to prevent proc_macro misopt in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
nbdd0121 committed Jun 19, 2024
1 parent 5812b1f commit da8ac73
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion library/proc_macro/src/bridge/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,9 @@ impl Write for Buffer {
}

impl Drop for Buffer {
#[inline]
// HACK(nbdd0121): Hack to prevent LLVM < 17.0.4 from misoptimising,
// change to `#[inline]` if fixed.
#[inline(never)]
fn drop(&mut self) {
let b = self.take();
(b.drop)(b);
Expand Down

0 comments on commit da8ac73

Please sign in to comment.