parent
45678eba81
commit
a740dae815
@ -1,28 +0,0 @@
|
|||||||
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.63.crate) = ce804528bc33e783da9daf7a6d48efd8a5ae3f9ba08a1b3c16e6b6b4f8c6b979def354755bbd5161dadb9ab0f971c9398516f9d52bd86c432a86f30f53330639
|
SHA512 (cxxbridge-macro-1.0.64.crate) = 464a69ee89b4c4a664a396e441848edb3d2c14da4ec0aa80240c1d7303932c26af701d5795579ada5b032e9b6811cb9d304cd5a94bfba29b2ad9fb682fd4c67f
|
||||||
|
Loading…
Reference in new issue