forked from M-Labs/libfringe
remove extern crate core
and prelude imports
the latest Rust nightly makes this unnecessary
This commit is contained in:
parent
1a4c22c02d
commit
e290a8bbaf
@ -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;
|
||||||
|
@ -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 {}
|
||||||
|
@ -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};
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user