From 31b392fe3a6961596a0bd4e1bb24c0da2a9b7b42 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 6 Nov 2019 19:05:37 -0500 Subject: CI: replace compiletest-rs with trybuild We use compiletest to run compile-fail tests but compiletest depends on compiler internals so it breaks every now and then and requires nightly. With trybuild we can also run compile-fail tests but it works on stable and it already has reached version 1.0 --- ui/single/task-priority-too-high.stderr | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'ui/single/task-priority-too-high.stderr') diff --git a/ui/single/task-priority-too-high.stderr b/ui/single/task-priority-too-high.stderr index b402a95..0e0b1cb 100644 --- a/ui/single/task-priority-too-high.stderr +++ b/ui/single/task-priority-too-high.stderr @@ -1,9 +1,13 @@ +warning: unused import: `rtfm::app` + --> $DIR/task-priority-too-high.rs:3:5 + | +3 | use rtfm::app; + | ^^^^^^^^^ + | + = note: `#[warn(unused_imports)]` on by default + error[E0080]: evaluation of constant value failed --> $DIR/task-priority-too-high.rs:5:1 | 5 | #[rtfm::app(device = lm3s6965)] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to subtract with overflow - -error: aborting due to previous error - -For more information about this error, try `rustc --explain E0080`. -- cgit v1.2.3 From da9c6a714eaa9420694dc6377c6e0167fe08f5d4 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 6 Nov 2019 19:39:57 -0500 Subject: run cfail tests only when rustc --version == $MSRV this version is more or less fixed so new releases of Rust (stable or nightly channel) are unlikely to break to build due to changes in diagnostic messages --- ui/single/task-priority-too-high.stderr | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ui/single/task-priority-too-high.stderr') diff --git a/ui/single/task-priority-too-high.stderr b/ui/single/task-priority-too-high.stderr index 0e0b1cb..98b5d65 100644 --- a/ui/single/task-priority-too-high.stderr +++ b/ui/single/task-priority-too-high.stderr @@ -4,7 +4,7 @@ warning: unused import: `rtfm::app` 3 | use rtfm::app; | ^^^^^^^^^ | - = note: `#[warn(unused_imports)]` on by default + = note: #[warn(unused_imports)] on by default error[E0080]: evaluation of constant value failed --> $DIR/task-priority-too-high.rs:5:1 -- cgit v1.2.3