]> git.lizzy.rs Git - rust.git/blob - src/rtstartup/rsend.rs
Make drop-glue take advantage of -Zshare-generics.
[rust.git] / src / rtstartup / rsend.rs
1 // See rsbegin.rs for details.
2
3 #![feature(no_core, lang_items, optin_builtin_traits)]
4 #![crate_type = "rlib"]
5 #![no_core]
6
7 #[lang = "sized"]
8 trait Sized {}
9 #[lang = "sync"]
10 trait Sync {}
11 impl<T> Sync for T {}
12 #[lang = "copy"]
13 trait Copy {}
14 #[lang = "freeze"]
15 auto trait Freeze {}
16
17 #[lang = "drop_in_place"]
18 #[inline]
19 #[allow(unconditional_recursion)]
20 pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
21     drop_in_place(to_drop);
22 }
23
24 #[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
25 pub mod eh_frames {
26     // Terminate the frame unwind info section with a 0 as a sentinel;
27     // this would be the 'length' field in a real FDE.
28     #[no_mangle]
29     #[link_section = ".eh_frame"]
30     pub static __EH_FRAME_END__: u32 = 0;
31 }