parent
a5572bee06
commit
214d88894e
@ -0,0 +1,28 @@
|
|||||||
|
From cf5bbe629ee54649e5ccb195bfd10e3c3b03ae53 Mon Sep 17 00:00:00 2001
|
||||||
|
From: David Tolnay <dtolnay@gmail.com>
|
||||||
|
Date: Tue, 18 Jan 2022 17:21:08 -0800
|
||||||
|
Subject: [PATCH] Fix variants_from_header build
|
||||||
|
|
||||||
|
---
|
||||||
|
macro/src/load.rs | 2 ++
|
||||||
|
1 file changed, 2 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/macro/src/load.rs b/macro/src/load.rs
|
||||||
|
index d769ebf6..baf88413 100644
|
||||||
|
--- a/macro/src/load.rs
|
||||||
|
+++ b/macro/src/load.rs
|
||||||
|
@@ -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 {
|
@ -1 +1 @@
|
|||||||
SHA512 (cxxbridge-macro-1.0.62.crate) = 14f4f68f1d8cd1e0a708ca2387244d18c59021bf011812825dc96eea5df5b297cca91f9497c1a2afd4815a9367e8302941eb5c70507a9cfc60405760f7ddaf56
|
SHA512 (cxxbridge-macro-1.0.63.crate) = ce804528bc33e783da9daf7a6d48efd8a5ae3f9ba08a1b3c16e6b6b4f8c6b979def354755bbd5161dadb9ab0f971c9398516f9d52bd86c432a86f30f53330639
|
||||||
|
Loading…
Reference in new issue