Skip to content

Commit 09275b5

Browse files
committed
libpanic_abort => 2018
1 parent 2efa31b commit 09275b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/libpanic_abort/Cargo.toml

+1
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
authors = ["The Rust Project Developers"]
33
name = "panic_abort"
44
version = "0.0.0"
5+
edition = "2018"
56

67
[lib]
78
path = "lib.rs"

src/libpanic_abort/lib.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,12 @@
1010
html_root_url = "https://doc.rust-lang.org/nightly/",
1111
issue_tracker_base_url = "https://github.com/rust-lang/rust/issues/")]
1212
#![panic_runtime]
13+
1314
#![allow(unused_features)]
15+
#![deny(rust_2018_idioms)]
1416

1517
#![feature(core_intrinsics)]
1618
#![feature(libc)]
17-
#![feature(nll)]
1819
#![feature(panic_runtime)]
1920
#![feature(staged_api)]
2021
#![feature(rustc_attrs)]
@@ -46,7 +47,6 @@ pub unsafe extern fn __rust_start_panic(_payload: usize) -> u32 {
4647

4748
#[cfg(any(unix, target_os = "cloudabi"))]
4849
unsafe fn abort() -> ! {
49-
extern crate libc;
5050
libc::abort();
5151
}
5252

0 commit comments

Comments
 (0)