about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2020-04-03 00:32:00 +0200
committerGitHub <noreply@github.com>2020-04-03 00:32:00 +0200
commit1eabbd024c0e49d8ca66c804f502c65cbad90ced (patch)
tree04acfbfa5c0af0d21c6742ee7019398c57c211c6 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs
parent537ccdf3ac44c8c7a8d36cbdbe6fb224afabb7ae (diff)
parent56147219a552b8383e66f9e3e8f0c92ea332aaf4 (diff)
downloadrust-1eabbd024c0e49d8ca66c804f502c65cbad90ced.tar.gz
rust-1eabbd024c0e49d8ca66c804f502c65cbad90ced.zip
Rollup merge of #70487 - Mark-Simulacrum:float-unchecked-casts, r=SimonSapin
Stabilize float::to_int_unchecked

This renames and stabilizes unsafe floating point to integer casts, which are intended to be the substitute for the currently unsound `as` behavior, once that changes to safe-but-slower saturating casts. As such, I believe this also likely unblocks #10184 (our oldest I-unsound issue!), as once this rolls out to stable it would be far easier IMO to change the behavior of `as` to be safe by default.

This does not stabilize the trait or the associated method, as they are deemed internal implementation details (and consumers should not, generally, want to expose them, as in practice all callers likely know statically/without generics what the return type is).

Closes #67058
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-md5.rs')
0 files changed, 0 insertions, 0 deletions