Files
rust/tests/ui/consts
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
..
2024-09-15 10:20:47 +02:00
2024-01-13 12:46:58 -05:00
2024-09-15 09:51:32 +02:00
2024-08-18 19:46:53 +02:00
2024-02-07 10:42:01 +08:00
2024-11-22 02:32:26 +00:00
2025-02-27 20:02:25 +00:00
2024-11-22 02:32:26 +00:00
2024-11-22 02:32:26 +00:00
2024-11-22 02:32:26 +00:00
2023-11-12 04:33:19 +00:00
2024-02-25 12:03:48 +01:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2024-04-21 15:43:43 -03:00
2023-04-16 11:38:52 +00:00
2023-07-27 15:51:02 +00:00
2023-07-27 15:51:02 +00:00
2025-06-23 08:45:26 +00:00
2024-12-25 10:36:32 +01:00
2024-04-24 13:12:33 +01:00
2023-10-08 10:06:17 +00:00
2024-10-07 16:29:52 +00:00
2024-09-15 09:51:32 +02:00
2025-02-23 23:11:00 +07:00
2025-06-13 09:20:48 +02:00
2025-06-13 09:20:48 +02:00
2024-11-16 22:50:22 +01:00
2025-01-06 17:54:59 +01:00
2025-01-06 17:54:59 +01:00
2024-09-14 18:07:06 +02:00