Add a hack to prevent proc_macro misopt in CI · model-checking/verify-rust-std@3fc18d0 (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Commit 3fc18d0
Add a hack to prevent proc_macro misopt in CI
File tree
1 file changed
lines changed
1 file changed
lines changed
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -119,7 +119,9 @@ impl Write for Buffer { | ||
119 | 119 | } |
120 | 120 | |
121 | 121 | 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)] | |
123 | 125 | fn drop(&mut self) { |
124 | 126 | let b = self.take(); |
125 | 127 | (b.drop)(b); |