diff options
author | 2018-08-24 16:31:04 +0200 | |
---|---|---|
committer | 2018-08-24 16:31:04 +0200 | |
commit | abca8299268e55bdb80b649ceb6b0cc5d0f3c34a (patch) | |
tree | ebd4128dc1904f4adc60fea365f3f9d97620b58c /macros/src | |
parent | 5a3605050e210ab819af83b59556cfc78a2f667f (diff) | |
download | rtic-abca8299268e55bdb80b649ceb6b0cc5d0f3c34a.tar.gz rtic-abca8299268e55bdb80b649ceb6b0cc5d0f3c34a.tar.zst rtic-abca8299268e55bdb80b649ceb6b0cc5d0f3c34a.zip |
more fixes
Diffstat (limited to 'macros/src')
-rw-r--r-- | macros/src/lib.rs | 1 | ||||
-rw-r--r-- | macros/src/trans.rs | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/macros/src/lib.rs b/macros/src/lib.rs index 728e6133..65d5ad89 100644 --- a/macros/src/lib.rs +++ b/macros/src/lib.rs @@ -1,6 +1,5 @@ //! Procedural macros of the `cortex-m-rtfm` crate // #![deny(warnings)] -#![feature(proc_macro)] #![recursion_limit = "128"] #[macro_use] diff --git a/macros/src/trans.rs b/macros/src/trans.rs index 3da1e3ef..dcd6cfb6 100644 --- a/macros/src/trans.rs +++ b/macros/src/trans.rs @@ -85,7 +85,7 @@ fn idle(app: &App, ownerships: &Ownerships, main: &mut Vec<TokenStream>, root: & }); rexprs.push(quote! { - #name: ::idle::#name { _0: core::marker::PhantomData }, + #name: ::idle::#name { _0: ::core::marker::PhantomData }, }); } } @@ -149,7 +149,7 @@ fn idle(app: &App, ownerships: &Ownerships, main: &mut Vec<TokenStream>, root: & mod_items.push(quote! { #[allow(non_camel_case_types)] - pub struct #name { _0: core::marker::PhantomData<*const ()> } + pub struct #name { _0: ::core::marker::PhantomData<*const ()> } }); root.push(quote! { |