Skip to content

Commit

Permalink
Merge pull request #561 from jannic/allow-static-mut-refs
Browse files Browse the repository at this point in the history
Allow static_mut_refs lint in macro expansions
  • Loading branch information
adamgreig authored Oct 18, 2024
2 parents 57ce011 + fb688b1 commit fafef00
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cortex-m-rt/macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
#[doc(hidden)]
#[export_name = "main"]
pub unsafe extern "C" fn #tramp_ident() {
#[allow(static_mut_refs)]
#ident(
#(#resource_args),*
)
Expand Down Expand Up @@ -500,6 +501,7 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream {
#[doc(hidden)]
#[export_name = #ident_s]
pub unsafe extern "C" fn #tramp_ident() {
#[allow(static_mut_refs)]
#ident(
#(#resource_args),*
)
Expand Down Expand Up @@ -614,6 +616,7 @@ pub fn interrupt(args: TokenStream, input: TokenStream) -> TokenStream {
#[doc(hidden)]
#[export_name = #ident_s]
pub unsafe extern "C" fn #tramp_ident() {
#[allow(static_mut_refs)]
#ident(
#(#resource_args),*
)
Expand Down

0 comments on commit fafef00

Please sign in to comment.