diff --git a/crates/hir_def/src/attr.rs b/crates/hir_def/src/attr.rs index fe4c3fa28e4..24ffa6c3a06 100644 --- a/crates/hir_def/src/attr.rs +++ b/crates/hir_def/src/attr.rs @@ -367,7 +367,7 @@ fn inner_attributes( // Excerpt from the reference: // Block expressions accept outer and inner attributes, but only when they are the outer // expression of an expression statement or the final expression of another block expression. - ast::BlockExpr(it) => return None, + ast::BlockExpr(_it) => return None, _ => return None, } }; diff --git a/crates/ide/src/runnables.rs b/crates/ide/src/runnables.rs index 1e7baed2046..65f60891ef6 100644 --- a/crates/ide/src/runnables.rs +++ b/crates/ide/src/runnables.rs @@ -189,7 +189,7 @@ pub(crate) fn doc_owner_to_def( ) -> Option { let res: hir::ModuleDef = match_ast! { match item { - ast::SourceFile(it) => sema.scope(&item).module()?.into(), + ast::SourceFile(_it) => sema.scope(&item).module()?.into(), ast::Fn(it) => sema.to_def(&it)?.into(), ast::Struct(it) => sema.to_def(&it)?.into(), ast::Enum(it) => sema.to_def(&it)?.into(),