diff options
author | 2020-01-16 13:02:47 +0100 | |
---|---|---|
committer | 2020-01-16 13:07:19 +0100 | |
commit | 447798a4f9ce76d9c8d51bc1c53d6ce51fa9d7e6 (patch) | |
tree | dc2fd4d56f10479b903f9e6b4767db52ac16cdb7 /cortex-m-rt | |
parent | 58949206e3a752dbfd47521d2b6bfdafa9010c90 (diff) | |
download | cortex-m-447798a4f9ce76d9c8d51bc1c53d6ce51fa9d7e6.tar.gz cortex-m-447798a4f9ce76d9c8d51bc1c53d6ce51fa9d7e6.tar.zst cortex-m-447798a4f9ce76d9c8d51bc1c53d6ce51fa9d7e6.zip |
Better error message
Co-Authored-By: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'cortex-m-rt')
-rw-r--r-- | cortex-m-rt/macros/src/lib.rs | 2 | ||||
-rw-r--r-- | cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs | 2 |
2 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 177ed4e..57cddd1 100644 --- a/cortex-m-rt/macros/src/lib.rs +++ b/cortex-m-rt/macros/src/lib.rs @@ -839,7 +839,7 @@ fn check_attr_whitelist(attrs: &[Attribute]) -> Result<(), TokenStream> { return Err( parse::Error::new( attr.span(), - "cortex-m-rt does not support multiple attributes on the same function", + "multiple cortex-m-rt attributes are not supported on the same function", ) .to_compile_error() .into(), diff --git a/cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs b/cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs index db17fb5..2900eb7 100644 --- a/cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs +++ b/cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs @@ -7,7 +7,7 @@ extern crate panic_halt; use cortex_m_rt::{entry, exception}; #[exception] -#[entry] //~ ERROR cortex-m-rt does not support multiple attributes on the same function +#[entry] //~ ERROR multiple cortex-m-rt attributes are not supported on the same function fn SVCall() -> ! { loop {} } |