diff --git a/crates/cubecl-core/src/codegen/execution.rs b/crates/cubecl-core/src/codegen/execution.rs index e76a6d984..a3bf3d63b 100644 --- a/crates/cubecl-core/src/codegen/execution.rs +++ b/crates/cubecl-core/src/codegen/execution.rs @@ -162,7 +162,7 @@ where } } -impl<'h, 'a, 'b, 'c, K, R, E1, E2, E3> Execution<'h, K, R, (&'a [E1], &'b [E2], &'c [E3])> +impl Execution<'_, K, R, (&[E1], &[E2], &[E3])> where K: Kernel + 'static, R: Runtime, diff --git a/crates/cubecl-core/src/compute/kernel.rs b/crates/cubecl-core/src/compute/kernel.rs index 3cb41db0e..018c7013c 100644 --- a/crates/cubecl-core/src/compute/kernel.rs +++ b/crates/cubecl-core/src/compute/kernel.rs @@ -7,7 +7,6 @@ use cubecl_runtime::ExecutionMode; /// A kernel, compiled in the target language pub struct CompiledKernel { /// The name of the kernel entrypoint. - /// For example /// /// ```text diff --git a/crates/cubecl-core/src/frontend/container/array/launch.rs b/crates/cubecl-core/src/frontend/container/array/launch.rs index 05d4f0178..7e95d1ba8 100644 --- a/crates/cubecl-core/src/frontend/container/array/launch.rs +++ b/crates/cubecl-core/src/frontend/container/array/launch.rs @@ -64,7 +64,7 @@ pub enum ArrayArg<'a, R: Runtime> { }, } -impl<'a, R: Runtime> ArgSettings for ArrayArg<'a, R> { +impl ArgSettings for ArrayArg<'_, R> { fn register(&self, launcher: &mut KernelLauncher) { launcher.register_array(self) } diff --git a/crates/cubecl-core/src/frontend/container/sequence/launch.rs b/crates/cubecl-core/src/frontend/container/sequence/launch.rs index acf603e12..6f8cb42c7 100644 --- a/crates/cubecl-core/src/frontend/container/sequence/launch.rs +++ b/crates/cubecl-core/src/frontend/container/sequence/launch.rs @@ -12,7 +12,7 @@ pub struct SequenceArg<'a, R: Runtime, T: LaunchArg> { pub values: Vec>, } -impl<'a, R: Runtime, T: LaunchArg> Default for SequenceArg<'a, R, T> { +impl Default for SequenceArg<'_, R, T> { fn default() -> Self { Self::new() } @@ -72,7 +72,7 @@ impl LaunchArg for Sequence { } } -impl<'a, R: Runtime, T: LaunchArg> ArgSettings for SequenceArg<'a, R, T> { +impl ArgSettings for SequenceArg<'_, R, T> { fn register(&self, launcher: &mut crate::prelude::KernelLauncher) { self.values.iter().for_each(|arg| arg.register(launcher)); } diff --git a/crates/cubecl-core/src/frontend/container/tensor/launch.rs b/crates/cubecl-core/src/frontend/container/tensor/launch.rs index 8ab07b5dd..734237fad 100644 --- a/crates/cubecl-core/src/frontend/container/tensor/launch.rs +++ b/crates/cubecl-core/src/frontend/container/tensor/launch.rs @@ -36,7 +36,7 @@ pub struct TensorHandleRef<'a, R: Runtime> { pub runtime: PhantomData, } -impl<'a, R: Runtime> core::fmt::Debug for TensorHandleRef<'a, R> { +impl core::fmt::Debug for TensorHandleRef<'_, R> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { writeln!( f, @@ -153,7 +153,7 @@ impl<'a, R: Runtime> TensorArg<'a, R> { } } -impl<'a, R: Runtime> ArgSettings for TensorArg<'a, R> { +impl ArgSettings for TensorArg<'_, R> { fn register(&self, launcher: &mut KernelLauncher) { launcher.register_tensor(self) } diff --git a/crates/cubecl-core/src/frontend/element/float/tensor_float.rs b/crates/cubecl-core/src/frontend/element/float/tensor_float.rs index 74814db77..d638f97ea 100644 --- a/crates/cubecl-core/src/frontend/element/float/tensor_float.rs +++ b/crates/cubecl-core/src/frontend/element/float/tensor_float.rs @@ -1,3 +1,6 @@ +#![allow(clippy::transmute_int_to_float)] // Not yet stable in previous version. To be removed when +#![allow(clippy::transmute_float_to_int)] // prev=1.83. + use bytemuck::{Pod, Zeroable}; use core::ops::{Add, AddAssign, Div, DivAssign, Mul, MulAssign, Sub, SubAssign}; use half::f16; diff --git a/crates/cubecl-cpp/src/shared/instruction.rs b/crates/cubecl-cpp/src/shared/instruction.rs index 47f2e50ce..e8d9b0e83 100644 --- a/crates/cubecl-cpp/src/shared/instruction.rs +++ b/crates/cubecl-cpp/src/shared/instruction.rs @@ -777,7 +777,7 @@ struct EnsureBoolArg<'a, V: Display, D: Dialect> { elem: &'a Elem, } -impl<'a, V: Display, D: Dialect> Display for EnsureBoolArg<'a, V, D> { +impl Display for EnsureBoolArg<'_, V, D> { fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { if self.elem != &Elem::Bool { write!(f, "bool({})", self.var) diff --git a/crates/cubecl-linalg/src/lib.rs b/crates/cubecl-linalg/src/lib.rs index 22e1a6607..be5412d78 100644 --- a/crates/cubecl-linalg/src/lib.rs +++ b/crates/cubecl-linalg/src/lib.rs @@ -1,3 +1,5 @@ +#![allow(clippy::manual_div_ceil)] + /// Contains matmul kernels and Cube components pub mod matmul;