Unnamed repository; edit this file 'description' to name the repository.
-rw-r--r--crates/hir-ty/src/layout/tests.rs1
-rw-r--r--crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs4
-rw-r--r--crates/ide-completion/src/completions/expr.rs7
-rw-r--r--crates/ide-db/src/syntax_helpers/node_ext.rs7
4 files changed, 3 insertions, 16 deletions
diff --git a/crates/hir-ty/src/layout/tests.rs b/crates/hir-ty/src/layout/tests.rs
index c12fbeccdb..afbafb3fea 100644
--- a/crates/hir-ty/src/layout/tests.rs
+++ b/crates/hir-ty/src/layout/tests.rs
@@ -441,6 +441,7 @@ fn return_position_impl_trait() {
// but rustc actually runs this code.
let pinned = pin!(inp);
struct EmptyWaker;
+ #[expect(clippy::manual_noop_waker, reason = "we don't have access to std here")]
impl Wake for EmptyWaker {
fn wake(self: Arc<Self>) {
}
diff --git a/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs b/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs
index 50ce8d9b4d..5e6e74bc94 100644
--- a/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs
+++ b/crates/ide-assists/src/handlers/extract_struct_from_enum_variant.rs
@@ -249,10 +249,6 @@ fn tag_generics_in_variant(ty: &ast::Type, generics: &mut [(ast::GenericParam, b
}
}
param if matches!(token.kind(), T![ident]) => {
- #[expect(
- clippy::collapsible_match,
- reason = "it won't compile since in the guard, `param` is immutable"
- )]
if match param {
ast::GenericParam::ConstParam(konst) => konst
.name()
diff --git a/crates/ide-completion/src/completions/expr.rs b/crates/ide-completion/src/completions/expr.rs
index 506662ca72..8d906064c0 100644
--- a/crates/ide-completion/src/completions/expr.rs
+++ b/crates/ide-completion/src/completions/expr.rs
@@ -320,12 +320,7 @@ pub(crate) fn complete_expr_path(
}
// synthetic names currently leak out as we lack synthetic hygiene, so filter them
// out here
- ScopeDef::Local(_) =>
- {
- #[expect(
- clippy::collapsible_match,
- reason = "this changes meaning, causing the next arm to be selected"
- )]
+ ScopeDef::Local(_) => {
if !name.as_str().starts_with('<') {
acc.add_path_resolution(ctx, path_ctx, name, def, doc_aliases)
}
diff --git a/crates/ide-db/src/syntax_helpers/node_ext.rs b/crates/ide-db/src/syntax_helpers/node_ext.rs
index 11ba815dab..e30b21c139 100644
--- a/crates/ide-db/src/syntax_helpers/node_ext.rs
+++ b/crates/ide-db/src/syntax_helpers/node_ext.rs
@@ -216,12 +216,7 @@ pub fn walk_ty(ty: &ast::Type, cb: &mut dyn FnMut(ast::Type) -> bool) {
preorder.skip_subtree();
cb(ty);
}
- Some(ty) =>
- {
- #[expect(
- clippy::collapsible_match,
- reason = "it won't compile due to exhaustiveness"
- )]
+ Some(ty) => {
if cb(ty) {
preorder.skip_subtree();
}