Skip to content

Commit 853a47f

Browse files
committed
New compile-fail string for interrupt-invalid
1 parent ffffb7b commit 853a47f

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

cortex-m-rt/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -207,7 +207,7 @@
207207
//! trampoline is required to set up the pointer to the stacked exception frame.
208208
//!
209209
//! - `HardFault`. This is the user defined hard fault handler. If not overridden using
210-
//! `#[exception] fn HardFault(..` it will default to a panic with message "Hardfault".
210+
//! `#[exception] fn HardFault(..` it will default to a panic with message "HardFault".
211211
//!
212212
//! - `__STACK_START`. This is the first entry in the `.vector_table` section. This symbol contains
213213
//! the initial value of the stack pointer; this is where the stack will be located -- the stack
@@ -945,7 +945,7 @@ pub unsafe extern "C" fn Reset() -> ! {
945945
#[link_section = ".HardFault.default"]
946946
#[no_mangle]
947947
pub unsafe extern "C" fn HardFault_(ef: &ExceptionFrame) -> ! {
948-
panic!("Hardfault");
948+
panic!("HardFault");
949949
}
950950

951951
#[doc(hidden)]

cortex-m-rt/tests/compile-fail/interrupt-invalid.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,4 @@ enum interrupt {
1919
// NOTE this looks a bit better when using a device crate:
2020
// "no variant named `foo` found for type `stm32f30x::Interrupt` in the current scope"
2121
#[interrupt]
22-
fn foo() {} //~ ERROR no variant or associated item named `foo` found for type `interrupt` in the current scope
22+
fn foo() {} //~ ERROR no variant or associated item named `foo` found for enum `interrupt` in the current scope [E0599]

0 commit comments

Comments
 (0)