mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 23:25:03 +00:00
8024: Fix for function name change.
This commit is contained in:
parent
d7dcd41801
commit
d0fcd5c5e0
1 changed files with 2 additions and 2 deletions
|
@ -283,7 +283,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
|
||||||
|
|
||||||
match item.container(db) {
|
match item.container(db) {
|
||||||
AssocItemContainer::Impl(i) => {
|
AssocItemContainer::Impl(i) => {
|
||||||
if i.target_trait(db).is_some() {
|
if i.trait_(db).is_some() {
|
||||||
h |= HlMod::Trait;
|
h |= HlMod::Trait;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -308,7 +308,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
|
||||||
h |= HlMod::Associated;
|
h |= HlMod::Associated;
|
||||||
match item.container(db) {
|
match item.container(db) {
|
||||||
AssocItemContainer::Impl(i) => {
|
AssocItemContainer::Impl(i) => {
|
||||||
if i.target_trait(db).is_some() {
|
if i.trait_(db).is_some() {
|
||||||
h |= HlMod::Trait;
|
h |= HlMod::Trait;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue