just/src/fuzzing.rs

10 lines
198 B
Rust
Raw Normal View History

use crate::common::*;
2018-10-13 03:12:35 -07:00
pub fn compile(text: &str) {
2018-10-13 06:38:44 -07:00
if let Err(error) = Parser::parse(text) {
if let CompilationErrorKind::Internal { .. } = error.kind {
2018-10-13 06:38:44 -07:00
panic!("{}", error)
}
}
2018-10-13 03:12:35 -07:00
}