rust/compiler
Esteban Küber ac56a2b564 Suggest boxing if then expr if that solves divergent arms
When encountering

```rust
let _ = if true {
    Struct
} else {
    foo() // -> Box<dyn Trait>
};
```

if `Struct` implements `Trait`, suggest boxing the then arm tail expression.

Part of #102629.
2024-01-22 20:53:41 +00:00
..
2024-01-16 21:15:31 +01:00
2024-01-17 03:14:16 +01:00
2024-01-17 03:14:16 +01:00
2024-01-17 03:14:16 +01:00