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-02-23 22:24:00 +05:30
2024-06-24 11:08:41 +02:00
2024-11-03 18:59:31 +00:00
2025-01-18 20:29:55 +01:00
2025-01-18 20:29:55 +01:00
2024-09-23 09:21:39 -07:00
2025-01-18 20:29:55 +01:00
2025-01-18 20:29:55 +01:00
2025-01-18 20:29:55 +01:00
2024-08-05 11:04:51 +02:00
2025-01-18 20:29:55 +01:00
2024-09-23 09:21:39 -07:00