rust/library/core
bors 1d8f135b20 Auto merge of #128862 - cblh:fix/128855, r=scottmcm
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`
2024-08-12 05:22:03 +00:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Auto merge of #128862 - cblh:fix/128855, r=scottmcm 2024-08-12 05:22:03 +00:00
tests core: optimise Debug impl for ascii::Char 2024-08-09 22:50:57 +02:00
Cargo.toml Cleanup bootstrap check-cfg 2024-06-27 11:30:03 +02:00