diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2014-10-06 16:33:44 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2014-10-09 09:44:51 -0700 |
| commit | edf88416426d82d0099fc888e443bf21feeb1f04 (patch) | |
| tree | d29a3013428dfe5654ef3c2276c85622044a6667 /src/libsyntax/parse/parser.rs | |
| parent | 8ccb61609238063b2f1b0cd038974426cdf81bc8 (diff) | |
| download | rust-edf88416426d82d0099fc888e443bf21feeb1f04.tar.gz rust-edf88416426d82d0099fc888e443bf21feeb1f04.zip | |
syntax: Convert statics to constants
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
| -rw-r--r-- | src/libsyntax/parse/parser.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs index e73ffd7e581..e7f40cf0722 100644 --- a/src/libsyntax/parse/parser.rs +++ b/src/libsyntax/parse/parser.rs @@ -91,10 +91,10 @@ use std::iter; bitflags! { flags Restrictions: u8 { - static UNRESTRICTED = 0b0000, - static RESTRICTION_STMT_EXPR = 0b0001, - static RESTRICTION_NO_BAR_OP = 0b0010, - static RESTRICTION_NO_STRUCT_LITERAL = 0b0100 + const UNRESTRICTED = 0b0000, + const RESTRICTION_STMT_EXPR = 0b0001, + const RESTRICTION_NO_BAR_OP = 0b0010, + const RESTRICTION_NO_STRUCT_LITERAL = 0b0100 } } |
