diff options
| author | bors <bors@rust-lang.org> | 2020-08-17 18:33:24 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-08-17 18:33:24 +0000 |
| commit | 33c96b4d9782cf6364e47cb2c904e66b06c22bb4 (patch) | |
| tree | c522c51b713c6a47ebbf349da20cf9cbe7ea3d3c /library/std/src/lazy.rs | |
| parent | 8d185cabbdcb1b30ea5f72b3f0b3e6442bc4548a (diff) | |
| parent | 293756c93d13985557e3670d5ac91959ad273d0a (diff) | |
| download | rust-33c96b4d9782cf6364e47cb2c904e66b06c22bb4.tar.gz rust-33c96b4d9782cf6364e47cb2c904e66b06c22bb4.zip | |
Auto merge of #74748 - simonvandel:simplify-discriminant-arm, r=wesleywiser
MIR-OPT: Make SimplifyBranchSame able to remove identity match with fieldless variant Modifies SimplifyBranchSame so that it can see that the statements can be considered equal in the following example `_0 = _1` and `discriminant(_0) = discriminant(0)` are considered equal if 0 is a fieldless variant of an enum.
Diffstat (limited to 'library/std/src/lazy.rs')
0 files changed, 0 insertions, 0 deletions
