Add missing #[allow(missing_docs)] on hack functions in alloc · qinheping/verify-rust-std@931d271 (original) (raw)

Original file line number Diff line number Diff line change
@@ -96,6 +96,7 @@ pub(crate) mod hack {
96 96 // We shouldn't add inline attribute to this since this is used in
97 97 // `vec!` macro mostly and causes perf regression. See #71204 for
98 98 // discussion and perf results.
99 +#[allow(missing_docs)]
99 100 pub fn into_vec<T, A: Allocator>(b: Box<[T], A>) -> Vec<T, A> {
100 101 unsafe {
101 102 let len = b.len();
@@ -105,6 +106,7 @@ pub(crate) mod hack {
105 106 }
106 107
107 108 #[cfg(not(no_global_oom_handling))]
109 +#[allow(missing_docs)]
108 110 #[inline]
109 111 pub fn to_vec<T: ConvertVec, A: Allocator>(s: &[T], alloc: A) -> Vec<T, A> {
110 112 T::to_vec(s, alloc)