Add a hack to prevent proc_macro misopt in CI · model-checking/verify-rust-std@3fc18d0 (original) (raw)

Skip to content

Sign in

Appearance settings

View all features

View all solutions

Provide feedback

We read every piece of feedback, and take your input very seriously.

Include my email address so I can be contacted

Saved searches

Use saved searches to filter your results more quickly

Sign in

Sign up

Appearance settings

model-checking / verify-rust-std Public

forked from rust-lang/rust

Additional navigation options

Commit 3fc18d0

Browse files

nbdd0121nbdd0121

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‎

Lines changed: 3 additions & 1 deletion

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);

0 commit comments

Comments

(0)