mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-15 09:27:27 +00:00
Auto merge of #12320 - NotWearingPants:patch-1, r=Veykril
Hide closure ret hints if ret type is specified Fixes #12319
This commit is contained in:
commit
44be090f2e
1 changed files with 4 additions and 0 deletions
|
@ -463,6 +463,10 @@ fn closure_ret_hints(
|
|||
return None;
|
||||
}
|
||||
|
||||
if closure.ret_type().is_some() {
|
||||
return None;
|
||||
}
|
||||
|
||||
let param_list = match closure.body() {
|
||||
Some(ast::Expr::BlockExpr(_)) => closure.param_list()?,
|
||||
_ => return None,
|
||||
|
|
Loading…
Reference in a new issue