diff options
| author | Matthias Krüger <matthias.krueger@famsik.de> | 2024-07-25 18:57:58 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-25 18:57:58 +0200 |
| commit | 512277ff70082a9614b277e8c460c99702d17723 (patch) | |
| tree | 50c4d6108e671fbc7429485ea63fdc967d0e7752 /compiler/rustc_codegen_llvm/src/asm.rs | |
| parent | c96311bf8a172726e7772cc8a7ea7768f464705b (diff) | |
| parent | cf9816c17e1c265af2906a8a5a7c025be3f3dccb (diff) | |
| download | rust-512277ff70082a9614b277e8c460c99702d17723.tar.gz rust-512277ff70082a9614b277e8c460c99702d17723.zip | |
Rollup merge of #128137 - GrigorenkoPV:cstr-derive, r=dtolnay
CStr: derive PartialEq, Eq; add test for Ord While working on #128046, I've spotted a peculiarity: `CStr` has `PartialEq, Eq, PartialOrd, Ord` implemented manually and not derived. While we can't derive `PartialOrd, Ord` (due to inner `[c_char]` being `[i8]` or `[u8]` on different platforms), we *can* derive `PartialEq, Eq` (I think), allowing as to remove `#[allow(clippy::derived_hash_with_manual_eq)]` as well. (I really hope `c_char: Eq` on all platforms)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/asm.rs')
0 files changed, 0 insertions, 0 deletions
