diff --git a/crates/ide/src/syntax_highlighting/test_data/highlight_general.html b/crates/ide/src/syntax_highlighting/test_data/highlight_general.html
index 27e3e57065c..86ed8dbd777 100644
--- a/crates/ide/src/syntax_highlighting/test_data/highlight_general.html
+++ b/crates/ide/src/syntax_highlighting/test_data/highlight_general.html
@@ -59,11 +59,11 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
x: u32,
}
-trait Bar where Self: {
+trait Bar {
fn bar(&self) -> i32;
}
-impl Bar for Foo where Self: {
+impl Bar for Foo {
fn bar(&self) -> i32 {
self.x
}
@@ -210,7 +210,7 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
impl Bool {
pub const fn to_primitive(self) -> bool {
- matches!(self, Self::True)
+ true
}
}
const USAGE_OF_BOOL:bool = Bool::True.to_primitive();
diff --git a/crates/ide/src/syntax_highlighting/test_data/highlight_keywords.html b/crates/ide/src/syntax_highlighting/test_data/highlight_keywords.html
index ded76d3ca31..145bba2a06c 100644
--- a/crates/ide/src/syntax_highlighting/test_data/highlight_keywords.html
+++ b/crates/ide/src/syntax_highlighting/test_data/highlight_keywords.html
@@ -49,5 +49,9 @@ pre { color: #DCDCCC; background: #3F3F3F; font-size: 22px; padd
use super::*;
}
+macro_rules! void {
+ ($($tt:tt)) => {}
+}
+void!(Self);
struct __ where Self:;
fn __(_: Self) {}
\ No newline at end of file
diff --git a/crates/ide/src/syntax_highlighting/tests.rs b/crates/ide/src/syntax_highlighting/tests.rs
index 599def0341e..0af743431b6 100644
--- a/crates/ide/src/syntax_highlighting/tests.rs
+++ b/crates/ide/src/syntax_highlighting/tests.rs
@@ -113,11 +113,11 @@ struct Foo {
x: u32,
}
-trait Bar where Self: {
+trait Bar {
fn bar(&self) -> i32;
}
-impl Bar for Foo where Self: {
+impl Bar for Foo {
fn bar(&self) -> i32 {
self.x
}
@@ -264,7 +264,7 @@ pub enum Bool { True, False }
impl Bool {
pub const fn to_primitive(self) -> bool {
- matches!(self, Self::True)
+ true
}
}
const USAGE_OF_BOOL:bool = Bool::True.to_primitive();
@@ -346,6 +346,10 @@ mod __ {
use super::*;
}
+macro_rules! void {
+ ($($tt:tt)) => {}
+}
+void!(Self);
struct __ where Self:;
fn __(_: Self) {}
"#,