mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			12 lines
		
	
	
		
			232 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			232 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//! Fuzzing for from-scratch parsing.
 | 
						|
 | 
						|
#![no_main]
 | 
						|
use libfuzzer_sys::fuzz_target;
 | 
						|
use syntax::fuzz::check_parser;
 | 
						|
 | 
						|
fuzz_target!(|data: &[u8]| {
 | 
						|
    if let Ok(text) = std::str::from_utf8(data) {
 | 
						|
        check_parser(text)
 | 
						|
    }
 | 
						|
});
 |