hooks default impl missing where clause (#13264)

* hooks default impl missing where clause

* add tests

* Update frame/support/test/tests/pallet_ui/pass/where_clause_missing_hooks.rs

---------

Co-authored-by: parity-processbot <>
This commit is contained in:
Kian Paimaniandparity-processbot authored and GitHub committed 2023-02-01 14:38:41 +01:00
1 parent 3079a17c94
commit 320a9ce3c9
3 files changed
+21 -3

No files matched your search

@@ -76,7 +76,7 @@ pub fn expand_hooks(def: &mut Def) -> proc_macro2::TokenStream {
quote::quote! {
impl<#type_impl_gen>
#frame_support::traits::Hooks<<T as #frame_system::Config>::BlockNumber>
for Pallet<#type_use_gen> {}
for #pallet_ident<#type_use_gen> #where_clause {}
}
} else {
proc_macro2::TokenStream::new()