Skip to content

Commit

Permalink
Rollup merge of #73479 - pickfire:liballoc-spell, r=dtolnay
Browse files Browse the repository at this point in the history
Minor tweaks to liballoc
  • Loading branch information
RalfJung committed Jun 19, 2020
2 parents f7d833e + 111c2d2 commit 028c908
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/liballoc/vec.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1639,7 +1639,7 @@ impl<T: Default> Vec<T> {
}
}

// This code generalises `extend_with_{element,default}`.
// This code generalizes `extend_with_{element,default}`.
trait ExtendWith<T> {
fn next(&mut self) -> T;
fn last(self) -> T;
Expand Down Expand Up @@ -1837,7 +1837,7 @@ unsafe trait IsZero {
}

macro_rules! impl_is_zero {
($t: ty, $is_zero: expr) => {
($t:ty, $is_zero:expr) => {
unsafe impl IsZero for $t {
#[inline]
fn is_zero(&self) -> bool {
Expand Down Expand Up @@ -2362,9 +2362,9 @@ macro_rules! __impl_slice_eq1 {
__impl_slice_eq1! { [] Vec<A>, Vec<B>, }
__impl_slice_eq1! { [] Vec<A>, &[B], }
__impl_slice_eq1! { [] Vec<A>, &mut [B], }
__impl_slice_eq1! { [] Cow<'_, [A]>, Vec<B>, A: Clone }
__impl_slice_eq1! { [] Cow<'_, [A]>, &[B], A: Clone }
__impl_slice_eq1! { [] Cow<'_, [A]>, &mut [B], A: Clone }
__impl_slice_eq1! { [] Cow<'_, [A]>, Vec<B>, A: Clone }
__impl_slice_eq1! { [const N: usize] Vec<A>, [B; N], [B; N]: LengthAtMost32 }
__impl_slice_eq1! { [const N: usize] Vec<A>, &[B; N], [B; N]: LengthAtMost32 }

Expand Down

0 comments on commit 028c908

Please sign in to comment.