]> git.lizzy.rs Git - rust.git/blob - library/rtstartup/rsend.rs
Auto merge of #79045 - oli-obk:dont_rely_on_alloc_happening_for_soundness, r=TimDiekmann
[rust.git] / library / rtstartup / rsend.rs
1 // See rsbegin.rs for details.
2
3 #![feature(no_core)]
4 #![feature(lang_items)]
5 #![cfg_attr(bootstrap, feature(optin_builtin_traits))]
6 #![cfg_attr(not(bootstrap), feature(auto_traits))]
7 #![crate_type = "rlib"]
8 #![no_core]
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)]
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 }