mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-11-04 05:35:55 +00:00 
			
		
		
		
	Merge pull request #19492 from ChayimFriedman2/experiment
Avoid relying on `block_def_map()` needlessly
This commit is contained in:
		
						commit
						cdcadb4265
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -552,7 +552,7 @@ impl ChalkContext<'_> {
 | 
			
		|||
 | 
			
		||||
        let block_impls = iter::successors(self.block, |&block_id| {
 | 
			
		||||
            cov_mark::hit!(block_local_impls);
 | 
			
		||||
            self.db.block_def_map(block_id).parent().and_then(|module| module.containing_block())
 | 
			
		||||
            block_id.loc(self.db).module.containing_block()
 | 
			
		||||
        })
 | 
			
		||||
        .inspect(|&block_id| {
 | 
			
		||||
            // make sure we don't search the same block twice
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue