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 Dec 25, 2023
1 parent b67b588 commit 05c9434
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 will misoptimise,
// change to `#[inline]` if fixed.
#[inline(never)]
fn drop(&mut self) {
let b = self.take();
(b.drop)(b);
Expand Down

0 comments on commit 05c9434

Please sign in to comment.