2
0
Fork 0
mirror of https://github.com/rust-lang/rust-analyzer synced 2025-02-19 07:28:53 +00:00
rust-analyzer/crates/ra_syntax/fuzz/fuzz_targets/parser.rs
2019-09-30 11:58:53 +03:00

11 lines
229 B
Rust

//! FIXME: write short doc here
#![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)
}
});