diff options
author | Aleksey Kladov <[email protected]> | 2018-09-08 16:34:41 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-09-08 16:34:41 +0100 |
commit | ba4a697d8cb577c03c84c0c91a25ecbeaa9c68e6 (patch) | |
tree | 8967481740bf2f7c097a056544cf5ef76d076ac3 /crates/libsyntax2/fuzz | |
parent | a60b9ad963db87c6431de7a9b57e0d2241efdeab (diff) |
move fuzz-invariants to the library
Diffstat (limited to 'crates/libsyntax2/fuzz')
-rw-r--r-- | crates/libsyntax2/fuzz/fuzz_targets/parser.rs | 5 |
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 | ||
5 | fuzz_target!(|data: &[u8]| { | 5 | fuzz_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 | }); |