diff options
| author | Jack Wrenn <jack@wrenn.fyi> | 2022-07-20 20:21:57 +0000 |
|---|---|---|
| committer | Jack Wrenn <jack@wrenn.fyi> | 2022-07-27 17:33:56 +0000 |
| commit | 0fa70c3b1272c986eed27f838b645892ad435772 (patch) | |
| tree | fbc2f3d8bce5d3c71cb87debfcb7a2697253d1be /compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp | |
| parent | 8c5c291882d3cafd26757bb1326fc3b3135a87f5 (diff) | |
| download | rust-0fa70c3b1272c986eed27f838b645892ad435772.tar.gz rust-0fa70c3b1272c986eed27f838b645892ad435772.zip | |
safe transmute: revise `Hash`, `PartialEq` impls on `VariantDef`, `FieldDef`
Exhaustively destructure parameter(s) so that changes to type definitions will lead to compile errors, thus reminding contributors to re-assess the assumptions underpinning these impls. ref: https://github.com/rust-lang/rust/pull/92268/#discussion_r925241377 ref: https://github.com/rust-lang/rust/pull/92268/#discussion_r925241718
Diffstat (limited to 'compiler/rustc_llvm/llvm-wrapper/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
