diff options
| author | burlinchen <chenbeiliuhuo@gmail.com> | 2024-08-09 11:10:30 +0800 | 
|---|---|---|
| committer | burlinchen <chenbeiliuhuo@gmail.com> | 2024-08-09 11:10:30 +0800 | 
| commit | bca0c5f2a939999dcb8d83d06a793f39f4815736 (patch) | |
| tree | 80f63470ed849fcc3cfae090cc82c4697846ed27 /tests/codegen/common_prim_int_ptr.rs | |
| parent | c7b0d4e81f56da02d41f73fb5a85673a29f6cbc9 (diff) | |
| download | rust-bca0c5f2a939999dcb8d83d06a793f39f4815736.tar.gz rust-bca0c5f2a939999dcb8d83d06a793f39f4815736.zip | |
fix: Ensure `Guard`'s `drop` method is removed at `opt-level=s` for `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.
Diffstat (limited to 'tests/codegen/common_prim_int_ptr.rs')
0 files changed, 0 insertions, 0 deletions
