diff options
author | 2021-08-19 07:57:20 +0000 | |
---|---|---|
committer | 2021-08-19 07:57:20 +0000 | |
commit | 2f180c0e3f81b60494475184397463291fcd06ea (patch) | |
tree | 9b0408bc45875a4a02da24a391057f812b078405 /macros/src/codegen/software_tasks.rs | |
parent | 6b9966678cd4d9e1242779b6a62643f44857d45f (diff) | |
parent | 13f7516a4d88f15763b7186cc3a95ccb3cfbd5c0 (diff) | |
download | rtic-2f180c0e3f81b60494475184397463291fcd06ea.tar.gz rtic-2f180c0e3f81b60494475184397463291fcd06ea.tar.zst rtic-2f180c0e3f81b60494475184397463291fcd06ea.zip |
Merge #513
513: Fixed some lints from Rust Analyzer with experimental proc-macros r=AfoHT a=korken89
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
Diffstat (limited to 'macros/src/codegen/software_tasks.rs')
-rw-r--r-- | macros/src/codegen/software_tasks.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/macros/src/codegen/software_tasks.rs b/macros/src/codegen/software_tasks.rs index 0b073359..17399b50 100644 --- a/macros/src/codegen/software_tasks.rs +++ b/macros/src/codegen/software_tasks.rs @@ -49,6 +49,8 @@ pub fn codegen( mod_app.push(quote!( // /// Queue version of a free-list that keeps track of empty slots in // /// the following buffers + #[allow(non_camel_case_types)] + #[allow(non_upper_case_globals)] #[doc(hidden)] static #fq: rtic::RacyCell<#fq_ty> = rtic::RacyCell::new(#fq_expr); )); @@ -69,6 +71,8 @@ pub fn codegen( #uninit // /// Buffer that holds the instants associated to the inputs of a task // #[doc = #doc] + #[allow(non_camel_case_types)] + #[allow(non_upper_case_globals)] #[doc(hidden)] static #instants: rtic::RacyCell<[core::mem::MaybeUninit<rtic::time::Instant<#mono_type>>; #cap_lit]> = @@ -82,6 +86,8 @@ pub fn codegen( mod_app.push(quote!( #uninit // /// Buffer that holds the inputs of a task + #[allow(non_camel_case_types)] + #[allow(non_upper_case_globals)] #[doc(hidden)] static #inputs_ident: rtic::RacyCell<[core::mem::MaybeUninit<#input_ty>; #cap_lit]> = rtic::RacyCell::new([#(#elems,)*]); |