diff options
author | 2022-01-27 22:51:03 +0000 | |
---|---|---|
committer | 2022-01-27 22:51:03 +0000 | |
commit | 093928142cbecc2a07dbf649abae15e8ed20127a (patch) | |
tree | 2f743155831af2aeae0abc5887b3ba3ac30ef3ba /cortex-m-rt/macros | |
parent | 08111803edae11ab0fa4d0f287a865f434f4c12c (diff) | |
parent | 06dc05cce2e9dd4a71105eaa3a0f00d2fdad8799 (diff) | |
download | cortex-m-093928142cbecc2a07dbf649abae15e8ed20127a.tar.gz cortex-m-093928142cbecc2a07dbf649abae15e8ed20127a.tar.zst cortex-m-093928142cbecc2a07dbf649abae15e8ed20127a.zip |
Merge #416
416: Fix #414, use fully qualified path for `exception` enum in `#[exception]` macro r=thalesfragoso a=adamgreig
Partially reverts https://github.com/rust-embedded/cortex-m-rt/pull/224
to continue to use a fully-qualified path to `exception`.
Co-authored-by: Adam Greig <adam@adamgreig.com>
Diffstat (limited to 'cortex-m-rt/macros')
-rw-r--r-- | cortex-m-rt/macros/src/lib.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cortex-m-rt/macros/src/lib.rs b/cortex-m-rt/macros/src/lib.rs index 24f3fa1..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 - exception::#ident; + ::cortex_m_rt::exception::#ident; }}) .unwrap(), ) |