about summary refs log tree commit diff
path: root/src/rustllvm/RustWrapper.cpp
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-09-15 08:35:50 -0700
committerbors <bors@rust-lang.org>2013-09-15 08:35:50 -0700
commite0528a50779f3608d7e623b938cdb239e3d94d51 (patch)
tree3f4ae690087cb210dd5b1547cd33d36391627e64 /src/rustllvm/RustWrapper.cpp
parent4ecb0a372d4b246f694bf780d50809dc0fb32018 (diff)
parent85223412742313d8784416963ac4c40bb95a73a9 (diff)
downloadrust-e0528a50779f3608d7e623b938cdb239e3d94d51.tar.gz
rust-e0528a50779f3608d7e623b938cdb239e3d94d51.zip
auto merge of #9209 : blake2-ppc/rust/from-str, r=thestinger
Remove these in favor of the two traits themselves and the wrapper
function std::from_str::from_str.

Add the function std::num::from_str_radix in the corresponding role for
the FromStrRadix trait.

With `from_str` in the prelude, and `from_str_radix` in `std::num`, the feature is unfied under the type annotation of these functions instead of using the modules-named-as-types (std::uint and others):

What was before:

    let n = std::uint::from_str("1");
    let m = std::i32::from_str_radix("10", 16);

is now:

    let n = from_str::<uint>("1");
    let m = std::num::from_str_radix::<i32>("10", 16);
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions