#[serde(transparent)] for SyntaxContext

This commit is contained in:
강동윤 2019-11-28 20:04:50 +09:00
parent 4ab510827a
commit 55b473b744

View File

@ -23,6 +23,7 @@ use std::fmt;
/// A SyntaxContext represents a chain of macro expansions (represented by
/// marks).
#[derive(Clone, Copy, PartialEq, Eq, Default, PartialOrd, Ord, Hash, Serialize, Deserialize)]
#[serde(transparent)]
pub struct SyntaxContext(u32);
#[derive(Copy, Clone, Debug)]