Skip to content

Commit d0fcd5c

Browse files
8024: Fix for function name change.
1 parent d7dcd41 commit d0fcd5c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ide/src/syntax_highlighting/highlight.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
283283

284284
match item.container(db) {
285285
AssocItemContainer::Impl(i) => {
286-
if i.target_trait(db).is_some() {
286+
if i.trait_(db).is_some() {
287287
h |= HlMod::Trait;
288288
}
289289
}
@@ -308,7 +308,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
308308
h |= HlMod::Associated;
309309
match item.container(db) {
310310
AssocItemContainer::Impl(i) => {
311-
if i.target_trait(db).is_some() {
311+
if i.trait_(db).is_some() {
312312
h |= HlMod::Trait;
313313
}
314314
}

0 commit comments

Comments
 (0)