aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt
diff options
context:
space:
mode:
Diffstat (limited to 'cortex-m-rt')
-rw-r--r--cortex-m-rt/macros/src/lib.rs2
-rw-r--r--cortex-m-rt/tests/compile-fail/whitelist-double-attr.rs2
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 {}
}