aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Henrik Tjäder <henrik@tjaders.com> 2020-09-25 13:59:04 +0000
committerGravatar Henrik Tjäder <henrik@tjaders.com> 2020-09-25 14:33:08 +0000
commitec936c3b51801280ee6edb365b784d515382b6fb (patch)
treee435015952c2f4532c7f36e6c5d96ac89447f431
parent262c15083bd4b40c638f91d7497d3d602d0b5d34 (diff)
downloadrtic-ec936c3b51801280ee6edb365b784d515382b6fb.tar.gz
rtic-ec936c3b51801280ee6edb365b784d515382b6fb.tar.zst
rtic-ec936c3b51801280ee6edb365b784d515382b6fb.zip
Update test suite output
-rw-r--r--ui/single/locals-cfg.stderr12
-rw-r--r--ui/single/task-priority-too-high.rs2
-rw-r--r--ui/single/task-priority-too-high.stderr16
3 files changed, 13 insertions, 17 deletions
diff --git a/ui/single/locals-cfg.stderr b/ui/single/locals-cfg.stderr
index e572a418..76371596 100644
--- a/ui/single/locals-cfg.stderr
+++ b/ui/single/locals-cfg.stderr
@@ -28,10 +28,14 @@ error[E0425]: cannot find value `FOO` in this scope
44 | FOO;
| ^^^ not found in this scope
-error: duplicate lang item in crate `panic_semihosting`: `panic_impl`.
+error: duplicate lang item in crate `panic_halt`: `panic_impl`.
|
- = note: first defined in crate `std` (which `$CRATE` depends on)
+ = note: the lang item is first defined in crate `std` (which `$CRATE` depends on)
+ = note: first definition in `std` loaded from /usr/share/rust/.rustup/toolchains/stable-x86_64-unknown-linux-gnu/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-cf0f33af3a901778.rlib
+ = note: second definition in `panic_halt` loaded from $DIR/target/tests/target/x86_64-unknown-linux-gnu/debug/deps/libpanic_halt-ba6f0ab3439cbc7e.rmeta
-error: duplicate lang item in crate `panic_halt`: `panic_impl`.
+error: duplicate lang item in crate `panic_semihosting`: `panic_impl`.
|
- = note: first defined in crate `panic_semihosting`.
+ = note: the lang item is first defined in crate `panic_halt`.
+ = note: first definition in `panic_halt` loaded from $DIR/target/tests/target/x86_64-unknown-linux-gnu/debug/deps/libpanic_halt-ba6f0ab3439cbc7e.rmeta
+ = note: second definition in `panic_semihosting` loaded from $DIR/target/tests/target/x86_64-unknown-linux-gnu/debug/deps/libpanic_semihosting-805015f4a2d05965.rmeta
diff --git a/ui/single/task-priority-too-high.rs b/ui/single/task-priority-too-high.rs
index c01d685b..fbafa4d2 100644
--- a/ui/single/task-priority-too-high.rs
+++ b/ui/single/task-priority-too-high.rs
@@ -1,7 +1,5 @@
#![no_main]
-use rtic::app;
-
#[rtic::app(device = lm3s6965)]
mod app {
#[init]
diff --git a/ui/single/task-priority-too-high.stderr b/ui/single/task-priority-too-high.stderr
index 5854ae5f..e84ddd3c 100644
--- a/ui/single/task-priority-too-high.stderr
+++ b/ui/single/task-priority-too-high.stderr
@@ -1,13 +1,7 @@
-warning: unused import: `rtic::app`
- --> $DIR/task-priority-too-high.rs:3:5
- |
-3 | use rtic::app;
- | ^^^^^^^^^
- |
- = note: `#[warn(unused_imports)]` on by default
-
error[E0080]: evaluation of constant value failed
- --> $DIR/task-priority-too-high.rs:5:1
+ --> $DIR/task-priority-too-high.rs:3:1
+ |
+3 | #[rtic::app(device = lm3s6965)]
+ | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to compute `8_usize - 9_usize` which would overflow
|
-5 | #[rtic::app(device = lm3s6965)]
- | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ attempt to subtract with overflow
+ = note: this error originates in an attribute macro (in Nightly builds, run with -Z macro-backtrace for more info)