about summary refs log tree commit diff
path: root/src/librustc_data_structures/array_vec.rs
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2017-07-14 13:05:21 +0200
committerSimon Sapin <simon.sapin@exyr.org>2017-07-22 20:38:40 +0200
commita4edae95ad0e85b50845be1757670929ff60c88a (patch)
treed36d8bff7d97d8193d7d37c0e4e76a1cd9b8b1e5 /src/librustc_data_structures/array_vec.rs
parentcbd2b6b4842754495a2673df234e2496494245be (diff)
downloadrust-a4edae95ad0e85b50845be1757670929ff60c88a.tar.gz
rust-a4edae95ad0e85b50845be1757670929ff60c88a.zip
Add conversions from references to NonZero pointers, Unique, and Shared
Diffstat (limited to 'src/librustc_data_structures/array_vec.rs')
-rw-r--r--src/librustc_data_structures/array_vec.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustc_data_structures/array_vec.rs b/src/librustc_data_structures/array_vec.rs
index de028f61090..ced73e9e426 100644
--- a/src/librustc_data_structures/array_vec.rs
+++ b/src/librustc_data_structures/array_vec.rs
@@ -146,7 +146,7 @@ impl<A: Array> ArrayVec<A> {
                 tail_start: end,
                 tail_len: len - end,
                 iter: range_slice.iter(),
-                array_vec: Shared::new_unchecked(self as *mut _),
+                array_vec: Shared::from(self),
             }
         }
     }