Mark static mutable names as unsafe

This commit is contained in:
Paul Daniel Faria
2020-08-06 20:07:42 -04:00
parent 6be528da0d
commit 8e657f663d
3 changed files with 5 additions and 4 deletions

View File

@@ -677,6 +677,7 @@ fn highlight_name(db: &RootDatabase, def: Definition) -> Highlight {
let mut h = Highlight::new(HighlightTag::Static);
if s.is_mut(db) {
h |= HighlightModifier::Mutable;
h |= HighlightModifier::Unsafe;
}
return h;
}