mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-30 15:03:42 +00:00
11 lines
226 B
Rust
11 lines
226 B
Rust
//! FIXME: write short doc here
|
|
|
|
#![no_main]
|
|
use libfuzzer_sys::fuzz_target;
|
|
use syntax::fuzz::check_parser;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
if let Ok(text) = std::str::from_utf8(data) {
|
|
check_parser(text)
|
|
}
|
|
});
|