| commit | 58eee39e609b72a1c0461e37fab85da6b942c3ab | [log] [tgz] |
|---|---|---|
| author | David Tolnay <dtolnay@gmail.com> | Fri Nov 20 20:37:58 2020 -0800 |
| committer | David Tolnay <dtolnay@gmail.com> | Fri Nov 20 20:37:58 2020 -0800 |
| tree | d8c4aedeea80b181bc10e23a07e9ccef106541cc | |
| parent | a8abe460dc6c13b7cfc8d0dafedaee57af43d19c [diff] [blame] |
Allow enum with undeclared variants as long as it has explicit repr
diff --git a/syntax/mod.rs b/syntax/mod.rs index 2a3790c..475cec1 100644 --- a/syntax/mod.rs +++ b/syntax/mod.rs
@@ -91,6 +91,7 @@ pub variants: Vec<Variant>, pub repr: Atom, pub repr_type: Type, + pub explicit_repr: bool, } pub struct ExternFn {