diff --git a/Cargo.toml b/Cargo.toml index 3a740edf47..931d4eb3d7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -172,7 +172,6 @@ borrow_deref_ref = "allow" clone_on_copy = "allow" derivable_impls = "allow" derived_hash_with_manual_eq = "allow" -double_parens = "allow" explicit_auto_deref = "allow" field_reassign_with_default = "allow" forget_non_drop = "allow" diff --git a/crates/hir-ty/src/mir/eval.rs b/crates/hir-ty/src/mir/eval.rs index 5e8b44f199..41d0da5be7 100644 --- a/crates/hir-ty/src/mir/eval.rs +++ b/crates/hir-ty/src/mir/eval.rs @@ -272,6 +272,7 @@ const STACK_OFFSET: usize = 1 << 30; const HEAP_OFFSET: usize = 1 << 29; impl Address { + #[allow(clippy::double_parens)] fn from_bytes(it: &[u8]) -> Result { Ok(Address::from_usize(from_bytes!(usize, it))) } @@ -1661,6 +1662,7 @@ impl Evaluator<'_> { }) } + #[allow(clippy::double_parens)] fn allocate_const_in_heap(&mut self, locals: &Locals, konst: &Const) -> Result { let ty = &konst.data(Interner).ty; let chalk_ir::ConstValue::Concrete(c) = &konst.data(Interner).value else {