about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-10-27 09:07:19 -0700
committerAlex Crichton <alex@alexcrichton.com>2014-10-27 12:53:02 -0700
commitee32c04d60dff4289a0066bb485ecf58b6eb9187 (patch)
tree2c51ead7460685fc405fc79d3b8a87eb3b991a10 /src/libsyntax
parentdea37d73ca4bc85a486a83bf19664495ab328fcd (diff)
parent87a5f0ddf477d1c86ac6e016feefd7ae9c574226 (diff)
downloadrust-ee32c04d60dff4289a0066bb485ecf58b6eb9187.tar.gz
rust-ee32c04d60dff4289a0066bb485ecf58b6eb9187.zip
rollup merge of #18303 : cgaebel/make-vec-match-slice
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/owned_slice.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/owned_slice.rs b/src/libsyntax/owned_slice.rs
index e5c37e5041a..4f09b34557c 100644
--- a/src/libsyntax/owned_slice.rs
+++ b/src/libsyntax/owned_slice.rs
@@ -74,7 +74,7 @@ impl<T> OwnedSlice<T> {
     pub fn into_vec(self) -> Vec<T> {
         // null is ok, because len == 0 in that case, as required by Vec.
         unsafe {
-            let ret = Vec::from_raw_parts(self.len, self.len, self.data);
+            let ret = Vec::from_raw_parts(self.data, self.len, self.len);
             // the vector owns the allocation now
             mem::forget(self);
             ret