rust/src/libstd
Alex Crichton 79db01a30d rollup merge of #20306: alexcrichton/second-pass-string
This commit performs a second pass over the `std::string` module, performing the
following actions:

* The name `std::string` is now stable.
* The `String::from_utf8` function is now stable after having been altered to
  return a new `FromUtf8Error` structure. The `FromUtf8Error` structure is now
  stable as well as its `into_bytes` and `utf8_error` methods.
* The `String::from_utf8_lossy` function is now stable.
* The `String::from_chars` method is now deprecated in favor of `.collect()`
* The `String::from_raw_parts` method is now stable
* The `String::from_str` function remains experimental
* The `String::from_raw_buf` function remains experimental
* The `String::from_raw_buf_len` function remains experimental
* The `String::from_utf8_unchecked` function is now stable
* The `String::from_char` function is now deprecated in favor of
  `repeat(c).take(n).collect()`
* The `String::grow` function is now deprecated in favor of
  `.extend(repeat(c).take(n)`
* The `String::capacity` method is now stable
* The `String::reserve` method is now stable
* The `String::reserve_exact` method is now stable
* The `String::shrink_to_fit` method is now stable
* The `String::pop` method is now stable
* The `String::as_mut_vec` method is now stable
* The `String::is_empty` method is now stable
* The `IntoString` trait is now deprecated (there are no implementors)
* The `String::truncate` method is now stable
* The `String::insert` method is now stable
* The `String::remove` method is now stable
* The `String::push` method is now stable
* The `String::push_str` method is now stable
* The `String::from_utf16` function is now stable after its error type has now
  become an opaque structure to carry more semantic information in the future.

A number of these changes are breaking changes, but the migrations should be
fairly straightforward on a case-by-case basis (outlined above where possible).

[breaking-change]
2014-12-29 16:36:52 -08:00
..
collections rollup merge of #20215: csouth3/hashmap-rename 2014-12-29 16:36:06 -08:00
comm rollup merge of #20289: nick29581/shadowing 2014-12-29 16:36:49 -08:00
io rollup merge of #20289: nick29581/shadowing 2014-12-29 16:36:49 -08:00
num Fallout from globs/re-export/shadowing change 2014-12-29 19:10:08 +13:00
path rollup merge of #20306: alexcrichton/second-pass-string 2014-12-29 16:36:52 -08:00
rand rollup merge of #20264: nagisa/threadrng 2014-12-29 16:36:29 -08:00
rt rollup merge of #20248: steveklabnik/gh20038 2014-12-29 16:36:20 -08:00
sync rollup merge of #20289: nick29581/shadowing 2014-12-29 16:36:49 -08:00
sys rollup merge of #20231: fhahn/issue-20226-eexist 2014-12-29 16:36:12 -08:00
thread_local rollup merge of #20262: arturoc/fix-scoped_thread_local 2014-12-29 16:36:25 -08:00
time rollup merge of #19972: alexcrichton/snapshots 2014-12-21 09:28:07 -08:00
ascii.rs auto merge of #19916 : SimonSapin/rust/ascii-reform, r=sfackler 2014-12-27 21:51:43 +00:00
bitflags.rs Update docstring for bitflags macro to cover all generated methods 2014-12-27 20:13:32 -05:00
bool.rs std: Remove public bool,tuple,unit modules 2014-12-18 19:13:32 -08:00
c_str.rs Fallout from globs/re-export/shadowing change 2014-12-29 19:10:08 +13:00
c_vec.rs std: Second pass stabilization for ptr 2014-12-29 15:57:28 -08:00
dynamic_lib.rs Fallout of std::str stabilization 2014-12-21 23:31:42 -08:00
error.rs std: Second pass stabilization for string 2014-12-29 14:11:16 -08:00
failure.rs Fallout of std::str stabilization 2014-12-21 23:31:42 -08:00
fmt.rs Fallout of changing format_args!(f, args) to f(format_args!(args)). 2014-12-27 23:57:43 +02:00
hash.rs Rename TaskRng to ThreadRng 2014-12-28 13:46:35 +02:00
lib.rs rollup merge of #20006: alexcrichton/no-more-empty-modules 2014-12-21 09:27:33 -08:00
macros.rs Fallout of changing format_args!(f, args) to f(format_args!(args)). 2014-12-27 23:57:43 +02:00
os.rs rollup merge of #20264: nagisa/threadrng 2014-12-29 16:36:29 -08:00
prelude.rs std: Second pass stabilization for ptr 2014-12-29 15:57:28 -08:00
rtdeps.rs libs: merge librustrt into libstd 2014-12-18 23:31:34 -08:00
task.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
thread.rs rollup merge of #20223: aochagavia/typo 2014-12-29 16:36:09 -08:00
thunk.rs Revise std::thread API to join by default 2014-12-18 23:31:52 -08:00
tuple.rs std: Remove public bool,tuple,unit modules 2014-12-18 19:13:32 -08:00
unit.rs std: Remove public bool,tuple,unit modules 2014-12-18 19:13:32 -08:00