mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-10-31 13:04:42 +00:00 
			
		
		
		
	 5451fe7d7c
			
		
	
	
		5451fe7d7c
		
	
	
	
	
		
			
			This tweak to the function signature search engine makes things so that, if a type is repeated in the search query, it'll only match if the function actually includes it that many times.
		
			
				
	
	
		
			21 lines
		
	
	
		
			378 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			378 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
| // exact-check
 | |
| 
 | |
| const QUERY = [
 | |
|     'P',
 | |
|     'P, P',
 | |
| ];
 | |
| 
 | |
| const EXPECTED = [
 | |
|     {
 | |
|         'in_args': [
 | |
|             { 'path': 'search_bag_semantics', 'name': 'alacazam' },
 | |
|             { 'path': 'search_bag_semantics', 'name': 'abracadabra' },
 | |
|         ],
 | |
|     },
 | |
|     {
 | |
|         'others': [
 | |
|             { 'path': 'search_bag_semantics', 'name': 'abracadabra' },
 | |
|         ],
 | |
|     },
 | |
| ];
 |