construct_runtime: Fix generation of types behind features (#12229)
* construct_runtime: Fix generation of types behind features With the recent addition of supporting features in `construct_runtime!` there was a bug overseen. The `AllPalletsWithSystem` etc type declarations would be declared twice when a certain was enabled. The problem was that in the macro we didn't feature gate the types that should be declared when there is no feature enabled. This pull request now takes care of feature gating this type behind `all(#( not(feature) ))`. So, these types will only be enabled if no of the configured features is enabled. * Fix tests * FMT
Showing
- substrate/frame/support/procedural/src/construct_runtime/mod.rs 67 additions, 71 deletions...ate/frame/support/procedural/src/construct_runtime/mod.rs
- substrate/frame/support/test/Cargo.toml 4 additions, 3 deletionssubstrate/frame/support/test/Cargo.toml
- substrate/frame/support/test/tests/pallet.rs 61 additions, 17 deletionssubstrate/frame/support/test/tests/pallet.rs
- substrate/scripts/ci/gitlab/pipeline/test.yml 1 addition, 1 deletionsubstrate/scripts/ci/gitlab/pipeline/test.yml
Please register or sign in to comment