Matthias Krüger
36c2b011cb
Rollup merge of #139858 - oli-obk:new-const-traits-syntax, r=fee1-dead
...
New const traits syntax
This PR only affects the AST and doesn't actually change anything semantically.
All occurrences of `~const` outside of libcore have been replaced by `[const]`. Within libcore we have to wait for rustfmt to be bumped in the bootstrap compiler. This will happen "automatically" (when rustfmt is run) during the bootstrap bump, as rustfmt converts `~const` into `[const]`. After this we can remove the `~const` support from the parser
Caveat discovered during impl: there is no legacy bare trait object recovery for `[const] Trait` as that snippet in type position goes down the slice /array parsing code and will error
r? ``@fee1-dead``
cc ``@nikomatsakis`` ``@traviscross`` ``@compiler-errors``
2025-06-27 22:13:00 +02:00
..
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-08 23:06:31 +03:00
2025-06-20 23:25:55 -04:00
2025-06-24 04:37:36 -04:00
2025-06-11 17:11:58 +02:00
2025-04-08 23:06:31 +03:00
2025-06-20 15:30:09 -05:00
2025-04-08 23:06:31 +03:00
2025-06-13 18:13:34 +02:00
2025-06-13 18:13:34 +02:00
2025-06-13 18:13:34 +02:00
2025-06-22 14:51:58 +02:00
2025-06-22 14:51:58 +02:00
2025-06-11 17:11:58 +02:00
2025-06-11 17:11:58 +02:00
2025-03-01 22:02:46 +08:00
2025-03-01 22:02:46 +08:00
2025-06-03 13:28:38 +02:00
2025-06-26 13:46:45 +00:00
2025-06-26 13:46:45 +00:00
2025-04-18 15:57:29 +02:00
2025-03-07 17:55:08 +00:00
2025-04-17 19:45:28 +08:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-03-20 16:01:13 +00:00
2025-03-20 16:02:24 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-18 15:57:29 +02:00
2025-05-07 22:56:14 +08:00
2025-05-07 22:56:14 +08:00
2025-04-30 10:44:24 +03:00
2025-04-30 10:44:24 +03:00
2025-06-16 23:07:11 +08:00
2025-06-16 23:07:11 +08:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-02-25 16:56:04 +00:00
2025-04-22 00:53:12 +05:00
2025-04-22 00:53:12 +05:00
2025-04-22 00:53:12 +05:00
2025-04-22 00:53:12 +05:00
2025-04-22 00:53:12 +05:00
2025-04-02 06:20:35 +11:00
2025-04-03 21:41:58 +00:00
2025-06-03 11:45:58 +02:00
2025-04-02 06:20:35 +11:00
2025-04-02 06:20:35 +11:00
2025-04-08 23:06:31 +03:00
2025-05-03 22:49:23 +03:00
2025-05-03 22:49:23 +03:00
2025-04-03 21:41:58 +00:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-09 15:01:14 +10:00
2025-04-09 15:01:14 +10:00
2025-04-09 15:01:14 +10:00
2025-04-09 15:01:14 +10:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 11:08:55 +03:00
2025-04-08 23:06:31 +03:00
2025-04-08 23:06:31 +03:00
2025-04-08 23:06:31 +03:00
2025-04-10 23:48:57 +03:00
2025-04-10 23:48:57 +03:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-03 21:41:58 +00:00
2025-04-10 09:56:37 +02:00
2025-04-16 22:44:02 +03:00
2025-05-16 12:40:04 +02:00
2025-05-16 12:40:04 +02:00
2025-05-16 12:40:04 +02:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2025-04-30 10:44:24 +03:00
2025-04-30 10:44:24 +03:00
2025-03-21 22:55:00 -06:00
2025-04-25 17:02:59 +05:00
2025-04-25 17:02:59 +05:00
2025-04-25 17:02:59 +05:00
2025-05-09 15:31:27 +00:00
2025-06-03 11:45:58 +02:00
2025-06-03 11:45:58 +02:00
2025-04-08 23:06:31 +03:00
2025-04-03 21:41:58 +00:00
2025-04-18 15:57:29 +02:00
2025-04-18 15:57:29 +02:00
2025-04-03 21:41:58 +00:00
2025-03-25 15:16:16 +01:00
2025-03-25 15:16:16 +01:00
2025-05-14 13:32:59 +01:00
2025-05-14 13:32:59 +01:00
2025-06-03 13:28:38 +02:00
2025-04-03 21:41:58 +00:00
2025-04-15 10:08:49 +02:00
2025-04-15 10:08:49 +02:00
2025-06-26 13:46:45 +00:00
2025-06-26 13:46:45 +00:00
2025-04-15 10:08:36 +02:00
2025-04-15 10:08:49 +02:00
2025-04-15 10:08:36 +02:00
2025-04-15 10:08:49 +02:00
2025-04-15 10:08:49 +02:00
2025-04-24 02:57:10 +02:00
2025-03-25 15:15:21 +01:00
2025-03-25 15:15:21 +01:00
2025-03-29 13:30:20 +03:00
2025-03-29 13:30:20 +03:00
2025-03-25 17:33:09 +03:00
2025-05-27 15:57:41 +00:00
2025-05-27 15:57:41 +00:00
2025-03-29 13:30:20 +03:00
2025-04-13 21:48:53 +03:00
2025-04-03 11:08:55 +03:00
2025-04-13 21:48:53 +03:00
2025-04-03 11:08:55 +03:00
2025-04-03 21:41:58 +00:00