blob: d5aca80edf9e00d5cfcc8468e8354215f554e7d8 [file] [log] [blame]
Vadim Chugunovd710f8b2015-10-21 16:59:241// See rsbegin.rs for details.
2
Camelid810324d2020-11-23 03:54:313#![feature(no_core)]
4#![feature(lang_items)]
Mark Rousskovfe031182020-12-30 13:04:595#![feature(auto_traits)]
Mark Rousskova06baa52019-12-22 22:42:046#![crate_type = "rlib"]
Alex Crichton58416782016-09-13 05:40:147#![no_core]
8
9#[lang = "sized"]
10trait Sized {}
11#[lang = "sync"]
12trait Sync {}
13impl<T> Sync for T {}
Alex Crichton5daf5572017-04-20 21:32:5414#[lang = "copy"]
15trait Copy {}
16#[lang = "freeze"]
leonardo.yvensf93183a2017-12-01 12:01:2317auto trait Freeze {}
Alex Crichton5daf5572017-04-20 21:32:5418
Havvy20fc2152017-09-28 08:30:2519#[lang = "drop_in_place"]
Alex Crichton5daf5572017-04-20 21:32:5420#[inline]
21#[allow(unconditional_recursion)]
22pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
23 drop_in_place(to_drop);
24}
Vadim Chugunovbd0cf1b2015-10-18 21:32:5025
Mark Rousskova06baa52019-12-22 22:42:0426#[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
Srinivas Reddy Thatiparthy36964d42016-05-29 15:34:2127pub mod eh_frames {
Vadim Chugunovbd0cf1b2015-10-18 21:32:5028 // 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}