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`` |
||
|---|---|---|
| .. | ||
| query | ||
| select | ||
| specialize | ||
| auto_trait.rs | ||
| coherence.rs | ||
| const_evaluatable.rs | ||
| dyn_compatibility.rs | ||
| effects.rs | ||
| engine.rs | ||
| fulfill.rs | ||
| misc.rs | ||
| mod.rs | ||
| normalize.rs | ||
| outlives_bounds.rs | ||
| project.rs | ||
| structural_normalize.rs | ||
| util.rs | ||
| vtable.rs | ||
| wf.rs | ||