diff options
author | Lukas Wirth <[email protected]> | 2020-07-13 20:39:01 +0100 |
---|---|---|
committer | Lukas Wirth <[email protected]> | 2020-07-13 20:39:01 +0100 |
commit | 91b35d882776d7ae8891b3aecf9879164ef183b5 (patch) | |
tree | 54ee29e69913743b4f31f2b4d3eb4fb6c6463721 /crates/ra_ide/src/syntax_highlighting | |
parent | 853440775d72974585ca3fe39f9688a4d4302dd3 (diff) |
Semantic Highlighting: Emit mutable modifier for 'self' when applicable
Diffstat (limited to 'crates/ra_ide/src/syntax_highlighting')
-rw-r--r-- | crates/ra_ide/src/syntax_highlighting/tests.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/ra_ide/src/syntax_highlighting/tests.rs b/crates/ra_ide/src/syntax_highlighting/tests.rs index aa7c887d6..87a6e2523 100644 --- a/crates/ra_ide/src/syntax_highlighting/tests.rs +++ b/crates/ra_ide/src/syntax_highlighting/tests.rs | |||
@@ -25,6 +25,16 @@ impl Bar for Foo { | |||
25 | } | 25 | } |
26 | } | 26 | } |
27 | 27 | ||
28 | impl Foo { | ||
29 | fn baz(mut self) -> i32 { | ||
30 | self.x | ||
31 | } | ||
32 | |||
33 | fn qux(&mut self) { | ||
34 | self.x = 0; | ||
35 | } | ||
36 | } | ||
37 | |||
28 | static mut STATIC_MUT: i32 = 0; | 38 | static mut STATIC_MUT: i32 = 0; |
29 | 39 | ||
30 | fn foo<'a, T>() -> T { | 40 | fn foo<'a, T>() -> T { |