syntax: Convert statics to constants

This commit is contained in:
Alex Crichton 2014-10-06 16:33:44 -07:00
parent 8ccb616092
commit edf8841642
6 changed files with 23 additions and 23 deletions

View file

@ -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
}
}