We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f85c4f6 commit 68b628bCopy full SHA for 68b628b
src/libcollections/vec.rs
@@ -278,6 +278,8 @@ impl<T> Vec<T> {
278
#[inline]
279
#[unstable(feature = "vec_from_raw_buf",
280
reason = "may be better expressed via composition")]
281
+ #[deprecated(since = "1.2.0",
282
+ reason = "use slice::from_raw_parts + .to_vec() instead")]
283
pub unsafe fn from_raw_buf(ptr: *const T, elts: usize) -> Vec<T> {
284
let mut dst = Vec::with_capacity(elts);
285
dst.set_len(elts);
0 commit comments