Skip to content

Commit 479e943

Browse files
committed
drive-by: make NonDrop traits non-public
1 parent 298a151 commit 479e943

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

library/alloc/src/vec/into_iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ where
466466
#[doc(hidden)]
467467
#[unstable(issue = "none", feature = "std_internals")]
468468
#[rustc_unsafe_specialization_marker]
469-
pub trait NonDrop {}
469+
trait NonDrop {}
470470

471471
// T: Copy as approximation for !Drop since get_unchecked does not advance self.ptr
472472
// and thus we can't implement drop-handling

library/core/src/array/iter.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -365,7 +365,7 @@ unsafe impl<T, const N: usize> TrustedLen for IntoIter<T, N> {}
365365
#[doc(hidden)]
366366
#[unstable(issue = "none", feature = "std_internals")]
367367
#[rustc_unsafe_specialization_marker]
368-
pub trait NonDrop {}
368+
trait NonDrop {}
369369

370370
// T: Copy as approximation for !Drop since get_unchecked does not advance self.alive
371371
// and thus we can't implement drop-handling

0 commit comments

Comments
 (0)