Skip to content

Commit ad305ac

Browse files
author
Julian Orth
committed
fixup
1 parent 093c526 commit ad305ac

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/libcollections/vec.rs

+3-2
Original file line numberDiff line numberDiff line change
@@ -1804,14 +1804,15 @@ impl DrainRange for usize {
18041804
#[unsafe_no_drop_flag]
18051805
#[unstable(feature = "collections",
18061806
reason = "recently added as part of collections reform 2")]
1807-
pub struct Drain<'a, T: 'a> {
1807+
pub struct Drain<'a, T> {
18081808
tail: usize,
18091809
start: *const T,
18101810
end: *const T,
18111811
left: *const T,
18121812
right: *const T,
18131813
marker1: PhantomData<&'a ()>,
1814-
marker2: PhantomData<T>,
1814+
// Drain<T> contains functions to retrieve T but none to insert T.
1815+
marker2: PhantomData<Fn() -> T>,
18151816
}
18161817

18171818
unsafe impl<'a, T: Sync> Sync for Drain<'a, T> {}

0 commit comments

Comments
 (0)