mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-27 12:29:21 +00:00
Skip lifetime elision on fn pointers and fn trait types
This commit is contained in:
parent
506895fa2f
commit
b996a54cd8
5 changed files with 105 additions and 70 deletions
|
@ -334,6 +334,7 @@ impl<'a> InferenceContext<'a> {
|
|||
let (param_tys, ret_ty) = match res {
|
||||
Some(res) => {
|
||||
let adjustments = auto_deref_adjust_steps(&derefs);
|
||||
// FIXME: Handle call adjustments for Fn/FnMut
|
||||
self.write_expr_adj(*callee, adjustments);
|
||||
res
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue