mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
Add Callable modifier for variables that implements Fnonce
This commit is contained in:
parent
83d6bc7113
commit
a483b5545d
2 changed files with 24 additions and 3 deletions
|
@ -763,7 +763,7 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
|
|||
if local.is_mut(db) || local.ty(db).is_mutable_reference() {
|
||||
h |= HighlightModifier::Mutable;
|
||||
}
|
||||
if local.ty(db).as_callable(db).is_some() {
|
||||
if local.ty(db).as_callable(db).is_some() || local.ty(db).impls_fnonce(db) {
|
||||
h |= HighlightModifier::Callable;
|
||||
}
|
||||
return h;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue