diff options
6 files changed, 8 insertions, 2 deletions
diff --git a/cortex-m-rt/tests/compile-fail/duplicate-static.rs b/cortex-m-rt/tests/compile-fail/duplicate-static.rs index fccb65f..eeb884f 100644 --- a/cortex-m-rt/tests/compile-fail/duplicate-static.rs +++ b/cortex-m-rt/tests/compile-fail/duplicate-static.rs @@ -6,6 +6,7 @@ extern crate panic_halt; use cortex_m_rt::{entry, exception, interrupt}; +#[allow(non_camel_case_types)] enum interrupt { UART0, } diff --git a/cortex-m-rt/tests/compile-fail/interrupt-args.rs b/cortex-m-rt/tests/compile-fail/interrupt-args.rs index 9630ce1..1e06ec2 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-args.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-args.rs @@ -11,6 +11,7 @@ fn foo() -> ! { loop {} } +#[allow(non_camel_case_types)] enum interrupt { USART1, } diff --git a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs index c7e25b3..bd5ff9f 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-1.rs @@ -11,6 +11,7 @@ fn foo() -> ! { loop {} } +#[allow(non_camel_case_types)] enum interrupt { USART1, } diff --git a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs index ed5cbd4..56db222 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-bad-signature-2.rs @@ -11,6 +11,7 @@ fn foo() -> ! { loop {} } +#[allow(non_camel_case_types)] enum interrupt { USART1, } diff --git a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs index 4e79e7d..9b1482a 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-invalid.rs @@ -11,11 +11,12 @@ fn foo() -> ! { loop {} } +#[allow(non_camel_case_types)] enum interrupt { USART1, } // 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] //~ ERROR no variant named `foo` found for type `interrupt` in the current scope -fn foo() {} +#[interrupt] +fn foo() {} //~ ERROR no variant named `foo` found for type `interrupt` in the current scope diff --git a/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs b/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs index b473a94..74e5e79 100644 --- a/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs +++ b/cortex-m-rt/tests/compile-fail/interrupt-soundness.rs @@ -11,6 +11,7 @@ fn foo() -> ! { loop {} } +#[allow(non_camel_case_types)] enum interrupt { USART1, USART2, |