mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 04:44:57 +00:00
move fuzz-invariants to the library
This commit is contained in:
parent
a60b9ad963
commit
ba4a697d8c
3 changed files with 44 additions and 41 deletions
|
@ -4,9 +4,6 @@ extern crate libsyntax2;
|
|||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
if let Ok(text) = std::str::from_utf8(data) {
|
||||
let x = libsyntax2::File::parse(text);
|
||||
let _ = x.ast();
|
||||
let _ = x.syntax();
|
||||
let _ = x.errors();
|
||||
libsyntax2::utils::check_fuzz_invariants(text)
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue