diff --git a/crates/ide/src/syntax_highlighting.rs b/crates/ide/src/syntax_highlighting.rs
index dd8cfe42d2..be88b2f9c3 100644
--- a/crates/ide/src/syntax_highlighting.rs
+++ b/crates/ide/src/syntax_highlighting.rs
@@ -747,12 +747,6 @@ fn highlight_def(db: &RootDatabase, def: Definition) -> Highlight {
if func.is_unsafe(db) {
h |= HighlightModifier::Unsafe;
}
- if let Some(self_param) = func.self_param(db) {
- match self_param.access(db) {
- hir::Access::Exclusive => h |= HighlightModifier::Mutable,
- hir::Access::Shared | hir::Access::Owned => (),
- }
- }
return h;
}
hir::ModuleDef::Adt(hir::Adt::Struct(_)) => HighlightTag::Struct,
diff --git a/crates/ide/test_data/highlighting.html b/crates/ide/test_data/highlighting.html
index a6b79589bf..d0df2e0ec0 100644
--- a/crates/ide/test_data/highlighting.html
+++ b/crates/ide/test_data/highlighting.html
@@ -65,7 +65,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
self.x
}
- fn qux(&mut self) {
+ fn qux(&mut self) {
self.x = 0;
}
@@ -84,7 +84,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
self.x
}
- fn qux(&mut self) {
+ fn qux(&mut self) {
self.x = 0;
}