Jonathan Brouwer
a108d58ff7
Rollup merge of #160906 - lsunsi:push-ysqvmnlvvzwr, r=davidtwco
...
Suggest usize instead of placeholder type for array length constants
Fixes rust-lang/rust#159487
This PR makes the type suggestion for a anonymous constant used as an array length or repeat expression less generic: usize instead of placeholder type.
I divided the work in several commits so I could track my own progress and test my understanding. I could squash them all into one if needed.
Some ideas were pulled from rust-lang/rust#160155 , which is why the PR might look similar. That said I only used it as reference when I got stuck, because I was prioritizing my own learning instead of just quickly pushing the changes (hence, many commits).
2026-09-04 22:29:06 +02:00
..
2026-03-21 20:10:07 +00:00
2026-07-31 22:44:48 +03:00
2026-05-27 16:09:22 +02:00
2026-01-02 22:32:52 +00:00
2026-07-24 01:59:27 -04:00
2026-07-27 07:52:45 +00:00
2026-03-29 21:16:08 +01:00
2026-07-21 15:50:58 +00:00
2026-09-04 22:29:06 +02:00
2026-09-02 11:21:12 +02:00
2026-07-13 10:54:53 +02:00
2026-07-01 18:33:39 +01:00
2025-12-10 23:41:19 +00:00
2025-12-10 23:41:19 +00:00
2025-12-10 23:41:19 +00:00
2025-12-10 23:41:19 +00:00
2026-07-13 10:54:53 +02:00
2026-04-18 13:03:47 +08:00
2026-04-18 13:03:47 +08:00
2026-05-03 10:59:52 +02:00
2026-07-26 18:18:15 +10:00
2026-01-26 04:09:28 +05:30
2026-07-03 15:45:29 +08:00
2026-07-03 15:45:29 +08:00
2026-06-28 16:10:41 +02:00
2026-09-02 11:21:12 +02:00
2026-09-02 11:21:12 +02:00
2026-08-06 07:22:43 +05:30
2026-05-11 16:58:25 +08:00
2026-05-11 16:58:25 +08:00
2026-07-13 10:54:53 +02:00
2026-05-16 20:23:53 -04:00
2026-05-16 20:23:53 -04:00
2026-07-29 18:23:20 +00:00
2026-07-29 18:23:20 +00:00
2025-12-10 23:41:19 +00:00
2026-06-02 23:00:47 +08:00
2026-06-02 23:00:47 +08:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-06-17 17:42:48 +02:00
2026-06-17 17:42:48 +02:00
2026-02-12 18:49:58 +08:00
2026-03-21 20:10:07 +00:00
2026-03-21 20:10:07 +00:00
2026-03-21 20:10:07 +00:00
2026-03-21 20:10:07 +00:00
2026-08-06 07:22:43 +05:30
2026-08-24 19:04:00 +02:00
2026-08-24 19:04:00 +02:00
2026-07-21 16:11:09 +00:00
2026-05-17 23:54:13 +02:00
2026-05-17 23:54:13 +02:00
2026-05-09 01:27:23 +09:00
2026-05-09 01:27:23 +09:00
2026-02-12 15:12:29 +08:00
2026-07-21 15:50:58 +00:00
2026-06-09 18:03:46 -04:00
2026-06-09 18:03:46 -04:00
2026-03-28 16:18:11 +09:00
2026-08-13 14:12:34 +02:00
2026-06-25 16:35:47 -04:00
2026-06-25 16:35:47 -04:00
2026-06-25 16:35:47 -04:00
2026-07-21 16:11:09 +00:00
2026-06-07 19:00:21 +02:00
2026-06-07 19:00:21 +02:00
2026-06-07 19:00:21 +02:00
2026-06-07 19:00:21 +02:00
2026-05-31 04:04:30 +05:30
2026-06-02 23:00:47 +08:00
2026-06-02 23:00:47 +08:00
2026-07-13 10:54:53 +02:00
2026-05-16 20:23:53 -04:00
2026-05-16 20:23:53 -04:00
2026-08-06 07:22:43 +05:30
2026-08-06 07:22:43 +05:30
2026-08-12 21:11:19 +07:00
2026-08-12 21:11:19 +07:00
2026-08-12 21:11:19 +07:00
2026-02-24 00:04:45 -05:00
2026-06-17 17:42:48 +02:00
2026-02-22 20:20:33 +01:00
2026-07-21 15:50:58 +00:00
2026-08-10 10:05:45 +02:00
2026-08-10 10:05:45 +02:00
2025-12-10 23:41:19 +00:00
2026-08-13 14:12:34 +02:00
2026-04-22 12:27:03 +02:00
2026-04-22 12:27:03 +02:00
2026-04-22 12:27:03 +02:00
2026-02-12 15:30:41 +08:00
2026-02-12 15:30:41 +08:00
2026-07-13 10:54:53 +02:00
2026-04-20 22:21:51 +08:00
2026-01-15 19:32:39 +00:00
2026-01-15 19:32:39 +00:00
2026-01-15 19:32:39 +00:00
2025-12-23 21:13:24 +09:00
2025-12-23 21:13:24 +09:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-02-17 16:51:44 +00:00
2026-07-15 23:25:52 +05:30
2026-08-25 08:03:22 +00:00
2026-08-25 08:03:22 +00:00
2026-07-21 01:03:16 +03:00
2026-07-21 01:03:16 +03:00
2026-07-09 23:34:43 +02:00
2026-07-13 10:54:53 +02:00
2026-03-14 20:13:43 +00:00
2026-03-14 20:13:43 +00:00
2026-07-09 23:34:43 +02:00
2026-07-21 15:50:58 +00:00
2026-04-26 21:41:46 +10:00
2026-04-26 21:41:46 +10:00
2026-03-06 17:44:18 +01:00
2026-08-12 21:11:19 +07:00
2026-07-13 10:54:53 +02:00
2026-07-13 10:54:53 +02:00
2026-07-13 10:54:53 +02:00
2026-04-23 22:28:00 +02:00
2026-04-23 22:28:00 +02:00
2026-01-26 04:09:28 +05:30
2026-01-26 04:09:28 +05:30
2026-02-16 12:24:15 +00:00
2025-12-22 13:55:49 +00:00
2026-07-19 10:43:39 +08:00
2026-07-19 10:43:39 +08:00
2026-07-19 10:57:26 +08:00
2026-07-19 10:57:26 +08:00
2026-08-09 19:58:38 +00:00
2026-07-13 10:54:53 +02:00
2026-04-01 17:01:59 +02:00
2026-08-23 07:07:46 +05:30
2026-08-23 07:07:46 +05:30
2025-12-10 23:41:19 +00:00
2025-12-23 21:13:24 +09:00
2025-12-23 21:13:24 +09:00
2026-03-26 11:42:38 +08:00
2026-03-26 11:42:38 +08:00
2026-03-26 11:42:38 +08:00
2026-07-21 01:03:16 +03:00
2026-07-21 01:03:16 +03:00
2026-07-22 11:42:09 +02:00
2026-07-22 11:42:09 +02:00
2026-07-30 10:28:14 +08:00
2026-07-30 10:28:14 +08:00
2026-04-10 21:45:26 +08:00
2026-04-10 21:45:26 +08:00