diff options
| author | bors <bors@rust-lang.org> | 2024-08-12 05:22:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-08-12 05:22:03 +0000 |
| commit | 1d8f135b20fac63c493d5963ce02963b46ca0986 (patch) | |
| tree | 1b3fb08c7d2feb330d961dbea2eeb05f05fb28c6 /tests/codegen/common_prim_int_ptr.rs | |
| parent | 13f8a57cfb57d527abe797230beabb64758bb888 (diff) | |
| parent | 3dc083dfd80d0436560c34c41be815b88510ffdc (diff) | |
| download | rust-1d8f135b20fac63c493d5963ce02963b46ca0986.tar.gz rust-1d8f135b20fac63c493d5963ce02963b46ca0986.zip | |
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`
Diffstat (limited to 'tests/codegen/common_prim_int_ptr.rs')
0 files changed, 0 insertions, 0 deletions
