diff options
| author | Gary Guo <gary@garyguo.net> | 2023-12-06 20:59:23 +0000 |
|---|---|---|
| committer | Gary Guo <gary@garyguo.net> | 2024-06-19 13:54:55 +0100 |
| commit | da8ac73d910a446e796f511c0dda97e49d14f044 (patch) | |
| tree | 39b675488fc7e11d6fbe981c2932c66d3cc2599c | |
| parent | 5812b1fd124768991b690621654aea3eea7400f4 (diff) | |
| download | rust-da8ac73d910a446e796f511c0dda97e49d14f044.tar.gz rust-da8ac73d910a446e796f511c0dda97e49d14f044.zip | |
Add a hack to prevent proc_macro misopt in CI
| -rw-r--r-- | library/proc_macro/src/bridge/buffer.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/library/proc_macro/src/bridge/buffer.rs b/library/proc_macro/src/bridge/buffer.rs index 48030f8d82d..149767bf705 100644 --- a/library/proc_macro/src/bridge/buffer.rs +++ b/library/proc_macro/src/bridge/buffer.rs @@ -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); |
