mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 12:04:43 +00:00 
			
		
		
		
	fix SCIP panicking due to salsa not attaching
This commit is contained in:
		
							parent
							
								
									905641f352
								
							
						
					
					
						commit
						01b2eff275
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		|  | @ -278,7 +278,7 @@ impl StaticIndex<'_> { | ||||||
|         for token in tokens { |         for token in tokens { | ||||||
|             let range = token.text_range(); |             let range = token.text_range(); | ||||||
|             let node = token.parent().unwrap(); |             let node = token.parent().unwrap(); | ||||||
|             match get_definitions(&sema, token.clone()) { |             match salsa::attach(self.db, || get_definitions(&sema, token.clone())) { | ||||||
|                 Some(it) => { |                 Some(it) => { | ||||||
|                     for i in it { |                     for i in it { | ||||||
|                         add_token(i, range, &node); |                         add_token(i, range, &node); | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 itsjunetime
						itsjunetime