]> git.proxmox.com Git - rustc.git/blobdiff - src/rtstartup/rsbegin.rs
New upstream version 1.13.0+dfsg1
[rustc.git] / src / rtstartup / rsbegin.rs
index 150abc226e6859a323b117a36df4d8d6e2f6b368..b57b7e8432167b7c442540c920cecbdac708aacb 100644 (file)
 // object (usually called `crtX.o), which then invokes initialization callbacks
 // of other runtime components (registered via yet another special image section).
 
+#![feature(no_core, lang_items)]
 #![crate_type="rlib"]
-#![no_std]
+#![no_core]
 #![allow(non_camel_case_types)]
 
+#[lang = "sized"]
+trait Sized {}
+#[lang = "sync"]
+trait Sync {}
+#[lang = "copy"]
+trait Copy {}
+impl<T> Sync for T {}
+
 #[cfg(all(target_os="windows", target_arch = "x86", target_env="gnu"))]
 pub mod eh_frames {
     #[no_mangle]