Skip to content

Commit

Permalink
Auto merge of #128862 - cblh:fix/128855, r=scottmcm
Browse files Browse the repository at this point in the history
fix:  #128855 Ensure `Guard`'s `drop` method is removed at `opt-level=s` for `…

fix: #128855

…Copy` types

Added `#[inline]` to the `drop` method in the `Guard` implementation to ensure that the method is removed by the compiler at optimization level `opt-level=s` for `Copy` types. This change aims to align the method's behavior with optimization expectations and ensure it does not affect performance.

r​? `@scottmcm`
  • Loading branch information
bors committed Aug 12, 2024
2 parents 5628325 + 199ce2e commit 16a9a18
Showing 0 changed files with 0 additions and 0 deletions.

0 comments on commit 16a9a18

Please sign in to comment.