Matthias Krüger
8b49731211
Rollup merge of #115744 - fmease:fix-e0401, r=compiler-errors
...
Improve diagnostic for generic params from outer items (E0401)
Generalize the wording of E0401 to talk about *outer items* instead of *outer functions* since the current phrasing is outdated. The outer item can be a function, constant, trait, ADT or impl block (see the new UI test for the more exotic examples).
Further, don't suggest introducing generic parameters to constant items unless the feature `generic_const_items` is enabled.
Lastly, make E0401 translatable while we're at it.
Fixes #115720 .
2023-09-11 17:03:32 +02:00
..
2023-06-01 18:21:42 +00:00
2023-07-04 15:54:18 +02:00
2023-09-10 23:06:14 +02:00
2023-06-27 23:31:06 +00:00
2023-09-10 21:20:36 +00:00
2023-02-22 08:40:47 -07:00
2023-09-10 21:20:36 +00:00
2023-08-30 18:13:09 +02:00
2023-05-05 21:42:54 +01:00
2023-04-25 19:53:09 +00:00
2023-02-23 10:27:06 -07:00
2023-06-01 18:21:42 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-01 15:45:28 +00:00
2023-05-01 15:45:28 +00:00
2023-01-27 19:26:04 +01:00
2023-01-27 19:26:04 +01:00
2023-03-08 00:12:33 +00:00
2023-03-08 00:12:33 +00:00
2023-03-19 03:45:47 +00:00
2023-03-19 03:45:47 +00:00
2023-08-06 13:34:53 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-06-15 12:01:38 +02:00
2023-06-15 12:01:38 +02:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-07-10 20:09:26 +00:00
2023-02-09 10:26:49 +00:00
2023-02-09 10:26:49 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-01-18 04:07:39 +00:00
2023-02-16 15:14:45 +11:00
2023-05-05 21:42:54 +01:00
2023-06-06 09:37:30 +02:00
2023-06-06 09:37:30 +02:00
2023-06-06 09:37:30 +02:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-09-10 21:20:36 +00:00
2023-02-21 05:21:07 +00:00
2023-08-26 19:25:46 +00:00
2023-06-01 18:21:42 +00:00
2023-02-21 05:21:07 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-02-23 10:27:06 -07:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-06-01 18:21:42 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2023-01-19 15:39:05 +01:00
2023-06-11 16:12:59 +08:00
2023-06-19 20:00:41 +00:00
2023-08-08 14:48:17 +08:00
2023-08-08 14:48:17 +08:00
2023-02-17 09:32:39 +00:00
2023-04-28 11:56:02 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-06-01 18:21:42 +00:00
2023-08-06 21:25:49 +02:00
2023-05-04 11:22:40 +01:00
2023-05-04 11:22:40 +01:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2023-04-07 11:18:07 -07:00
2023-07-11 17:52:43 +08:00
2023-04-07 11:18:07 -07:00
2023-03-09 20:49:11 +00:00
2023-07-11 17:52:43 +08:00
2023-03-09 20:49:11 +00:00
2023-03-09 20:49:11 +00:00
2023-01-30 20:12:19 +00:00
2023-01-30 20:12:19 +00:00
2023-02-21 05:21:07 +00:00
2023-01-14 15:49:08 +00:00
2023-01-14 15:49:08 +00:00
2023-01-14 15:49:08 +00:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-05-05 21:42:54 +01:00
2023-02-10 14:44:54 +01:00
2023-02-13 18:41:18 +00:00