mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-03 13:13:18 +00:00 
			
		
		
		
	revert change to license check
This commit is contained in:
		
							parent
							
								
									4c745d219f
								
							
						
					
					
						commit
						cbdb6bd939
					
				@ -53,11 +53,9 @@ fn rust_files_are_tidy() {
 | 
			
		||||
fn check_licenses() {
 | 
			
		||||
    let expected = "
 | 
			
		||||
0BSD OR MIT OR Apache-2.0
 | 
			
		||||
Apache-2.0 WITH LLVM-exception OR Apache-2.0 OR MIT
 | 
			
		||||
Apache-2.0 OR BSL-1.0
 | 
			
		||||
Apache-2.0 OR MIT
 | 
			
		||||
Apache-2.0/MIT
 | 
			
		||||
Apache-2.0
 | 
			
		||||
BSD-2-Clause
 | 
			
		||||
BSD-3-Clause
 | 
			
		||||
CC0-1.0
 | 
			
		||||
@ -84,10 +82,7 @@ Zlib
 | 
			
		||||
        .collect::<Vec<_>>();
 | 
			
		||||
    licenses.sort();
 | 
			
		||||
    licenses.dedup();
 | 
			
		||||
    assert_eq!(
 | 
			
		||||
        licenses.iter().filter(|license| !expected.contains(license)).collect::<Vec<_>>(),
 | 
			
		||||
        Vec::<&&str>::new()
 | 
			
		||||
    );
 | 
			
		||||
    assert_eq!(licenses, expected);
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
fn check_todo(path: &Path, text: &str) {
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user