mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-30 19:49:36 +00:00 
			
		
		
		
	internal: Do not render closure ids in hover messages
They are not useful
This commit is contained in:
		
							parent
							
								
									4284637e64
								
							
						
					
					
						commit
						721e43e9d3
					
				
					 3 changed files with 3 additions and 9 deletions
				
			
		|  | @ -890,12 +890,11 @@ fn closure_ty( | ||||||
|     } else { |     } else { | ||||||
|         String::new() |         String::new() | ||||||
|     }; |     }; | ||||||
|     let mut markup = format!("```rust\n{}", c.display_with_id(sema.db, edition)); |     let mut markup = format!("```rust\n{}\n```", c.display_with_impl(sema.db, edition)); | ||||||
| 
 | 
 | ||||||
|     if let Some(trait_) = c.fn_trait(sema.db).get_id(sema.db, original.krate(sema.db).into()) { |     if let Some(trait_) = c.fn_trait(sema.db).get_id(sema.db, original.krate(sema.db).into()) { | ||||||
|         push_new_def(hir::Trait::from(trait_).into()) |         push_new_def(hir::Trait::from(trait_).into()) | ||||||
|     } |     } | ||||||
|     format_to!(markup, "\n{}\n```", c.display_with_impl(sema.db, edition),); |  | ||||||
|     if let Some(layout) = |     if let Some(layout) = | ||||||
|         render_memory_layout(config.memory_layout, || original.layout(sema.db), |_| None, |_| None) |         render_memory_layout(config.memory_layout, || original.layout(sema.db), |_| None, |_| None) | ||||||
|     { |     { | ||||||
|  |  | ||||||
|  | @ -348,7 +348,6 @@ fn main() { | ||||||
|         expect Lukas Wirth
						Lukas Wirth