Matthias Krüger
985befe036
Rollup merge of #122160 - jieyouxu:eager-translate-help-use-latest-edition, r=cjgillot
...
Eagerly translate `HelpUseLatestEdition` in parser diagnostics
Fixes #122130 .
This makes me suspicious of these other two usage of `add_to_diagnostic()`. Would they *also* crash? I haven't attempted to construct test cases for them.
```
compiler/rustc_parse/src/parser/expr.rs
3453: errors::HelpUseLatestEdition::new().add_to_diagnostic(e);
compiler/rustc_hir_typeck/src/expr.rs
2603: HelpUseLatestEdition::new().add_to_diagnostic(&mut err);
```
This also seems like a footgun?
2024-03-09 16:21:16 +01:00
..
2024-03-06 22:02:46 +01:00
2024-03-08 08:19:17 +01:00
2024-03-05 12:38:03 -05:00
2024-03-08 13:22:26 +01:00
2024-03-07 18:32:47 +01:00
2024-03-08 08:19:17 +01:00
2024-03-06 14:19:01 +11:00
2024-03-08 13:22:26 +01:00
2024-03-08 13:22:26 +01:00
2024-03-08 20:41:29 +00:00
2024-03-08 08:19:17 +01:00
2024-03-08 21:02:04 +01:00
2024-03-08 21:02:01 +01:00
2024-03-08 21:02:00 +01:00
2024-03-04 22:16:30 +01:00
2024-03-08 13:22:25 +01:00
2024-03-08 19:08:13 +00:00
2024-03-05 12:14:49 +11:00
2024-03-06 22:02:46 +01:00
2024-03-06 22:02:46 +01:00
2024-03-08 08:19:17 +01:00
2024-03-05 12:14:49 +11:00
2024-03-08 08:19:20 +01:00
2024-03-08 21:02:03 +01:00
2024-03-08 17:31:00 +00:00
2024-03-05 08:11:45 +11:00
2024-03-06 16:54:42 +01:00
2024-03-08 13:22:26 +01:00
2024-03-07 18:32:47 +01:00
2024-03-09 16:21:15 +01:00
2024-03-09 01:13:42 +01:00
2024-03-08 08:19:20 +01:00
2024-03-03 12:33:26 +01:00
2024-03-05 13:28:15 -05:00
2024-03-09 01:18:13 +00:00
2024-03-09 01:18:13 +00:00
2024-03-08 08:19:17 +01:00
2024-03-08 08:19:17 +01:00
2024-03-08 09:34:05 +00:00
2024-03-08 08:19:17 +01:00
2024-03-04 15:39:59 +00:00
2024-03-09 16:21:16 +01:00
2024-03-08 08:19:17 +01:00
2024-03-09 01:14:22 +01:00
2024-03-05 13:30:46 -05:00
2024-03-04 20:43:58 +01:00
2024-03-02 19:51:56 +01:00
2024-03-08 08:19:17 +01:00
2024-03-06 22:02:47 +01:00
2024-03-08 08:19:17 +01:00
2024-03-09 08:47:57 +00:00
2024-03-02 20:13:24 +01:00
2024-03-08 21:02:01 +01:00
2024-03-09 12:02:25 +00:00
2024-03-07 06:27:09 +00:00
2024-03-05 13:28:15 -05:00
2024-03-08 02:10:11 +00:00
2024-03-05 13:28:15 -05:00
2024-03-01 11:16:35 -08:00