Skip to content

Commit

Permalink
Drop repr(u32) from SyntaxKind
Browse files Browse the repository at this point in the history
Nomicon says it disables some optimizations:
https://doc.rust-lang.org/beta/nomicon/other-reprs.html#repru-repri
  • Loading branch information
matklad committed Jan 28, 2018
1 parent bec9f09 commit 169d5d3
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/syntax_kinds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 169d5d3

Please sign in to comment.