diff options
author | 2019-12-28 16:09:19 +0000 | |
---|---|---|
committer | 2019-12-28 16:09:19 +0000 | |
commit | 3d77e2e625ade5314167450b7851c487ac12819c (patch) | |
tree | 20f84b6ce1f67372a327d54d037d9b193a9ea2da | |
parent | e6f46cf05446b6da1d072c34af833175ac9b93ed (diff) | |
parent | 56e8ada18abddf06475fa8bf21add1b43cd14da8 (diff) | |
download | cortex-m-3d77e2e625ade5314167450b7851c487ac12819c.tar.gz cortex-m-3d77e2e625ade5314167450b7851c487ac12819c.tar.zst cortex-m-3d77e2e625ade5314167450b7851c487ac12819c.zip |
Merge #229
229: Fixed changed compile-fail messages r=jonas-schievink a=korken89
Fixed the errors now present in `compile-fail` tests.
Co-authored-by: Emil Fresk <emil.fresk@gmail.com>
-rw-r--r-- | cortex-m-rt/tests/compile-fail/exception-soundness.rs | 2 | ||||
-rw-r--r-- | cortex-m-rt/tests/compile-fail/interrupt-soundness.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/cortex-m-rt/tests/compile-fail/exception-soundness.rs b/cortex-m-rt/tests/compile-fail/exception-soundness.rs index aae2476..9a1e10b 100644 --- a/cortex-m-rt/tests/compile-fail/exception-soundness.rs +++ b/cortex-m-rt/tests/compile-fail/exception-soundness.rs @@ -25,5 +25,5 @@ fn SysTick() { #[exception] fn SVCall() { // If this was allowed it would lead to a data race as `SVCall` could preempt `SysTick` - SysTick(); //~ ERROR cannot find function `SysTick` in this scope + SysTick(); //~ ERROR cannot find function, tuple struct or tuple variant `SysTick` in this scope [E0425] } diff --git a/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs b/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs index 74e5e79..faf737d 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs @@ -30,5 +30,5 @@ fn USART1() { #[interrupt] fn USART2() { - USART1(); //~ ERROR cannot find function `USART1` in this scope + USART1(); //~ ERROR cannot find function, tuple struct or tuple variant `USART1` in this scope [E0425] } |