mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 03:54:42 +00:00 
			
		
		
		
	Correctly set the span of the proc_macro crate's Group delimiters
Previously only the open delimiter's span was set, and this caused... weird problems.
This commit is contained in:
		
							parent
							
								
									96a253112c
								
							
						
					
					
						commit
						bf8d03c1b5
					
				
					 4 changed files with 15 additions and 5 deletions
				
			
		|  | @ -238,7 +238,8 @@ impl server::TokenStream for TokenIdServer { | |||
|         &mut self, | ||||
|         stream: Self::TokenStream, | ||||
|     ) -> Vec<bridge::TokenTree<Self::TokenStream, Self::Span, Self::Symbol>> { | ||||
|         stream.into_bridge() | ||||
|         // Can't join with `TokenId`.
 | ||||
|         stream.into_bridge(&mut |first, _second| first) | ||||
|     } | ||||
| } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Chayim Refael Friedman
						Chayim Refael Friedman