aboutsummaryrefslogtreecommitdiff
path: root/tests/cfail/resource-not-send-sync.rs
diff options
context:
space:
mode:
authorJorge Aparicio <jorge@japaric.io>2018-04-08 18:23:27 +0200
committerJorge Aparicio <jorge@japaric.io>2018-04-16 21:32:29 +0200
commit7fdf16eab948ea04c1e56fdb5a704ed88780f5c6 (patch)
treea7438c2353382d5d46a391a1a81f7d05f9e83d65 /tests/cfail/resource-not-send-sync.rs
parentb55581dfe35040a4fdc93a1f38c1e1769d4d2535 (diff)
update parser
closes #69 this doesn't change functionality per se but improves diagnostics in some cases. Some hard errors have becomes warnings, for example: when `resources` is empty, or when `idle.path` is set to the default `idle` path.
Diffstat (limited to 'tests/cfail/resource-not-send-sync.rs')
-rw-r--r--tests/cfail/resource-not-send-sync.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cfail/resource-not-send-sync.rs b/tests/cfail/resource-not-send-sync.rs
index 775c78a..60a20db 100644
--- a/tests/cfail/resource-not-send-sync.rs
+++ b/tests/cfail/resource-not-send-sync.rs
@@ -7,7 +7,7 @@
extern crate cortex_m_rtfm as rtfm;
extern crate stm32f103xx;
-use rtfm::{app, Resource, Threshold};
+use rtfm::{app, Threshold};
app! {
device: stm32f103xx,
@@ -43,7 +43,7 @@ fn is_sync<T>(_: &T) where T: Sync {}
fn exti0(_t: &mut Threshold, r: EXTI0::Resources) {
// ERROR resource proxies can't be shared between tasks
is_sync(&r.SHARED);
- //~^ error the trait bound `*const (): core::marker::Sync` is not satisfied
+ //~^ error `*const ()` cannot be shared between threads safely
// ERROR resource proxies are not `Send`able across tasks
is_send(&r.SHARED);