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
Showing
- substrate/frame/support/procedural/src/construct_runtime/expand/freeze_reason.rs 67 additions, 0 deletions.../procedural/src/construct_runtime/expand/freeze_reason.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/hold_reason.rs 67 additions, 0 deletions...rt/procedural/src/construct_runtime/expand/hold_reason.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/lock_id.rs 67 additions, 0 deletions...upport/procedural/src/construct_runtime/expand/lock_id.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/mod.rs 8 additions, 0 deletions...me/support/procedural/src/construct_runtime/expand/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/slash_reason.rs 67 additions, 0 deletions...t/procedural/src/construct_runtime/expand/slash_reason.rs
- substrate/frame/support/procedural/src/construct_runtime/mod.rs 12 additions, 0 deletions...ate/frame/support/procedural/src/construct_runtime/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/parse.rs 24 additions, 0 deletions...e/frame/support/procedural/src/construct_runtime/parse.rs
- substrate/frame/support/procedural/src/lib.rs 27 additions, 0 deletionssubstrate/frame/support/procedural/src/lib.rs
- substrate/frame/support/procedural/src/pallet/expand/tt_default_parts.rs 30 additions, 2 deletions.../support/procedural/src/pallet/expand/tt_default_parts.rs
- substrate/frame/support/procedural/src/pallet/mod.rs 1 addition, 1 deletionsubstrate/frame/support/procedural/src/pallet/mod.rs
- substrate/frame/support/procedural/src/pallet/parse/composite.rs 139 additions, 0 deletions...te/frame/support/procedural/src/pallet/parse/composite.rs
- substrate/frame/support/procedural/src/pallet/parse/event.rs 1 addition, 1 deletionsubstrate/frame/support/procedural/src/pallet/parse/event.rs
- substrate/frame/support/procedural/src/pallet/parse/mod.rs 36 additions, 0 deletionssubstrate/frame/support/procedural/src/pallet/parse/mod.rs
- substrate/frame/support/src/lib.rs 29 additions, 4 deletionssubstrate/frame/support/src/lib.rs
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_details_keyword.stderr 1 addition, 1 deletion...onstruct_runtime_ui/invalid_module_details_keyword.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_entry.stderr 1 addition, 1 deletion...st/tests/construct_runtime_ui/invalid_module_entry.stderr
- substrate/frame/support/test/tests/pallet.rs 26 additions, 0 deletionssubstrate/frame/support/test/tests/pallet.rs
- substrate/frame/support/test/tests/pallet_ui/composite_enum_unsupported_identifier.rs 13 additions, 0 deletions.../tests/pallet_ui/composite_enum_unsupported_identifier.rs
- substrate/frame/support/test/tests/pallet_ui/composite_enum_unsupported_identifier.stderr 5 additions, 0 deletions...ts/pallet_ui/composite_enum_unsupported_identifier.stderr
- substrate/frame/support/test/tests/pallet_ui/event_wrong_item.stderr 1 addition, 1 deletion...rame/support/test/tests/pallet_ui/event_wrong_item.stderr
Please register or sign in to comment