Skip to content

Commit 028c908

Browse files
authored
Rollup merge of #73479 - pickfire:liballoc-spell, r=dtolnay
Minor tweaks to liballoc
2 parents f7d833e + 111c2d2 commit 028c908

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/liballoc/vec.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1639,7 +1639,7 @@ impl<T: Default> Vec<T> {
16391639
}
16401640
}
16411641

1642-
// This code generalises `extend_with_{element,default}`.
1642+
// This code generalizes `extend_with_{element,default}`.
16431643
trait ExtendWith<T> {
16441644
fn next(&mut self) -> T;
16451645
fn last(self) -> T;
@@ -1837,7 +1837,7 @@ unsafe trait IsZero {
18371837
}
18381838

18391839
macro_rules! impl_is_zero {
1840-
($t: ty, $is_zero: expr) => {
1840+
($t:ty, $is_zero:expr) => {
18411841
unsafe impl IsZero for $t {
18421842
#[inline]
18431843
fn is_zero(&self) -> bool {
@@ -2362,9 +2362,9 @@ macro_rules! __impl_slice_eq1 {
23622362
__impl_slice_eq1! { [] Vec<A>, Vec<B>, }
23632363
__impl_slice_eq1! { [] Vec<A>, &[B], }
23642364
__impl_slice_eq1! { [] Vec<A>, &mut [B], }
2365+
__impl_slice_eq1! { [] Cow<'_, [A]>, Vec<B>, A: Clone }
23652366
__impl_slice_eq1! { [] Cow<'_, [A]>, &[B], A: Clone }
23662367
__impl_slice_eq1! { [] Cow<'_, [A]>, &mut [B], A: Clone }
2367-
__impl_slice_eq1! { [] Cow<'_, [A]>, Vec<B>, A: Clone }
23682368
__impl_slice_eq1! { [const N: usize] Vec<A>, [B; N], [B; N]: LengthAtMost32 }
23692369
__impl_slice_eq1! { [const N: usize] Vec<A>, &[B; N], [B; N]: LengthAtMost32 }
23702370

0 commit comments

Comments
 (0)