From 73fb7aaa9d8d975073772159bb7bd9ab17645840 Mon Sep 17 00:00:00 2001
From: pierwill <pierwill@users.noreply.github.com>
Date: Thu, 1 Apr 2021 15:48:50 -0500
Subject: [PATCH] libflux: Move derive helper attribute after derive macro

On current nightly, this fixes a warning:

    error: derive helper attribute is used before it is introduced

It goes on to say

    = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
    = note: for more information, see issue #79202 <https://github.com/rust-lang/rust/issues/79202>

This change gets ahead of the issue.
---
 libflux/core/src/ast/mod.rs         | 2 +-
 libflux/go/libflux/buildinfo.gen.go | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/libflux/core/src/ast/mod.rs b/libflux/core/src/ast/mod.rs
index 59eada7059..c51068f330 100644
--- a/libflux/core/src/ast/mod.rs
+++ b/libflux/core/src/ast/mod.rs
@@ -619,8 +619,8 @@ pub enum ParameterType {
     },
 }
 
-#[serde(tag = "type")]
 #[derive(Debug, PartialEq, Clone, Serialize, Deserialize)]
+#[serde(tag = "type")]
 pub struct TypeExpression {
     #[serde(skip_serializing_if = "BaseNode::is_empty")]
     #[serde(default)]
diff --git a/libflux/go/libflux/buildinfo.gen.go b/libflux/go/libflux/buildinfo.gen.go
index 314c8dee6f..de9d5fd471 100644
--- a/libflux/go/libflux/buildinfo.gen.go
+++ b/libflux/go/libflux/buildinfo.gen.go
@@ -22,7 +22,7 @@ var sourceHashes = map[string]string{
 	"libflux/core/src/ast/flatbuffers/mod.rs":                                       "17c4ce765674469578c5e6f30f18dcb10891b39752806b71e2b88ac00ffaaac0",
 	"libflux/core/src/ast/flatbuffers/monotype.rs":                                  "1ca54804a2b4ece03d5da4e61176d02c9d4c2e685ad9b0a45dad1201f3b7909d",
 	"libflux/core/src/ast/flatbuffers/tests.rs":                                     "46e9aa29e03cc8843617fe2b255766287b9b0e2c7714a26de027f52308d7f161",
-	"libflux/core/src/ast/mod.rs":                                                   "f6ac45b20b958a2b1fe351802147bf4e053bde49bcad0d210e4530357d026aa7",
+	"libflux/core/src/ast/mod.rs":                                                   "72c74ec1a4666d2f01ffa80bde2aa1898a8d2d18378cf816cd949dbda95c379e",
 	"libflux/core/src/ast/tests.rs":                                                 "ea3ef7682ebb7afc08dea0afe51af8cd4920aef60fecb826ec5405147cf153f2",
 	"libflux/core/src/ast/walk/mod.rs":                                              "38dad25272147d34f15983565a89e1a861c493d44111a5e96d0ffcfc7115a5bf",
 	"libflux/core/src/ast/walk/tests.rs":                                            "f7b2d7dd5643bb795a86c04b6979b136b0de46b52b213caff094aed6d204a05d",