rust/compiler/rustc_infer/src
León Orell Valerian Liehr 80f2b91b20
Rollup merge of #120929 - long-long-float:wrap-dyn-in-suggestion, r=fmease
Wrap dyn type with parentheses in suggestion

Close #120223

Fix wrong suggestion that is grammatically incorrect.
Specifically, I added parentheses to dyn types that need lifetime bound.

```
help: consider adding an explicit lifetime bound
  |
4 |     executor: impl FnOnce(T) -> (dyn Future<Output = ()>) + 'static,
  |                                 +                       +++++++++++
```
2024-04-23 17:25:14 +02:00
..
errors Use fn ptr signature instead of {closure@..} in infer error 2024-04-10 00:41:27 +00:00
infer Rollup merge of #120929 - long-long-float:wrap-dyn-in-suggestion, r=fmease 2024-04-23 17:25:14 +02:00
traits include ParamEnv in projection cache key 2024-04-20 16:42:18 +02:00
lib.rs Simplify static_assert_sizes. 2024-04-18 15:36:25 +10:00