about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2020-06-19 08:56:19 +0200
committerGitHub <noreply@github.com>2020-06-19 08:56:19 +0200
commit028c908991125742c4acc38b7a3108a1d1133771 (patch)
tree522aba5368c067b64995b45a91f3e4e5587bfe3a /src
parentf7d833e83d009c07838b9450d4251046458608cc (diff)
parent111c2d27f501ad935daa2ba22001dceb92113a0e (diff)
downloadrust-028c908991125742c4acc38b7a3108a1d1133771.tar.gz
rust-028c908991125742c4acc38b7a3108a1d1133771.zip
Rollup merge of #73479 - pickfire:liballoc-spell, r=dtolnay
Minor tweaks to liballoc
Diffstat (limited to 'src')
-rw-r--r--src/liballoc/vec.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/liballoc/vec.rs b/src/liballoc/vec.rs
index 06462fd96d9..f16cac05ea0 100644
--- a/src/liballoc/vec.rs
+++ b/src/liballoc/vec.rs
@@ -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;
@@ -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 {
@@ -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 }