mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 21:25:25 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			11 lines
		
	
	
	
		
			232 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
			
		
		
	
	
			11 lines
		
	
	
	
		
			232 B
		
	
	
	
		
			Rust
		
	
	
	
	
	
//! Fuzzing for incremental parsing.
 | 
						|
 | 
						|
#![no_main]
 | 
						|
use libfuzzer_sys::fuzz_target;
 | 
						|
use syntax::fuzz::CheckReparse;
 | 
						|
 | 
						|
fuzz_target!(|data: &[u8]| {
 | 
						|
    if let Some(check) = CheckReparse::from_data(data) {
 | 
						|
        check.run();
 | 
						|
    }
 | 
						|
});
 |