Allow usage of path in construct_runtime! (#8801)
* Allow usage of path in construct_runtime! * Fix whitespace * Fix whitespace * Make expand_runtime_metadata accept slice instead of Iterator * Include Call and Event in construct_runtime for testing * Migrate impl_outer_event to proc macro * Fix integrity_test_works * Update UI test expectations * Factor in module path while generating enum variant or fn names * Use ParseStream::lookahead for more helpful error messages * Remove generating outer_event_metadata * Ensure pallets with different paths but same last path segment can coexist * Remove unnecessary generated function * Migrate decl_outer_config to proc macro * Add default_filter test for expand_outer_origin * Allow crate, self and super keywords to appear in pallet path * Add UI test for specifying empty pallet paths in construct_runtime
Showing
- substrate/frame/support/procedural/src/construct_runtime/expand/config.rs 123 additions, 0 deletions...support/procedural/src/construct_runtime/expand/config.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/event.rs 146 additions, 0 deletions.../support/procedural/src/construct_runtime/expand/event.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/metadata.rs 190 additions, 0 deletions...pport/procedural/src/construct_runtime/expand/metadata.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/mod.rs 26 additions, 0 deletions...me/support/procedural/src/construct_runtime/expand/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/expand/origin.rs 341 additions, 0 deletions...support/procedural/src/construct_runtime/expand/origin.rs
- substrate/frame/support/procedural/src/construct_runtime/mod.rs 10 additions, 183 deletions...ate/frame/support/procedural/src/construct_runtime/mod.rs
- substrate/frame/support/procedural/src/construct_runtime/parse.rs 85 additions, 16 deletions...e/frame/support/procedural/src/construct_runtime/parse.rs
- substrate/frame/support/test/tests/construct_runtime.rs 239 additions, 1 deletionsubstrate/frame/support/test/tests/construct_runtime.rs
- substrate/frame/support/test/tests/construct_runtime_ui/empty_pallet_path.rs 13 additions, 0 deletions...port/test/tests/construct_runtime_ui/empty_pallet_path.rs
- substrate/frame/support/test/tests/construct_runtime_ui/empty_pallet_path.stderr 5 additions, 0 deletions.../test/tests/construct_runtime_ui/empty_pallet_path.stderr
- substrate/frame/support/test/tests/construct_runtime_ui/invalid_module_details.stderr 1 addition, 1 deletion.../tests/construct_runtime_ui/invalid_module_details.stderr
Please register or sign in to comment