Skip to content

Commit 2f11f0b

Browse files
Merge #216
216: Fix compiletest tests r=therealprof a=jonas-schievink Closes rust-embedded/cortex-m-rt#215 Co-authored-by: Jonas Schievink <[email protected]>
2 parents 83aa309 + 0ada35e commit 2f11f0b

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

cortex-m-rt/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ features = ["small_rng"]
3030
version = "0.7"
3131

3232
[target.'cfg(not(target_os = "none"))'.dev-dependencies]
33-
compiletest_rs = "0.3.25"
33+
compiletest_rs = "0.4.0"
3434

3535
[[example]]
3636
name = "device"

cortex-m-rt/ci/script.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ main() {
55

66
cargo check --target $TARGET --features device
77

8-
if [ $TARGET = x86_64-unknown-linux-gnu ] && [ $TRAVIS_RUST_VERSION = nightly ]; then
8+
if [ $TARGET = x86_64-unknown-linux-gnu ] && [ $TRAVIS_RUST_VERSION = stable ]; then
99
( cd macros && cargo check && cargo test )
1010

1111
cargo test --features device --test compiletest
@@ -73,7 +73,7 @@ main() {
7373
# linking with GNU LD
7474
env RUSTFLAGS="-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" cargo run --target $TARGET --example qemu | grep "x = 42"
7575
env RUSTFLAGS="-C linker=arm-none-eabi-ld -C link-arg=-Tlink.x" cargo run --target $TARGET --example qemu --release | grep "x = 42"
76-
76+
7777
# linking with rustc's LLD
7878
cargo run --target $TARGET --example qemu | grep "x = 42"
7979
cargo run --target $TARGET --example qemu --release | grep "x = 42"

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 named `foo` found for type `interrupt` in the current scope
22+
fn foo() {} //~ ERROR no variant or associated item named `foo` found for type `interrupt` in the current scope

0 commit comments

Comments
 (0)