Fix variants_from_header build

This commit is contained in:
David Tolnay 2022-01-18 17:21:08 -08:00
parent 34d4447d43
commit cf5bbe629e
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82

View File

@ -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 {