mirror of
				https://github.com/rust-lang/rust-analyzer.git
				synced 2025-10-31 03:54:42 +00:00 
			
		
		
		
	internal: make::expr_if should return ast::IfExpr
				
					
				
			This commit is contained in:
		
							parent
							
								
									913d197a04
								
							
						
					
					
						commit
						c549be9ab6
					
				
					 7 changed files with 8 additions and 7 deletions
				
			
		|  | @ -607,7 +607,7 @@ pub fn expr_if( | |||
|     condition: ast::Expr, | ||||
|     then_branch: ast::BlockExpr, | ||||
|     else_branch: Option<ast::ElseBranch>, | ||||
| ) -> ast::Expr { | ||||
| ) -> ast::IfExpr { | ||||
|     let else_branch = match else_branch { | ||||
|         Some(ast::ElseBranch::Block(block)) => format!("else {block}"), | ||||
|         Some(ast::ElseBranch::IfExpr(if_expr)) => format!("else {if_expr}"), | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Giga Bowser
						Giga Bowser