aboutsummaryrefslogtreecommitdiff
path: root/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
diff options
context:
space:
mode:
authorGravatar bors[bot] <26634292+bors[bot]@users.noreply.github.com> 2020-08-23 22:16:07 +0000
committerGravatar GitHub <noreply@github.com> 2020-08-23 22:16:07 +0000
commitf4a85dcc92e90e27588cbe14e0447b89f672e30f (patch)
tree4af03e376f2c48f35109f3da21c5e96354975b4d /cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
parentcbb3c4e63079a2a70b09f8038606b1c51f34675d (diff)
parentbb868f4a90c6eff142801bc1a19b135483eed312 (diff)
downloadcortex-m-f4a85dcc92e90e27588cbe14e0447b89f672e30f.tar.gz
cortex-m-f4a85dcc92e90e27588cbe14e0447b89f672e30f.tar.zst
cortex-m-f4a85dcc92e90e27588cbe14e0447b89f672e30f.zip
Merge #289
289: Make it unsafe to define NMI handlers r=therealprof a=jonas-schievink Reverts https://github.com/rust-embedded/cortex-m-rt/pull/257 Fixes https://github.com/rust-embedded/cortex-m-rt/issues/269 Fixes https://github.com/rust-embedded/cortex-m/issues/196 (see that thread for details) Co-authored-by: Jonas Schievink <jonasschievink@gmail.com>
Diffstat (limited to 'cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs')
-rw-r--r--cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
index 1cca10c..0dadd6a 100644
--- a/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
+++ b/cortex-m-rt/tests/compile-fail/default-handler-bad-signature-2.rs
@@ -12,7 +12,7 @@ fn foo() -> ! {
}
#[exception]
-fn DefaultHandler(_irqn: i16) -> u32 {
- //~^ ERROR `DefaultHandler` must have signature `[unsafe] fn(i16) [-> !]`
+unsafe fn DefaultHandler(_irqn: i16) -> u32 {
+ //~^ ERROR `DefaultHandler` must have signature `unsafe fn(i16) [-> !]`
0
}