mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-29 06:23:25 +00:00
9 lines
214 B
Rust
9 lines
214 B
Rust
#![no_main]
|
|
#[macro_use] extern crate libfuzzer_sys;
|
|
extern crate ra_syntax;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
if let Ok(text) = std::str::from_utf8(data) {
|
|
ra_syntax::check_fuzz_invariants(text)
|
|
}
|
|
});
|