From 06dc05cce2e9dd4a71105eaa3a0f00d2fdad8799 Mon Sep 17 00:00:00 2001 From: Adam Greig Date: Wed, 26 Jan 2022 22:32:04 +0000 Subject: c-m-rt: fix macro hygiene, set to edition 2018 --- cortex-m-rt/macros/src/lib.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'cortex-m-rt/macros/src/lib.rs') diff --git a/cortex-m-rt/macros/src/lib.rs b/cortex-m-rt/macros/src/lib.rs index 4383d06..fbcf4fa 100644 --- a/cortex-m-rt/macros/src/lib.rs +++ b/cortex-m-rt/macros/src/lib.rs @@ -174,7 +174,7 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream { Exception::Other => { quote! { const _: () = { - let _ = cortex_m_rt::Exception::#ident; + let _ = ::cortex_m_rt::Exception::#ident; }; } } @@ -328,7 +328,7 @@ pub fn exception(args: TokenStream, input: TokenStream) -> TokenStream { f.block.stmts = iter::once( syn::parse2(quote! {{ // check that this exception actually exists - cortex_m_rt::exception::#ident; + ::cortex_m_rt::exception::#ident; }}) .unwrap(), ) -- cgit v1.2.3