mirror of
https://github.com/rust-lang/rust
synced 2024-07-03 08:30:04 +00:00
Add a hack to prevent proc_macro misopt in CI
This commit is contained in:
parent
5812b1fd12
commit
da8ac73d91
|
@ -119,7 +119,9 @@ fn flush(&mut self) -> io::Result<()> {
|
||||||
}
|
}
|
||||||
|
|
||||||
impl Drop 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) {
|
fn drop(&mut self) {
|
||||||
let b = self.take();
|
let b = self.take();
|
||||||
(b.drop)(b);
|
(b.drop)(b);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user