Fix warnings
This commit is contained in:
parent
36895d362c
commit
9704d0bf23
@ -3,8 +3,10 @@
|
|||||||
#![feature(naked_functions)]
|
#![feature(naked_functions)]
|
||||||
// lang_items is an internal feature. `internal_features` lint is added recently
|
// lang_items is an internal feature. `internal_features` lint is added recently
|
||||||
// so also allow unknown lints to prevent warning in older nightly versions.
|
// so also allow unknown lints to prevent warning in older nightly versions.
|
||||||
#![allow(unknown_lints)]
|
#![cfg_attr(
|
||||||
#![allow(internal_features)]
|
any(feature = "personality", feature = "personality-dummy"),
|
||||||
|
allow(internal_features)
|
||||||
|
)]
|
||||||
#![cfg_attr(
|
#![cfg_attr(
|
||||||
any(feature = "personality", feature = "personality-dummy"),
|
any(feature = "personality", feature = "personality-dummy"),
|
||||||
feature(lang_items)
|
feature(lang_items)
|
||||||
|
@ -25,7 +25,7 @@ pub use libc::c_int;
|
|||||||
pub type c_int = i32;
|
pub type c_int = i32;
|
||||||
|
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
any(feature = "panicking", feature = "panic-handler-dummy"),
|
any(feature = "panic", feature = "panic-handler-dummy"),
|
||||||
feature = "libc"
|
feature = "libc"
|
||||||
))]
|
))]
|
||||||
pub fn abort() -> ! {
|
pub fn abort() -> ! {
|
||||||
@ -33,7 +33,7 @@ pub fn abort() -> ! {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(all(
|
#[cfg(all(
|
||||||
any(feature = "panicking", feature = "panic-handler-dummy"),
|
any(feature = "panic", feature = "panic-handler-dummy"),
|
||||||
not(feature = "libc")
|
not(feature = "libc")
|
||||||
))]
|
))]
|
||||||
pub fn abort() -> ! {
|
pub fn abort() -> ! {
|
||||||
|
Loading…
Reference in New Issue
Block a user