diff options
| author | bors <bors@rust-lang.org> | 2023-10-01 22:01:44 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-10-01 22:01:44 +0000 |
| commit | e0d7ed1f453fb54578cc96dfea859b0e7be15016 (patch) | |
| tree | e2010b41d86ac923529bd8d1c691a11ed0f50d88 /compiler/rustc_hir_analysis/src | |
| parent | 51ddc7467978e265d2004d58980580293734ca93 (diff) | |
| parent | eac7bcde5fe3127e1191e9e56af834d8889555d6 (diff) | |
| download | rust-e0d7ed1f453fb54578cc96dfea859b0e7be15016.tar.gz rust-e0d7ed1f453fb54578cc96dfea859b0e7be15016.zip | |
Auto merge of #116281 - Nadrieril:eager-const-eval, r=cjgillot
Cleanup number handling in match exhaustiveness Doing a little bit of cleanup; handling number constants was somewhat messy. In particular, this: - evals float consts once instead of repetitively - reduces `Constructor` from 88 bytes to 56 (`mir::Const` is big!) The `fast_try_eval_bits` function was mostly constructed from inlining existing code but I don't fully understand it; I don't follow how consts work and are evaluated very well.
Diffstat (limited to 'compiler/rustc_hir_analysis/src')
0 files changed, 0 insertions, 0 deletions
