aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir_ty/src/traits
diff options
context:
space:
mode:
authoradamrk <[email protected]>2020-06-07 20:57:29 +0100
committeradamrk <[email protected]>2020-06-19 21:51:25 +0100
commit3f94a90c7bbc1b3116a7960ae9f25ebe35d68ad0 (patch)
tree82d8a965b9e01e136df4eeaee4c4fee4630ab2a7 /crates/ra_hir_ty/src/traits
parent6654055308515cb330f23942f347de5605f69be1 (diff)
Infer FnSig from Fn traits
Diffstat (limited to 'crates/ra_hir_ty/src/traits')
-rw-r--r--crates/ra_hir_ty/src/traits/builtin.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/ra_hir_ty/src/traits/builtin.rs b/crates/ra_hir_ty/src/traits/builtin.rs
index 88a422d2c..b05e679ad 100644
--- a/crates/ra_hir_ty/src/traits/builtin.rs
+++ b/crates/ra_hir_ty/src/traits/builtin.rs
@@ -360,7 +360,11 @@ fn super_trait_object_unsize_impl_datum(
360 BuiltinImplData { num_vars, trait_ref, where_clauses: Vec::new(), assoc_ty_values: Vec::new() } 360 BuiltinImplData { num_vars, trait_ref, where_clauses: Vec::new(), assoc_ty_values: Vec::new() }
361} 361}
362 362
363fn get_fn_trait(db: &dyn HirDatabase, krate: CrateId, fn_trait: super::FnTrait) -> Option<TraitId> { 363pub fn get_fn_trait(
364 db: &dyn HirDatabase,
365 krate: CrateId,
366 fn_trait: super::FnTrait,
367) -> Option<TraitId> {
364 let target = db.lang_item(krate, fn_trait.lang_item_name().into())?; 368 let target = db.lang_item(krate, fn_trait.lang_item_name().into())?;
365 match target { 369 match target {
366 LangItemTarget::TraitId(t) => Some(t), 370 LangItemTarget::TraitId(t) => Some(t),