From d0fcd5c5e054efd64585fc3f3eff55fe7bfa1ce2 Mon Sep 17 00:00:00 2001 From: Chetan Khilosiya Date: Wed, 31 Mar 2021 00:47:37 +0530 Subject: 8024: Fix for function name change. --- crates/ide/src/syntax_highlighting/highlight.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'crates/ide/src/syntax_highlighting') diff --git a/crates/ide/src/syntax_highlighting/highlight.rs b/crates/ide/src/syntax_highlighting/highlight.rs index e218b3dc8..5ccb84714 100644 --- a/crates/ide/src/syntax_highlighting/highlight.rs +++ b/crates/ide/src/syntax_highlighting/highlight.rs @@ -283,7 +283,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight { match item.container(db) { AssocItemContainer::Impl(i) => { - if i.target_trait(db).is_some() { + if i.trait_(db).is_some() { h |= HlMod::Trait; } } @@ -308,7 +308,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight { h |= HlMod::Associated; match item.container(db) { AssocItemContainer::Impl(i) => { - if i.target_trait(db).is_some() { + if i.trait_(db).is_some() { h |= HlMod::Trait; } } -- cgit v1.2.3