From 7469d2b8631594a5ed41082f375bd4cb20538efa Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Fri, 22 Nov 2019 18:53:39 +0300 Subject: Remove TraitData from API --- crates/ra_hir/src/ty/method_resolution.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'crates/ra_hir/src/ty') diff --git a/crates/ra_hir/src/ty/method_resolution.rs b/crates/ra_hir/src/ty/method_resolution.rs index f84aae26e..f61c27218 100644 --- a/crates/ra_hir/src/ty/method_resolution.rs +++ b/crates/ra_hir/src/ty/method_resolution.rs @@ -233,7 +233,7 @@ fn iterate_trait_method_candidates( .chain(traits_from_env) .chain(resolver.traits_in_scope(db).into_iter().map(Trait::from)); 'traits: for t in traits { - let data = t.trait_data(db); + let data = db.trait_data(t.id); // we'll be lazy about checking whether the type implements the // trait, but if we find out it doesn't, we'll skip the rest of the -- cgit v1.2.3