aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/macros
diff options
context:
space:
mode:
authorGravatar Jorge Aparicio <jorge@japaric.io> 2018-09-06 00:37:05 +0200
committerGravatar Jorge Aparicio <jorge@japaric.io> 2018-09-06 00:39:16 +0200
commit8ee2e58fc6eb843b9c751bc5f45e414efc325e62 (patch)
tree6860fd426f24c2b0c2d62efedc41582df62c38ec /cortex-m-rt/macros
parent2f162e2f09d662e2bcb245000a5514335106fe84 (diff)
downloadcortex-m-8ee2e58fc6eb843b9c751bc5f45e414efc325e62.tar.gz
cortex-m-8ee2e58fc6eb843b9c751bc5f45e414efc325e62.tar.zst
cortex-m-8ee2e58fc6eb843b9c751bc5f45e414efc325e62.zip
whoops, it seems like we do need some `#[allow]`s after all
Diffstat (limited to 'cortex-m-rt/macros')
-rw-r--r--cortex-m-rt/macros/src/lib.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/cortex-m-rt/macros/src/lib.rs b/cortex-m-rt/macros/src/lib.rs
index afc7600..e37eb9c 100644
--- a/cortex-m-rt/macros/src/lib.rs
+++ b/cortex-m-rt/macros/src/lib.rs
@@ -118,6 +118,7 @@ pub fn entry(args: TokenStream, input: TokenStream) -> TokenStream {
quote!(
static mut #ident_: #ty = #expr;
+ #[allow(non_snake_case)]
let #ident: &'static mut #ty = unsafe { &mut #ident_ };
)
}).collect::<Vec<_>>();
@@ -407,6 +408,7 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream {
quote!(
static mut #ident_: #ty = #expr;
+ #[allow(non_snake_case)]
let #ident: &mut #ty = unsafe { &mut #ident_ };
)
}).collect::<Vec<_>>();