Extend test_syntax to check that canonicalization doesn't panic on the input

Importantly, this would have caught the issue discovered in #7279, prior to that landing on main.
This commit is contained in:
Joshua Warner 2024-12-04 17:55:43 -08:00
parent e65460b0bf
commit b4fa7294c7
No known key found for this signature in database
GPG key ID: 89AD497003F93FDD
387 changed files with 559 additions and 393 deletions

View file

@ -11,7 +11,7 @@ fuzz_target!(|data: &[u8]| {
let ast = input.parse_in(&arena);
if let Ok(ast) = ast {
if !ast.is_malformed() {
input.check_invariants(|_| (), true);
input.check_invariants(|_| (), true, None);
}
}
}