From 91b35d882776d7ae8891b3aecf9879164ef183b5 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Mon, 13 Jul 2020 21:39:01 +0200 Subject: Semantic Highlighting: Emit mutable modifier for 'self' when applicable --- crates/ra_ide/src/syntax_highlighting/tests.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crates/ra_ide/src/syntax_highlighting') 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 { } } +impl Foo { + fn baz(mut self) -> i32 { + self.x + } + + fn qux(&mut self) { + self.x = 0; + } +} + static mut STATIC_MUT: i32 = 0; fn foo<'a, T>() -> T { -- cgit v1.2.3