mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-11-16 17:58:16 +00:00
9 lines
196 B
Rust
9 lines
196 B
Rust
#![no_main]
|
|
use libfuzzer_sys::fuzz_target;
|
|
use ra_syntax::fuzz::check_parser;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
if let Ok(text) = std::str::from_utf8(data) {
|
|
check_parser(text)
|
|
}
|
|
});
|