Implement #[pallet::composite_enum] (#13722)

* Implement #[pallet::hold_reason]

* Appease clippy

* cargo fmt

* Update test expectations

* Update test expectations

* Support composite_enum attribute instead

* Update test expectations

* Change hold_reason to composite_enum

* Add UI test for unsupported identifier when using composite_enum

* Fix comment

* Add documentation for pallet::composable_enum

* More docs

* cargo fmt
This commit is contained in:
Keith Yeung authored and GitHub committed 2023-04-04 12:28:46 +00:00
1 parent c268f3d3c8
commit 1a55f961c6
26 files changed
+682 -11

No files matched your search

@@ -28,7 +28,7 @@
mod expand;
mod parse;
pub use parse::Def;
pub use parse::{composite::keyword::CompositeKeyword, Def};
use syn::spanned::Spanned;
mod keyword {