Skip to content

Commit

Permalink
review
Browse files Browse the repository at this point in the history
  • Loading branch information
pkhry committed Dec 3, 2024
1 parent 5714f3c commit 9ada2aa
Show file tree
Hide file tree
Showing 10 changed files with 3,797 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,6 @@ pub(crate) fn decl_static_assertions(
});

quote! {
#[allow(deprecated)]
#(#error_encoded_size_check)*
}
}
Expand Down
1 change: 1 addition & 0 deletions substrate/frame/support/procedural/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -376,6 +376,7 @@ pub fn derive_eq_no_bound(input: TokenStream) -> TokenStream {
let (impl_generics, ty_generics, where_clause) = input.generics.split_for_impl();

quote::quote_spanned!(name.span() =>
#[allow(deprecated)]
const _: () = {
impl #impl_generics ::core::cmp::Eq for #name #ty_generics #where_clause {}
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ pub fn expand_constants(def: &mut Def) -> proc_macro2::TokenStream {
let completed_where_clause = super::merge_where_clauses(&where_clauses);

let mut config_consts = vec![];
for const_ in def.config.consts_metadata.iter_mut() {
for const_ in def.config.consts_metadata.iter() {
let ident = &const_.ident;
let const_type = &const_.type_;
let deprecation_info = match crate::deprecation::get_deprecation(
Expand Down Expand Up @@ -79,7 +79,7 @@ pub fn expand_constants(def: &mut Def) -> proc_macro2::TokenStream {
}

let mut extra_consts = vec![];
for const_ in def.extra_constants.iter_mut().flat_map(|d| &mut d.extra_constants) {
for const_ in def.extra_constants.iter().flat_map(|d| &d.extra_constants) {
let ident = &const_.ident;
let deprecation_info = match crate::deprecation::get_deprecation(
&quote::quote! { #frame_support },
Expand Down
Loading

0 comments on commit 9ada2aa

Please sign in to comment.