Skip to content

Commit b917d64

Browse files
committed
move code to the 2018 edition
closes #1
1 parent eba03d8 commit b917d64

File tree

19 files changed

+86
-25
lines changed

19 files changed

+86
-25
lines changed

ci/exceptions/app/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
cargo-features = ["edition"]
2+
13
[package]
4+
authors = ["Jorge Aparicio <jorge@japaric.io>"]
5+
edition = "2018"
26
name = "app"
37
version = "0.1.0"
4-
authors = ["Jorge Aparicio <jorge@japaric.io>"]
58

69
[dependencies]
710
rt = { path = "../rt" }

ci/exceptions/app/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
#![no_main]
33
#![no_std]
44

5-
#[macro_use]
6-
extern crate rt;
7-
85
use core::intrinsics;
96

7+
use rt::entry;
8+
109
entry!(main);
1110

1211
fn main() -> ! {

ci/exceptions/app2/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
#![no_main]
33
#![no_std]
44

5-
#[macro_use]
6-
extern crate rt;
7-
85
use core::intrinsics;
96

7+
use rt::entry;
8+
109
entry!(main);
1110

1211
fn main() -> ! {

ci/exceptions/rt/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ pub unsafe extern "C" fn Reset() -> ! {
3737
pub static RESET_VECTOR: unsafe extern "C" fn() -> ! = Reset;
3838

3939
#[panic_handler]
40-
fn panic(_panic: &PanicInfo) -> ! {
40+
fn panic(_panic: &PanicInfo<'_>) -> ! {
4141
loop {}
4242
}
4343

ci/main/app/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1+
cargo-features = ["edition"] # <-
2+
13
[package]
4+
edition = "2018" # <-
25
name = "app"
36
version = "0.1.0"
47
authors = ["Jorge Aparicio <jorge@japaric.io>"]

ci/main/app2/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#![no_std]
22
#![no_main]
33

4-
#[macro_use]
5-
extern crate rt;
4+
use rt::entry;
65

76
entry!(main);
87

ci/main/app3/src/main.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
#![no_std]
22
#![no_main]
33

4-
#[macro_use]
5-
extern crate rt;
4+
use rt::entry;
65

76
entry!(main);
87

ci/main/app4/Cargo.toml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,10 @@
1+
cargo-features = ["edition"]
2+
13
[package]
4+
authors = ["Jorge Aparicio <jorge@japaric.io>"]
5+
edition = "2018"
26
name = "app"
37
version = "0.1.0"
4-
authors = ["Jorge Aparicio <jorge@japaric.io>"]
58

69
[dependencies]
710
rt = { path = "../rt2" }

ci/main/app4/src/main.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,10 @@
22
#![no_main]
33
#![no_std]
44

5-
#[macro_use]
6-
extern crate rt;
7-
85
use core::ptr;
96

7+
use rt::entry;
8+
109
entry!(main);
1110

1211
static mut DATA: i32 = 1;

ci/main/rt/Cargo.toml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
cargo-features = ["edition"]
2+
13
[package]
2-
name = "rt"
3-
version = "0.1.0"
4+
name = "rt" # <-
45
authors = ["Jorge Aparicio <jorge@japaric.io>"]
6+
edition = "2018"
7+
version = "0.1.0"
58

69
[dependencies]

0 commit comments

Comments
 (0)