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