rust/src/libstd
bors 641e2a110d auto merge of #19152 : alexcrichton/rust/issue-17863, r=aturon
This commit is an implementation of [RFC 240][rfc] when applied to the standard
library. It primarily deprecates the entirety of `string::raw`, `vec::raw`,
`slice::raw`, and `str::raw` in favor of associated functions, methods, and
other free functions. The detailed renaming is:

* slice::raw::buf_as_slice => slice::from_raw_buf
* slice::raw::mut_buf_as_slice => slice::from_raw_mut_buf
* slice::shift_ptr => deprecated with no replacement
* slice::pop_ptr => deprecated with no replacement
* str::raw::from_utf8 => str::from_utf8_unchecked
* str::raw::c_str_to_static_slice => str::from_c_str
* str::raw::slice_bytes => deprecated for slice_unchecked (slight semantic diff)
* str::raw::slice_unchecked => str.slice_unchecked
* string::raw::from_parts => String::from_raw_parts
* string::raw::from_buf_len => String::from_raw_buf_len
* string::raw::from_buf => String::from_raw_buf
* string::raw::from_utf8 => String::from_utf8_unchecked
* vec::raw::from_buf => Vec::from_raw_buf

All previous functions exist in their `#[deprecated]` form, and the deprecation
messages indicate how to migrate to the newer variants.

[rfc]: https://github.com/rust-lang/rfcs/blob/master/text/0240-unsafe-api-location.md
[breaking-change]

Closes #17863
2014-11-23 05:46:52 +00:00
..
collections rollup merge of #19038: jayelm/fixed-typos 2014-11-18 00:24:08 +01:00
io Disable dubious pipe test 2014-11-20 17:19:25 -08:00
num Fix various deprecation warnings from char changes 2014-11-21 13:18:04 -08:00
path libcore: DST-ify AsSlice 2014-11-20 00:05:00 -08:00
rand iOS: fixed broken build after disallowed coercions 2014-11-19 09:43:15 +02:00
rt unicode: Rename UnicodeChar::is_digit to is_numeric 2014-11-21 13:17:04 -08:00
sync Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
sys auto merge of #19152 : alexcrichton/rust/issue-17863, r=aturon 2014-11-23 05:46:52 +00:00
time Rename remaining Failures to Panic 2014-11-20 23:45:42 +05:30
ascii.rs auto merge of #19152 : alexcrichton/rust/issue-17863, r=aturon 2014-11-23 05:46:52 +00:00
bitflags.rs Repair various cases where values of distinct types were being operated 2014-11-05 09:15:28 -05:00
c_vec.rs Rename remaining Failures to Panic 2014-11-20 23:45:42 +05:30
dynamic_lib.rs Make most of std::rt private 2014-11-20 17:19:24 -08:00
error.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
failure.rs Make most of std::rt private 2014-11-20 17:19:24 -08:00
fmt.rs std: Stabilize std::fmt 2014-11-18 21:16:22 -08:00
hash.rs DSTify Hash 2014-10-31 07:25:34 -05:00
lib.rs Make most of std::rt private 2014-11-20 17:19:24 -08:00
macros.rs auto merge of #19071 : huonw/rust/col2column, r=nikomatsakis 2014-11-20 16:02:03 +00:00
os.rs auto merge of #19152 : alexcrichton/rust/issue-17863, r=aturon 2014-11-23 05:46:52 +00:00
prelude.rs Switch to purely namespaced enums 2014-11-17 07:35:51 -08:00
rtdeps.rs Fix spelling errors and capitalization. 2014-09-03 23:10:38 -04:00
task.rs Make most of std::rt private 2014-11-20 17:19:24 -08:00