aboutsummaryrefslogtreecommitdiff
path: root/crates/libsyntax2/fuzz
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-09-08 16:34:41 +0100
committerAleksey Kladov <[email protected]>2018-09-08 16:34:41 +0100
commitba4a697d8cb577c03c84c0c91a25ecbeaa9c68e6 (patch)
tree8967481740bf2f7c097a056544cf5ef76d076ac3 /crates/libsyntax2/fuzz
parenta60b9ad963db87c6431de7a9b57e0d2241efdeab (diff)
move fuzz-invariants to the library
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});