Skip to content

Commit

Permalink
Auto merge of rust-lang#102167 - thomcc:exclusive-inline, r=scottmcm
Browse files Browse the repository at this point in the history
Add `#[inline]` to trivial functions on `core::sync::Exclusive`

When optimizing for size things like these sometimes don't inlined even though they're generic. This is bad because they're no-ops.

Only dodgy one is poll I guess since it forwards to the inner poll, but it's not like we're doing `#[inline(always)]` here.
  • Loading branch information
bors committed Sep 24, 2022
2 parents 93e726b + 75dd959 commit 6784b45
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 6784b45

Please sign in to comment.