mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-04 13:38:31 +00:00 
			
		
		
		
	Split assoc items out of trait_data/impl_data queries
				
					
				
			This commit is contained in:
		
							parent
							
								
									185f9deb45
								
							
						
					
					
						commit
						12f54eec27
					
				
					 34 changed files with 446 additions and 397 deletions
				
			
		| 
						 | 
				
			
			@ -226,7 +226,7 @@ pub(super) fn associated_type_by_name_including_super_traits(
 | 
			
		|||
    name: &Name,
 | 
			
		||||
) -> Option<(TraitRef, TypeAliasId)> {
 | 
			
		||||
    all_super_trait_refs(db, trait_ref, |t| {
 | 
			
		||||
        let assoc_type = db.trait_data(t.hir_trait_id()).associated_type_by_name(name)?;
 | 
			
		||||
        let assoc_type = db.trait_items(t.hir_trait_id()).associated_type_by_name(name)?;
 | 
			
		||||
        Some((t, assoc_type))
 | 
			
		||||
    })
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue