From 169d5d371a17f3d6f9f9c31f35b62e629b04e78c Mon Sep 17 00:00:00 2001 From: Aleksey Kladov Date: Sun, 28 Jan 2018 12:24:03 +0300 Subject: [PATCH] Drop `repr(u32)` from SyntaxKind Nomicon says it disables some optimizations: https://doc.rust-lang.org/beta/nomicon/other-reprs.html#repru-repri --- src/syntax_kinds.rs | 1 - 1 file changed, 1 deletion(-) diff --git a/src/syntax_kinds.rs b/src/syntax_kinds.rs index cc9e74f8e8..23a0881b70 100644 --- a/src/syntax_kinds.rs +++ b/src/syntax_kinds.rs @@ -5,7 +5,6 @@ use tree::SyntaxInfo; /// The kind of syntax node, e.g. `IDENT`, `USE_KW`, or `STRUCT_DEF`. #[derive(Clone, Copy, PartialEq, Eq, PartialOrd, Ord, Hash)] -#[repr(u32)] pub enum SyntaxKind { USE_KW, FN_KW,