Enable #[ffi_const]

This commit is contained in:
Matthias Schiffer 2020-05-30 10:22:35 +02:00
parent 554275d781
commit 58260af4d8
Signed by: neocturne
GPG key ID: 16EF3F64CB201D9C
2 changed files with 2 additions and 2 deletions

View file

@ -7,7 +7,7 @@ use core::fmt;
pub struct Errno(pub libc::c_int); pub struct Errno(pub libc::c_int);
extern "C" { extern "C" {
//#[ffi_const] #[ffi_const]
pub fn __errno_location() -> *mut libc::c_int; pub fn __errno_location() -> *mut libc::c_int;
} }

View file

@ -1,7 +1,7 @@
#![no_std] #![no_std]
#![feature(extern_types)] #![feature(extern_types)]
#![feature(slice_ptr_len)] #![feature(slice_ptr_len)]
// #![feature(ffi_const)] #![feature(ffi_const)]
extern crate alloc; extern crate alloc;