Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'crates/hir-ty/src/lib.rs')
| -rw-r--r-- | crates/hir-ty/src/lib.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/hir-ty/src/lib.rs b/crates/hir-ty/src/lib.rs index 5cb2a3d804..0c107460fa 100644 --- a/crates/hir-ty/src/lib.rs +++ b/crates/hir-ty/src/lib.rs @@ -573,10 +573,7 @@ pub fn callable_sig_from_fn_trait<'db>( return None; }; - let fn_once_trait = lang_items.FnOnce?; - let output_assoc_type = fn_once_trait - .trait_items(db) - .associated_type_by_name(&Name::new_symbol_root(sym::Output))?; + let output_assoc_type = lang_items.FnOnceOutput?; let output_projection = Ty::new_alias( interner, AliasTy::new( |