From: Christopher Durham Date: Sun, 28 Jan 2018 09:31:18 +0000 (-0500) Subject: Update gen.rs X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=14c0ee90cae44b7b0d807723768dc6bd73c64ba3;p=rust.git Update gen.rs --- diff --git a/src/bin/gen.rs b/src/bin/gen.rs index 89609bd77e6..e32f5044eaf 100644 --- a/src/bin/gen.rs +++ b/src/bin/gen.rs @@ -45,7 +45,6 @@ fn to_syntax_kinds(&self) -> String { // enum SyntaxKind acc.push_str("/// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`.\n"); acc.push_str("#[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)]\n"); - acc.push_str("#[repr(u32)]\n"); acc.push_str("pub enum SyntaxKind {\n"); for kind in syntax_kinds.iter() { write!(acc, " {},\n", scream(kind)).unwrap();