// SPDX-License-Identifier: Apache-2.0 OR MIT use crate::alloc::Allocator; #[cfg(not(no_global_oom_handling))] use crate::borrow::Cow; use super::Vec; macro_rules! __impl_slice_eq1 { ([$($vars:tt)*] $lhs:ty, $rhs:ty $(where $ty:ty: $bound:ident)?, #[$stability:meta]) => { #[$stability] impl PartialEq<$rhs> for $lhs where T: PartialEq, $($ty: $bound)? { #[inline] fn eq(&self, other: &$rhs) -> bool { self[..] == other[..] } #[inline] fn ne(&self, other: &$rhs) -> bool { self[..] != other[..] } } } } __impl_slice_eq1! { [A1: Allocator, A2: Allocator] Vec, Vec, #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator] Vec, &[U], #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator] Vec, &mut [U], #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator] &[T], Vec, #[stable(feature = "partialeq_vec_for_ref_slice", since = "1.46.0")] } __impl_slice_eq1! { [A: Allocator] &mut [T], Vec, #[stable(feature = "partialeq_vec_for_ref_slice", since = "1.46.0")] } __impl_slice_eq1! { [A: Allocator] Vec, [U], #[stable(feature = "partialeq_vec_for_slice", since = "1.48.0")] } __impl_slice_eq1! { [A: Allocator] [T], Vec, #[stable(feature = "partialeq_vec_for_slice", since = "1.48.0")] } #[cfg(not(no_global_oom_handling))] __impl_slice_eq1! { [A: Allocator] Cow<'_, [T]>, Vec where T: Clone, #[stable(feature = "rust1", since = "1.0.0")] } #[cfg(not(no_global_oom_handling))] __impl_slice_eq1! { [] Cow<'_, [T]>, &[U] where T: Clone, #[stable(feature = "rust1", since = "1.0.0")] } #[cfg(not(no_global_oom_handling))] __impl_slice_eq1! { [] Cow<'_, [T]>, &mut [U] where T: Clone, #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator, const N: usize] Vec, [U; N], #[stable(feature = "rust1", since = "1.0.0")] } __impl_slice_eq1! { [A: Allocator, const N: usize] Vec, &[U; N], #[stable(feature = "rust1", since = "1.0.0")] } // NOTE: some less important impls are omitted to reduce code bloat // FIXME(Centril): Reconsider this? //__impl_slice_eq1! { [const N: usize] Vec, &mut [B; N], } //__impl_slice_eq1! { [const N: usize] [A; N], Vec, } //__impl_slice_eq1! { [const N: usize] &[A; N], Vec, } //__impl_slice_eq1! { [const N: usize] &mut [A; N], Vec, } //__impl_slice_eq1! { [const N: usize] Cow<'a, [A]>, [B; N], } //__impl_slice_eq1! { [const N: usize] Cow<'a, [A]>, &[B; N], } //__impl_slice_eq1! { [const N: usize] Cow<'a, [A]>, &mut [B; N], } inux-3.12.y Hosts the 0x221E linux distro kernel.Ubuntu
summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2026-02-21Convert 'alloc_obj' family to use the new default GFP_KERNEL argumentLinus Torvalds
2026-02-21treewide: Replace kmalloc with kmalloc_obj for non-scalar typesKees Cook
2024-10-04usb: Switch back to struct platform_driver::remove()Uwe Kleine-König
2023-10-02USB: c67x00: Remove unused declaration c67x00_hcd_msg_received()Yue Haibing
2023-05-28usb: c67x00-drv: Convert to platform remove callback returning voidUwe Kleine-König
2022-05-12USB: c67x00: remove unnecessary check of resYang Yingliang
2022-04-23usb: remove third argument of usb_maxpacket()Vincent Mailhol
2021-01-26usb/c67x00: Replace tasklet with workDavidlohr Bueso
2020-08-31Merge 5.9-rc3 into usb-nextGreg Kroah-Hartman
2020-08-23treewide: Use fallthrough pseudo-keywordGustavo A. R. Silva
2020-08-18usb: c67x00: convert tasklets to use new tasklet_setup() APIAllen Pais
2020-07-20Merge 5.8-rc6 into usb-nextGreg Kroah-Hartman
2020-07-15usb: c67x00: c67x00-hcd: Demote obvious misuse of kerneldoc to standard comme...Lee Jones
2020-07-10USB: c67x00: fix use after free in c67x00_giveback_urbTom Rix
2020-07-03usb: c67x00: c67x00-sched: Demote obvious misuse of kerneldoc to standard com...Lee Jones
2020-07-03usb: c67x00: c67x00-ll-hpi: Demote obvious misuse of kerneldoc to standard co...Lee Jones
2020-03-17USB: c67x00: Use the correct style for SPDX License IdentifierNishad Kamdar
2017-11-07USB: add SPDX identifiers to all remaining MakefilesGreg Kroah-Hartman
2017-11-07USB: c67x00: Remove redundant license textGreg Kroah-Hartman
2017-11-04USB: add SPDX identifiers to all remaining files in drivers/usb/Greg Kroah-Hartman
2017-11-01USB: c67x00: remove redundant pointer urbpColin Ian King
2017-07-30c67x00-hcd: constify hc_driver structuresJulia Lawall