rust-analyzer/crates/syntax/fuzz/fuzz_targets/reparse.rs

12 lines
232 B
Rust
Raw Normal View History

2021-05-22 13:53:47 +00:00
//! Fuzzing for incremental parsing.
2019-03-21 17:06:48 +00:00
#![no_main]
use libfuzzer_sys::fuzz_target;
2020-08-12 16:26:51 +00:00
use syntax::fuzz::CheckReparse;
2019-03-21 17:06:48 +00:00
fuzz_target!(|data: &[u8]| {
if let Some(check) = CheckReparse::from_data(data) {
check.run();
}
});