difftreelog
fix common construct_runtime
in: master
1 file changed
runtime/common/construct_runtime/util.rsdiffbeforeafterboth24 {24 {25 $(25 $(26 $(#[runtimes($($pallet_runtimes:ident),+ $(,)?)])?26 $(#[runtimes($($pallet_runtimes:ident),+ $(,)?)])?27 $pallet_name:ident: $pallet_mod:ident::{$($pallet_parts:ty),*} = $index:literal27 $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal28 ),*28 ),*29 $(,)?29 $(,)?30 }30 }37 pallets(37 pallets(38 $(38 $(39 $(#[runtimes($($pallet_runtimes),+)])?39 $(#[runtimes($($pallet_runtimes),+)])?40 $pallet_name: $pallet_mod::{$($pallet_parts),*} = $index40 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index41 ),*,41 ),*,42 )42 )43 }43 }53 where_clause($($where_clause:tt)*),53 where_clause($($where_clause:tt)*),54 pallets(54 pallets(55 #[runtimes($($pallet_runtimes:ident),+)]55 #[runtimes($($pallet_runtimes:ident),+)]56 $pallet_name:ident: $pallet_mod:ident::{$($pallet_parts:ty),*} = $index:literal,56 $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,575758 $($pallets_tl:tt)*58 $($pallets_tl:tt)*59 )59 )656566 where_clause($($where_clause)*),66 where_clause($($where_clause)*),67 pallets(67 pallets(68 $pallet_name: $pallet_mod::{$($pallet_parts),*} = $index,68 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,69 $($pallets_tl)*69 $($pallets_tl)*70 )70 )71 }71 }777778 where_clause($($where_clause:tt)*),78 where_clause($($where_clause:tt)*),79 pallets(79 pallets(80 $pallet_name:ident: $pallet_mod:ident::{$($pallet_parts:ty),*} = $index:literal,80 $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,818182 $($pallets_tl:tt)*82 $($pallets_tl:tt)*83 )83 )86 select_runtime($select_runtime),86 select_runtime($select_runtime),87 selected_pallets(87 selected_pallets(88 $($selected_pallets)*88 $($selected_pallets)*89 $pallet_name: $pallet_mod::{$($pallet_parts),*} = $index,89 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,90 ),90 ),919192 where_clause($($where_clause)*),92 where_clause($($where_clause)*),120120121 where_clause($($where_clause:tt)*),121 where_clause($($where_clause:tt)*),122 pallets(122 pallets(123 $pallet_name:ident: $pallet_mod:ident::{$($pallet_parts:ty),*} = $index:literal,123 $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,124 $($pallets_tl:tt)*124 $($pallets_tl:tt)*125 )125 )126 ) => {126 ) => {127 $crate::construct_runtime_helper! {127 $crate::construct_runtime_helper! {128 select_runtime(opal),128 select_runtime(opal),129 selected_pallets(129 selected_pallets(130 $($selected_pallets)*130 $($selected_pallets)*131 $pallet_name: $pallet_mod::{$($pallet_parts),*} = $index,131 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,132 ),132 ),133133134 where_clause($($where_clause)*),134 where_clause($($where_clause)*),143143144 where_clause($($where_clause:tt)*),144 where_clause($($where_clause:tt)*),145 pallets(145 pallets(146 $pallet_name:ident: $pallet_mod:ident::{$($pallet_parts:ty),*} = $index:literal,146 $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,147 $($pallets_tl:tt)*147 $($pallets_tl:tt)*148 )148 )149 ) => {149 ) => {150 $crate::construct_runtime_helper! {150 $crate::construct_runtime_helper! {151 select_runtime(quartz),151 select_runtime(quartz),152 selected_pallets(152 selected_pallets(153 $($selected_pallets)*153 $($selected_pallets)*154 $pallet_name: $pallet_mod::{$($pallet_parts),*} = $index,154 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,155 ),155 ),156156157 where_clause($($where_clause)*),157 where_clause($($where_clause)*),166166167 where_clause($($where_clause:tt)*),167 where_clause($($where_clause:tt)*),168 pallets(168 pallets(169 $pallet_name:ident: $pallet_mod:ident::{$($pallet_parts:ty),*} = $index:literal,169 $pallet_name:ident: $pallet_mod:ident$(::{$($pallet_parts:ty),*})? = $index:literal,170 $($pallets_tl:tt)*170 $($pallets_tl:tt)*171 )171 )172 ) => {172 ) => {173 $crate::construct_runtime_helper! {173 $crate::construct_runtime_helper! {174 select_runtime(unique),174 select_runtime(unique),175 selected_pallets(175 selected_pallets(176 $($selected_pallets)*176 $($selected_pallets)*177 $pallet_name: $pallet_mod::{$($pallet_parts),*} = $index,177 $pallet_name: $pallet_mod$(::{$($pallet_parts),*})? = $index,178 ),178 ),179179180 where_clause($($where_clause)*),180 where_clause($($where_clause)*),207207208 where_clause($($where_clause:tt)*),208 where_clause($($where_clause:tt)*),209 pallets(209 pallets(210 $_pallet_name:ident: $_pallet_mod:ident::{$($_pallet_parts:ty),*} = $_index:literal,210 $_pallet_name:ident: $_pallet_mod:ident$(::{$($_pallet_parts:ty),*})? = $_index:literal,211 $($pallets_tl:tt)*211 $($pallets_tl:tt)*212 )212 )213 ) => {213 ) => {