Skip to content

Commit

Permalink
Fixes for rust nightly change to behavior of no_std[1]
Browse files Browse the repository at this point in the history
  • Loading branch information
mokus0 committed Aug 16, 2015
1 parent b55adef commit f2425e2
Show file tree
Hide file tree
Showing 18 changed files with 1 addition and 19 deletions.
1 change: 0 additions & 1 deletion examples/blink_k20/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_zinc)]

extern crate core;
extern crate zinc;

use core::option::Option::Some;
Expand Down
1 change: 0 additions & 1 deletion examples/blink_k20_isr/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
#![feature(no_std, core, start, core_intrinsics)]
#![no_std]

extern crate core;
extern crate zinc;

use core::intrinsics::volatile_load;
Expand Down
1 change: 0 additions & 1 deletion examples/blink_lpc17xx/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_zinc)]

extern crate core;
extern crate zinc;

use core::option::Option::Some;
Expand Down
1 change: 0 additions & 1 deletion examples/blink_pt/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_platformtree)]

extern crate core;
extern crate zinc;

platformtree!(
Expand Down
1 change: 0 additions & 1 deletion examples/blink_stm32f4/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_zinc)]

extern crate core;
extern crate zinc;

use zinc::hal::timer::Timer;
Expand Down
1 change: 0 additions & 1 deletion examples/blink_stm32l1/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_zinc)]

extern crate core;
extern crate zinc;

#[zinc_main]
Expand Down
1 change: 0 additions & 1 deletion examples/blink_tiva_c/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_platformtree)]

extern crate core;
extern crate zinc;

platformtree!(
Expand Down
1 change: 0 additions & 1 deletion examples/bluenrg_stm32l1/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
//! Sample application for BlueNRG communication over SPI in X-NUCLEO-IDB04A1
//! extension board for NUCLEO-L152RE

#[macro_use] extern crate core;
extern crate zinc;

use core::intrinsics::abort;
Expand Down
1 change: 0 additions & 1 deletion examples/dht22/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![no_std]
#![plugin(macro_platformtree)]

extern crate core;
extern crate zinc;
#[macro_use] #[no_link] extern crate macro_platformtree;

Expand Down
1 change: 0 additions & 1 deletion examples/empty/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_zinc)]

extern crate core;
extern crate zinc;

use zinc::hal::mem_init::{init_data, init_stack};
Expand Down
1 change: 0 additions & 1 deletion examples/lcd_tiva_c/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![no_std]
#![plugin(macro_platformtree)]

extern crate core;
extern crate zinc;
#[macro_use] #[no_link] extern crate macro_platformtree;

Expand Down
1 change: 0 additions & 1 deletion examples/uart/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![no_std]
#![plugin(macro_platformtree)]

extern crate core;
extern crate zinc;
#[macro_use] #[no_link] extern crate macro_platformtree;

Expand Down
1 change: 0 additions & 1 deletion examples/uart_tiva_c/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
#![no_std]
#![plugin(macro_platformtree)]

extern crate core;
extern crate zinc;
#[macro_use] #[no_link] extern crate macro_platformtree;

Expand Down
1 change: 0 additions & 1 deletion examples/usart_stm32l1/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
#![no_std]
#![plugin(macro_zinc)]

extern crate core;
extern crate zinc;

#[zinc_main]
Expand Down
1 change: 0 additions & 1 deletion ioreg/tests/test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#![feature(core, plugin)]
#![plugin(ioreg)]

extern crate core;
extern crate volatile_cell;

#[cfg(test)]
Expand Down
1 change: 0 additions & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ STM32F403/407).
#![plugin(ioreg)]
#![feature(no_std)]

#[macro_use] extern crate core;
#[cfg(target_os = "none")]
extern crate rlibc;

Expand Down
1 change: 0 additions & 1 deletion src/util/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
#![crate_type="staticlib"]
#![no_std]

extern crate core;
extern crate zinc;
extern crate app;

Expand Down
3 changes: 1 addition & 2 deletions volatile_cell/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@

//! A cell that with volatile setter and getter.

#![feature(core, no_std, core_intrinsics)]
#![feature(no_std, core_intrinsics)]
#![no_std]

extern crate core;

#[cfg(feature="replayer")] #[macro_use(expect)] extern crate expectest;
#[cfg(feature="replayer")] #[macro_use] extern crate std;
Expand Down

0 comments on commit f2425e2

Please sign in to comment.