core: add #![warn(unreachable_pub)]
This commit is contained in:
@@ -893,7 +893,7 @@ impl<T> Guard<'_, T> {
|
||||
///
|
||||
/// No more than N elements must be initialized.
|
||||
#[inline]
|
||||
pub unsafe fn push_unchecked(&mut self, item: T) {
|
||||
pub(crate) unsafe fn push_unchecked(&mut self, item: T) {
|
||||
// SAFETY: If `initialized` was correct before and the caller does not
|
||||
// invoke this method more than N times then writes will be in-bounds
|
||||
// and slots will not be initialized more than once.
|
||||
|
||||
Reference in New Issue
Block a user