aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/fuzz
diff options
context:
space:
mode:
Diffstat (limited to 'crates/libsyntax2/fuzz')
-rw-r--r--crates/libsyntax2/fuzz/fuzz_targets/parser.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/crates/libsyntax2/fuzz/fuzz_targets/parser.rs b/crates/libsyntax2/fuzz/fuzz_targets/parser.rs
index f941855e8..da87180bb 100644
--- a/crates/libsyntax2/fuzz/fuzz_targets/parser.rs
+++ b/crates/libsyntax2/fuzz/fuzz_targets/parser.rs
@@ -4,9 +4,6 @@ extern crate libsyntax2;
4 4
5fuzz_target!(|data: &[u8]| { 5fuzz_target!(|data: &[u8]| {
6 if let Ok(text) = std::str::from_utf8(data) { 6 if let Ok(text) = std::str::from_utf8(data) {
7 let x = libsyntax2::File::parse(text); 7 libsyntax2::utils::check_fuzz_invariants(text)
8 let _ = x.ast();
9 let _ = x.syntax();
10 let _ = x.errors();
11 } 8 }
12}); 9});