diff options
author | 2020-03-30 10:06:55 +0200 | |
---|---|---|
committer | 2020-03-31 13:04:46 +0200 | |
commit | 853a47fbf5cf76367a99f1d347dfc71a330f240e (patch) | |
tree | aa01840fbe43e3f78750aa82ebd08d20072d1d1f /cortex-m-rt | |
parent | ffffb7b3aaef1d9bb4e4b81347ed8f1d50e50ea4 (diff) | |
download | cortex-m-853a47fbf5cf76367a99f1d347dfc71a330f240e.tar.gz cortex-m-853a47fbf5cf76367a99f1d347dfc71a330f240e.tar.zst cortex-m-853a47fbf5cf76367a99f1d347dfc71a330f240e.zip |
New compile-fail string for interrupt-invalid
Diffstat (limited to 'cortex-m-rt')
-rw-r--r-- | cortex-m-rt/src/lib.rs | 4 | ||||
-rw-r--r-- | cortex-m-rt/tests/compile-fail/interrupt-invalid.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/cortex-m-rt/src/lib.rs b/cortex-m-rt/src/lib.rs index 06e945d..8b43c52 100644 --- a/cortex-m-rt/src/lib.rs +++ b/cortex-m-rt/src/lib.rs @@ -207,7 +207,7 @@ //! trampoline is required to set up the pointer to the stacked exception frame. //! //! - `HardFault`. This is the user defined hard fault handler. If not overridden using -//! `#[exception] fn HardFault(..` it will default to a panic with message "Hardfault". +//! `#[exception] fn HardFault(..` it will default to a panic with message "HardFault". //! //! - `__STACK_START`. This is the first entry in the `.vector_table` section. This symbol contains //! 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() -> ! { #[link_section = ".HardFault.default"] #[no_mangle] pub unsafe extern "C" fn HardFault_(ef: &ExceptionFrame) -> ! { - panic!("Hardfault"); + panic!("HardFault"); } #[doc(hidden)] diff --git a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs index e915518..f2ec718 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs @@ -19,4 +19,4 @@ enum interrupt { // NOTE this looks a bit better when using a device crate: // "no variant named `foo` found for type `stm32f30x::Interrupt` in the current scope" #[interrupt] -fn foo() {} //~ ERROR no variant or associated item named `foo` found for type `interrupt` in the current scope +fn foo() {} //~ ERROR no variant or associated item named `foo` found for enum `interrupt` in the current scope [E0599] |