Skip to content

Commit 3fc18d0

Browse files
committed
Add a hack to prevent proc_macro misopt in CI
1 parent a95938d commit 3fc18d0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

proc_macro/src/bridge/buffer.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,9 @@ impl Write for Buffer {
119119
}
120120

121121
impl Drop for Buffer {
122-
#[inline]
122+
// HACK(nbdd0121): Hack to prevent LLVM < 17.0.4 from misoptimising,
123+
// change to `#[inline]` if fixed.
124+
#[inline(never)]
123125
fn drop(&mut self) {
124126
let b = self.take();
125127
(b.drop)(b);

0 commit comments

Comments
 (0)