mirror of
				https://github.com/rust-lang/rust.git
				synced 2025-11-04 06:56:14 +00:00 
			
		
		
		
	This change uses the same "exact" paths as trait implementors and type alias inlining to track items with multiple reachable paths. This way, if you search for `vec`, you get only the `std` exports of it, and not the one from `alloc`. It still includes all the items in the search index so that you can search for them by all available paths. For example, try `core::option` and `std::option`, and notice that the results page doesn't show duplicates, but still shows all the items in their respective crates.
		
			
				
	
	
		
			12 lines
		
	
	
		
			259 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
			
		
		
	
	
			12 lines
		
	
	
		
			259 B
		
	
	
	
		
			JavaScript
		
	
	
	
	
	
// exact-check
 | 
						|
 | 
						|
const EXPECTED = [
 | 
						|
    {
 | 
						|
        'query': 'vec',
 | 
						|
        'others': [
 | 
						|
            { 'path': 'foo', 'name': 'vec', 'exactPath': 'macro_in_module' },
 | 
						|
            { 'path': 'foo', 'name': 'myspecialvec', 'exactPath': 'foo' },
 | 
						|
        ],
 | 
						|
    },
 | 
						|
];
 |