]> git.lizzy.rs Git - rust.git/commit
syntax: Enable parsing of `const` globals
authorAlex Crichton <alex@alexcrichton.com>
Thu, 2 Oct 2014 22:06:08 +0000 (15:06 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Fri, 3 Oct 2014 02:37:06 +0000 (19:37 -0700)
commit7e22af3582aa4a8dcb5b2ac00c7914ef78d2486e
tree2a493a659d2e79f28eae608e33598859b2df7173
parentb2d4eb186e99b66051be9089f836c66a558dd995
syntax: Enable parsing of `const` globals

This rewrites them to the current `ItemStatic` production of the compiler, but I
want to get this into a snapshot. It will be illegal to use a `static` in a
pattern of a `match` statement, so all those current uses will need to be
rewritten to `const` once it's implemented. This requires that the stage0
snapshot is able to parse `const`.

cc #17718
src/libsyntax/parse/parser.rs
src/test/compile-fail/issue-17718-const-mut.rs [new file with mode: 0644]
src/test/run-pass/issue-17718-parse-const.rs [new file with mode: 0644]