Revert "workarounds to make link guards work on windows"

This reverts commit b52004d202ddfffa100d4963216e1673a0be0b95.
This commit is contained in:
Niko Matsakis 2016-03-24 10:03:50 -04:00
parent 4c527457f1
commit 814477a893
3 changed files with 3 additions and 19 deletions

View File

@ -23,20 +23,9 @@
// of other runtime components (registered via yet another special image section).
#![crate_type="rlib"]
#![feature(no_core, lang_items, optin_builtin_traits)]
#![no_core]
#![no_std]
#![allow(non_camel_case_types)]
#[lang="sized"]
trait Sized {}
#[lang="copy"]
trait Copy {}
#[lang="sync"]
trait Sync {}
impl Sync for .. {}
#[cfg(all(target_os="windows", target_arch = "x86", target_env="gnu"))]
pub mod eh_frames
{

View File

@ -11,12 +11,7 @@
// See rsbegin.rs for details.
#![crate_type="rlib"]
#![feature(no_core, lang_items, optin_builtin_traits)]
#![no_core]
#[lang="sync"]
trait Sync {}
impl Sync for .. {}
#![no_std]
#[cfg(all(target_os="windows", target_arch = "x86", target_env="gnu"))]
pub mod eh_frames

View File

@ -22,7 +22,7 @@ extern "rust-intrinsic" { fn transmute<T, U>(t: T) -> U; }
#[lang = "eh_personality"] extern fn eh_personality() {}
#[lang = "eh_unwind_resume"] extern fn eh_unwind_resume() {}
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! { loop {} }
#[lang = "panic_fmt"] fn panic_fmt() -> ! { loop {} }
#[no_mangle] pub extern fn rust_eh_register_frames () {}
#[no_mangle] pub extern fn rust_eh_unregister_frames () {}