about summary refs log tree commit diff
path: root/src/test/codegen/gdb_debug_script_load.rs
diff options
context:
space:
mode:
authorJethro Beekman <jethro@jbeekman.nl>2016-07-26 16:31:39 -0700
committerJethro Beekman <jethro@jbeekman.nl>2016-07-28 09:05:43 -0700
commitcdc6afed389ecdcea0955eadae59ea6b008a58fe (patch)
treec5474f47c318d42501aa2c57c437d49a5675598d /src/test/codegen/gdb_debug_script_load.rs
parentcec262e55a92ad15196c4ea6d490fb6ef6bccab4 (diff)
downloadrust-cdc6afed389ecdcea0955eadae59ea6b008a58fe.tar.gz
rust-cdc6afed389ecdcea0955eadae59ea6b008a58fe.zip
Add non-panicking abs() functions to all signed integer types.
Currently, calling abs() on one of the signed integer types might panic (in
debug mode at least) because the absolute value of the largest negative value
can not be represented in that signed type. Unlike all other integer
operations, there is currently not a non-panicking version on this function.
This seems to just be an oversight in the design, therefore just adding it now.
Diffstat (limited to 'src/test/codegen/gdb_debug_script_load.rs')
0 files changed, 0 insertions, 0 deletions