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/test_data/highlighting.html | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'crates/ra_ide/test_data/highlighting.html') diff --git a/crates/ra_ide/test_data/highlighting.html b/crates/ra_ide/test_data/highlighting.html index 134743c72..553811a2f 100644 --- a/crates/ra_ide/test_data/highlighting.html +++ b/crates/ra_ide/test_data/highlighting.html @@ -51,6 +51,16 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd } } +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