about summary refs log tree commit diff
path: root/src/test/codegen/gdb_debug_script_load.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2016-08-17 17:41:33 +0200
committerSimon Sapin <simon.sapin@exyr.org>2016-08-29 17:34:02 +0200
commit41d0a89e3ad99a9fdf700ea7d15750fe1cbfab14 (patch)
treeb837e9f2c8401f2a2ef300d2a2973e43231b69c3 /src/test/codegen/gdb_debug_script_load.rs
parent86dde9bbda92c02c61282b5df5d38338a798ef3b (diff)
downloadrust-41d0a89e3ad99a9fdf700ea7d15750fe1cbfab14.tar.gz
rust-41d0a89e3ad99a9fdf700ea7d15750fe1cbfab14.zip
Implement From<char> for u32, and From<u8> for char
These fit with other From implementations between integer types.

This helps the coding style of avoiding the 'as' operator that sometimes
silently truncates, and signals that these specific conversions are
lossless and infaillible.
Diffstat (limited to 'src/test/codegen/gdb_debug_script_load.rs')
0 files changed, 0 insertions, 0 deletions