mirror of
https://github.com/topjohnwu/cxx.git
synced 2024-11-27 22:00:33 +00:00
Fix variants_from_header build
This commit is contained in:
parent
34d4447d43
commit
cf5bbe629e
@ -1,5 +1,6 @@
|
||||
use crate::clang::{Clang, Node};
|
||||
use crate::syntax::attrs::OtherAttrs;
|
||||
use crate::syntax::cfg::CfgExpr;
|
||||
use crate::syntax::namespace::Namespace;
|
||||
use crate::syntax::report::Errors;
|
||||
use crate::syntax::{Api, Discriminant, Doc, Enum, EnumRepr, ForeignName, Pair, Variant};
|
||||
@ -207,6 +208,7 @@ fn traverse<'a>(
|
||||
}
|
||||
};
|
||||
enm.variants.push(Variant {
|
||||
cfg: CfgExpr::Unconditional,
|
||||
doc: Doc::new(),
|
||||
attrs: OtherAttrs::none(),
|
||||
name: Pair {
|
||||
|
Loading…
Reference in New Issue
Block a user