remove `extern crate core` and prelude imports

the latest Rust nightly makes this unnecessary
pull/1/head
edef 2015-08-26 00:19:53 +02:00
parent 1a4c22c02d
commit e290a8bbaf
8 changed files with 1 additions and 12 deletions

View File

@ -1,7 +1,6 @@
// This file is part of libfringe, a low-level green threading library. // This file is part of libfringe, a low-level green threading library.
// Copyright (c) 2015, edef <edef@edef.eu> // Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
use core::prelude::*;
use core::mem::{size_of, align_of}; use core::mem::{size_of, align_of};
use core::cmp::max; use core::cmp::max;
use core::ptr; use core::ptr;

View File

@ -1,7 +1,6 @@
// This file is part of libfringe, a low-level green threading library. // This file is part of libfringe, a low-level green threading library.
// Copyright (c) 2015, edef <edef@edef.eu> // Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
use core::prelude::*;
pub use self::imp::Registers; pub use self::imp::Registers;
unsafe impl Send for Registers {} unsafe impl Send for Registers {}

View File

@ -1,8 +1,6 @@
// This file is part of libfringe, a low-level green threading library. // This file is part of libfringe, a low-level green threading library.
// Copyright (c) 2015, edef <edef@edef.eu> // Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
use core::prelude::*;
use stack::Stack; use stack::Stack;
use super::common::{push, rust_trampoline}; use super::common::{push, rust_trampoline};

View File

@ -1,7 +1,6 @@
// This file is part of libfringe, a low-level green threading library. // This file is part of libfringe, a low-level green threading library.
// Copyright (c) 2015, edef <edef@edef.eu> // Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
use core::prelude::*;
use core::marker::PhantomData; use core::marker::PhantomData;
use arch::Registers; use arch::Registers;
use stack; use stack;

View File

@ -1,7 +1,6 @@
// This file is part of libfringe, a low-level green threading library. // This file is part of libfringe, a low-level green threading library.
// Copyright (c) 2015, edef <edef@edef.eu> // Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
use core::prelude::*;
use stack; use stack;
mod valgrind; mod valgrind;

View File

@ -2,15 +2,12 @@
// Copyright (c) 2015, edef <edef@edef.eu> // Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
#![feature(no_std)] #![feature(no_std)]
#![feature(asm, core, core_prelude)] #![feature(asm, core)]
#![no_std] #![no_std]
//! libfringe is a low-level green threading library. //! libfringe is a low-level green threading library.
//! It provides only a context-swapping mechanism. //! It provides only a context-swapping mechanism.
#[macro_use]
extern crate core;
#[cfg(test)] #[cfg(test)]
#[macro_use] #[macro_use]
extern crate std; extern crate std;

View File

@ -3,7 +3,6 @@
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
extern crate std; extern crate std;
use core::prelude::*;
use self::std::io::Error as IoError; use self::std::io::Error as IoError;
use stack; use stack;
mod sys; mod sys;

View File

@ -2,7 +2,6 @@
// Copyright (c) 2015, edef <edef@edef.eu> // Copyright (c) 2015, edef <edef@edef.eu>
// See the LICENSE file included in this distribution. // See the LICENSE file included in this distribution.
extern crate libc; extern crate libc;
use core::prelude::*;
use self::libc::{c_void, c_int, size_t}; use self::libc::{c_void, c_int, size_t};
use self::libc::{mmap, mprotect, munmap}; use self::libc::{mmap, mprotect, munmap};
use self::libc::MAP_FAILED; use self::libc::MAP_FAILED;