about summary refs log tree commit diff
path: root/src/libstd/sys/unix/process/process_common.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2017-07-25 00:48:14 +0000
committerbors <bors@rust-lang.org>2017-07-25 00:48:14 +0000
commit7c46c6c59dbee8d6385f8924fe27cc5a7893841f (patch)
tree0c4c008bb35ab5747b97f982471456378d81957d /src/libstd/sys/unix/process/process_common.rs
parent598eddf4f785df12e79fba5a996f153dc6fdb7e0 (diff)
parent72ef15e0df7cc1a794d79559a3da79321eec7bfb (diff)
downloadrust-7c46c6c59dbee8d6385f8924fe27cc5a7893841f.tar.gz
rust-7c46c6c59dbee8d6385f8924fe27cc5a7893841f.zip
Auto merge of #43248 - llogiq:num-try-from, r=nagisa
improve the TryFrom implementations

This removes the need for a 128 bit storage by making use of the fact that there can be either no over/underflow, either one or both, and each time the target type suffices to hold the limit for comparison. This also means that the implementation will work in targets without 128bit support (unless it's for 128bit types, of course).

The downside is that the code looks a bit more complex.
Diffstat (limited to 'src/libstd/sys/unix/process/process_common.rs')
0 files changed, 0 insertions, 0 deletions