diff options
| author | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-23 11:54:11 -0700 |
|---|---|---|
| committer | Dylan MacKenzie <ecstaticmorse@gmail.com> | 2020-09-25 10:37:52 -0700 |
| commit | 2049052cb9880c97bb289a086815576f5aabc6c9 (patch) | |
| tree | dea681ec0b6d970db4aec8bc3246306f61765afa /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 0d2521aaf7548f0de6c227ef68eae76df4420c03 (diff) | |
| download | rust-2049052cb9880c97bb289a086815576f5aabc6c9.tar.gz rust-2049052cb9880c97bb289a086815576f5aabc6c9.zip | |
Put floating point arithmetic behind its own feature gate
This refactors handling of `Rvalue::{Unary,Binary}Op` in the
const-checker. Now we `span_bug` if there's an unexpected type in a
primitive operation. This also allows unary negation on
`char` values through the const-checker because it makes the code a bit
cleaner. `char` does not actually support these operations, and if it
did, we could evaluate them at compile-time.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions
