xref: /aosp_15_r20/prebuilts/rust/linux-x86/1.80.1/src/stdlibs/library/rtstartup/rsend.rs (revision b40554a23088fb75aa6945dfe8e65169c8484da3)
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 #![allow(internal_features)]
9 
10 #[lang = "sized"]
11 trait Sized {}
12 #[lang = "sync"]
13 trait Sync {}
14 impl<T> Sync for T {}
15 #[lang = "copy"]
16 trait Copy {}
17 #[lang = "freeze"]
18 auto trait Freeze {}
19 
20 #[lang = "drop_in_place"]
21 #[inline]
22 #[allow(unconditional_recursion)]
drop_in_place<T: ?Sized>(to_drop: *mut T)23 pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
24     drop_in_place(to_drop);
25 }
26 
27 #[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
28 pub mod eh_frames {
29     // Terminate the frame unwind info section with a 0 as a sentinel;
30     // this would be the 'length' field in a real FDE.
31     #[no_mangle]
32     #[link_section = ".eh_frame"]
33     pub static __EH_FRAME_END__: u32 = 0;
34 }
35