diff options
| author | Simon Sapin <simon.sapin@exyr.org> | 2017-06-29 01:03:35 +0200 |
|---|---|---|
| committer | Simon Sapin <simon.sapin@exyr.org> | 2017-07-22 20:38:16 +0200 |
| commit | 0a08ad0443631ca86e61526916fb4ee61fe1abce (patch) | |
| tree | c8dd36ae38044adabc45b83e84d08333eb118dd7 /src/liballoc/vec.rs | |
| parent | e9af03a22279b62ded4c7ea897d5ac3a9b54728c (diff) | |
| download | rust-0a08ad0443631ca86e61526916fb4ee61fe1abce.tar.gz rust-0a08ad0443631ca86e61526916fb4ee61fe1abce.zip | |
Rename {NonZero,Shared,Unique}::new to new_unchecked
Diffstat (limited to 'src/liballoc/vec.rs')
| -rw-r--r-- | src/liballoc/vec.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs index 780a51aec3b..bc1521c4069 100644 --- a/src/liballoc/vec.rs +++ b/src/liballoc/vec.rs @@ -1126,7 +1126,7 @@ impl<T> Vec<T> { tail_start: end, tail_len: len - end, iter: range_slice.iter(), - vec: Shared::new(self as *mut _), + vec: Shared::new_unchecked(self as *mut _), } } } @@ -1727,7 +1727,7 @@ impl<T> IntoIterator for Vec<T> { let cap = self.buf.cap(); mem::forget(self); IntoIter { - buf: Shared::new(begin), + buf: Shared::new_unchecked(begin), cap: cap, ptr: begin, end: end, |
