mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-27 05:23:24 +00:00
11 lines
232 B
Rust
11 lines
232 B
Rust
//! Fuzzing for incremental parsing.
|
|
|
|
#![no_main]
|
|
use libfuzzer_sys::fuzz_target;
|
|
use syntax::fuzz::CheckReparse;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
if let Some(check) = CheckReparse::from_data(data) {
|
|
check.run();
|
|
}
|
|
});
|