This commit is contained in:
Jorge Aparicio 2017-11-22 09:40:36 +01:00
parent 948e1fd0fb
commit e90cf07dd6
3 changed files with 2 additions and 4 deletions

View file

@ -3,12 +3,12 @@ set -euxo pipefail
main() {
if [ $TARGET = x86_64-unknown-linux-gnu ]; then
cargo build
cargo test --tests
cargo test --test cfail
return
fi
xargo build --target $TARGET
xargo test --target $TARGET --examples
xargo check --target $TARGET --examples
}
main

View file

@ -9,7 +9,6 @@ use rtfm::app;
app! {
//~^ error no associated item named `EXTI33` found for type
//~| error no associated item named `EXTI33` found for type
device: stm32f103xx,
tasks: {

View file

@ -39,7 +39,6 @@ fn idle() -> ! {
fn exti0(mut ot: &mut Threshold, r: EXTI0::Resources) {
r.A.claim(&mut ot, |_a, mut _it| {
//~^ error cannot borrow `ot` as mutable more than once at a time
//~| error cannot borrow `ot` as mutable more than once at a time
// ERROR must use inner token `it` instead of the outer one (`ot`)
r.B.claim(&mut ot, |_b, _| {})
});