Skip to content

Commit 518c9c7

Browse files
Revert "8024: Added test case for highlighting trait items."
This reverts commit d7dcd41.
1 parent d0fcd5c commit 518c9c7

File tree

2 files changed

+0
-104
lines changed

2 files changed

+0
-104
lines changed

crates/ide/src/syntax_highlighting/test_data/highlight_trait_items.html

Lines changed: 0 additions & 67 deletions
This file was deleted.

crates/ide/src/syntax_highlighting/tests.rs

Lines changed: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -659,43 +659,6 @@ fn foo() {
659659
);
660660
}
661661

662-
#[test]
663-
fn test_highlight_trait_items() {
664-
check_highlighting(
665-
r#"
666-
struct Cat;
667-
668-
trait Animal {
669-
const SOUND: &'static str;
670-
671-
fn make_sound(&self) {
672-
println!("{}", Self::SOUND);
673-
}
674-
}
675-
676-
impl Animal for Cat {
677-
const SOUND: &'static str = "Meow!";
678-
}
679-
680-
impl Cat {
681-
const SPEED: u32 = 2;
682-
683-
fn run() {}
684-
}
685-
686-
fn main() {
687-
let cat = Cat;
688-
cat.make_sound();
689-
let _sound = Cat::SOUND;
690-
let _speed = Cat::SPEED;
691-
Cat::run();
692-
}
693-
"#,
694-
expect_file!["./test_data/highlight_trait_items.html"],
695-
false,
696-
);
697-
}
698-
699662
/// Highlights the code given by the `ra_fixture` argument, renders the
700663
/// result as HTML, and compares it with the HTML file given as `snapshot`.
701664
/// Note that the `snapshot` file is overwritten by the rendered HTML.

0 commit comments

Comments
 (0)