Merge #7879
7879: Fix some warnings r=lnicola a=lnicola bors r+ Co-authored-by: Laurențiu Nicola <lnicola@dend.ro>
This commit is contained in:
commit
25a43e24c8
@ -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,
|
||||
}
|
||||
};
|
||||
|
@ -189,7 +189,7 @@ pub(crate) fn doc_owner_to_def(
|
||||
) -> Option<Definition> {
|
||||
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(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user