2015-10-21 16:59:24 +00:00
|
|
|
// See rsbegin.rs for details.
|
|
|
|
|
2020-11-23 03:54:31 +00:00
|
|
|
#![feature(no_core)]
|
|
|
|
#![feature(lang_items)]
|
2020-12-30 13:04:59 +00:00
|
|
|
#![feature(auto_traits)]
|
2015-10-18 21:32:50 +00:00
|
|
|
#![crate_type = "rlib"]
|
2016-09-13 05:40:14 +00:00
|
|
|
#![no_core]
|
|
|
|
|
|
|
|
#[lang = "sized"]
|
|
|
|
trait Sized {}
|
|
|
|
#[lang = "sync"]
|
|
|
|
trait Sync {}
|
|
|
|
impl<T> Sync for T {}
|
2017-04-20 21:32:54 +00:00
|
|
|
#[lang = "copy"]
|
|
|
|
trait Copy {}
|
|
|
|
#[lang = "freeze"]
|
2017-12-01 12:01:23 +00:00
|
|
|
auto trait Freeze {}
|
2017-04-20 21:32:54 +00:00
|
|
|
|
2017-09-28 08:30:25 +00:00
|
|
|
#[lang = "drop_in_place"]
|
2017-04-20 21:32:54 +00:00
|
|
|
#[inline]
|
|
|
|
#[allow(unconditional_recursion)]
|
|
|
|
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
|
|
|
|
drop_in_place(to_drop);
|
|
|
|
}
|
2015-10-18 21:32:50 +00:00
|
|
|
|
|
|
|
#[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
|
2016-05-29 15:34:21 +00:00
|
|
|
pub mod eh_frames {
|
2015-10-18 21:32:50 +00:00
|
|
|
// Terminate the frame unwind info section with a 0 as a sentinel;
|
|
|
|
// this would be the 'length' field in a real FDE.
|
|
|
|
#[no_mangle]
|
|
|
|
#[link_section = ".eh_frame"]
|
|
|
|
pub static __EH_FRAME_END__: u32 = 0;
|
|
|
|
}
|