diff options
Diffstat (limited to 'crates/ra_syntax/src/lib.rs')
-rw-r--r-- | crates/ra_syntax/src/lib.rs | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/crates/ra_syntax/src/lib.rs b/crates/ra_syntax/src/lib.rs index 7334d53ef..4f3020440 100644 --- a/crates/ra_syntax/src/lib.rs +++ b/crates/ra_syntax/src/lib.rs | |||
@@ -29,6 +29,8 @@ mod ptr; | |||
29 | 29 | ||
30 | pub mod algo; | 30 | pub mod algo; |
31 | pub mod ast; | 31 | pub mod ast; |
32 | #[doc(hidden)] | ||
33 | pub mod fuzz; | ||
32 | 34 | ||
33 | pub use rowan::{SmolStr, TextRange, TextUnit}; | 35 | pub use rowan::{SmolStr, TextRange, TextUnit}; |
34 | pub use ra_parser::SyntaxKind; | 36 | pub use ra_parser::SyntaxKind; |
@@ -83,13 +85,6 @@ impl SourceFile { | |||
83 | } | 85 | } |
84 | } | 86 | } |
85 | 87 | ||
86 | pub fn check_fuzz_invariants(text: &str) { | ||
87 | let file = SourceFile::parse(text); | ||
88 | let root = file.syntax(); | ||
89 | validation::validate_block_structure(root); | ||
90 | let _ = file.errors(); | ||
91 | } | ||
92 | |||
93 | /// This test does not assert anything and instead just shows off the crate's | 88 | /// This test does not assert anything and instead just shows off the crate's |
94 | /// API. | 89 | /// API. |
95 | #[test] | 90 | #[test] |