Skip to content

Commit 1dea9c2

Browse files
committed
drive-by: make NonDrop traits non-public
1 parent 7739c5a commit 1dea9c2

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
@@ -511,7 +511,7 @@ where
511511
#[doc(hidden)]
512512
#[unstable(issue = "none", feature = "std_internals")]
513513
#[rustc_unsafe_specialization_marker]
514-
pub trait NonDrop {}
514+
trait NonDrop {}
515515

516516
// T: Copy as approximation for !Drop since get_unchecked does not advance self.ptr
517517
// 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
@@ -368,7 +368,7 @@ unsafe impl<T, const N: usize> TrustedLen for IntoIter<T, N> {}
368368
#[doc(hidden)]
369369
#[unstable(issue = "none", feature = "std_internals")]
370370
#[rustc_unsafe_specialization_marker]
371-
pub trait NonDrop {}
371+
trait NonDrop {}
372372

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

0 commit comments

Comments
 (0)