Skip to content
This repository was archived by the owner on Jan 24, 2022. It is now read-only.

Commit 44985bc

Browse files
Better error message
Co-Authored-By: Jonas Schievink <[email protected]>
1 parent d779bdd commit 44985bc

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

macros/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -839,7 +839,7 @@ fn check_attr_whitelist(attrs: &[Attribute]) -> Result<(), TokenStream> {
839839
return Err(
840840
parse::Error::new(
841841
attr.span(),
842-
"cortex-m-rt does not support multiple attributes on the same function",
842+
"multiple cortex-m-rt attributes are not supported on the same function",
843843
)
844844
.to_compile_error()
845845
.into(),

tests/compile-fail/whitelist-double-attr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ extern crate panic_halt;
77
use cortex_m_rt::{entry, exception};
88

99
#[exception]
10-
#[entry] //~ ERROR cortex-m-rt does not support multiple attributes on the same function
10+
#[entry] //~ ERROR multiple cortex-m-rt attributes are not supported on the same function
1111
fn SVCall() -> ! {
1212
loop {}
1313
}

0 commit comments

Comments
 (0)