diff options
| author | Trevor Gross <t.gross35@gmail.com> | 2024-07-18 05:14:05 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-18 05:14:05 -0500 |
| commit | a2178dffc8bc4db7a13e4b93af0d9030a9c616d6 (patch) | |
| tree | df09113c49fc6cebc7e45b8c7ca1c58aa9ce3180 /compiler/rustc_mir_transform/src/coverage/mod.rs | |
| parent | 78fe5f76bf3f1f9a7de57a3ecd611acb532fcaa3 (diff) | |
| parent | 303a2db2360e332a29a66de94fa65cdb52b0d51c (diff) | |
| download | rust-a2178dffc8bc4db7a13e4b93af0d9030a9c616d6.tar.gz rust-a2178dffc8bc4db7a13e4b93af0d9030a9c616d6.zip | |
Rollup merge of #127687 - RalfJung:pattern-cleanup, r=oli-obk,lcnr
Const-to-pattern-to-MIR cleanup Now that all uses of constants without structural equality are hard errors, there's a bunch of cleanup we can do in the code that handles patterns: we can always funnel patterns through valtrees first (rather than having a fallback path for when valtree construction fails), and we can make sure that if we emit a `PartialEq` call it is not calling anything user-defined. To keep the error messages the same, I made valtree construction failures return the information of *which* type it is that cannot be valtree'd. `search_for_structural_match_violation` is now not needed any more at all, so I removed it. r? `@oli-obk`
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/mod.rs')
0 files changed, 0 insertions, 0 deletions
