Second pass stabilization: vec
This commit takes a second pass through the `vec` module to stabilize its API. The changes are as follows: **Stable**: * `dedup` * `from_raw_parts` * `insert` * `into_iter` * `is_empty` * `remove` * `reserve_exact` * `reserve` * `retain` * `swap_remove` * `truncate` **Deprecated**: * `from_fn`, `from_elem`, `grow_fn` and `grow`, all deprecated in favor of iterators. See https://github.com/rust-lang/rfcs/pull/509 * `partition`, `partitioned`, deprecated in favor of a new, more general iterator consumer called `partition`. * `unzip`, deprecated in favor of a new, more general iterator consumer called `unzip`. A few remaining methods are left at experimental status. [breaking-change]
This commit is contained in:
parent
8a5057af2e
commit
9d919d2302
File diff suppressed because it is too large
Load Diff
@ -158,6 +158,7 @@ pub use alloc::rc;
|
||||
pub use core_collections::slice;
|
||||
pub use core_collections::str;
|
||||
pub use core_collections::string;
|
||||
#[stable]
|
||||
pub use core_collections::vec;
|
||||
|
||||
pub use unicode::char;
|
||||
|
Loading…
Reference in New Issue
Block a user