rust/library/rtstartup/rsend.rs

32 lines
758 B
Rust
Raw Normal View History

2015-10-22 00:59:24 +08:00
// See rsbegin.rs for details.
#![feature(no_core, lang_items, optin_builtin_traits)]
2019-12-23 06:42:04 +08:00
#![crate_type = "rlib"]
#![no_core]
#[lang = "sized"]
trait Sized {}
#[lang = "sync"]
trait Sync {}
impl<T> Sync for T {}
#[lang = "copy"]
trait Copy {}
#[lang = "freeze"]
auto trait Freeze {}
2017-09-28 16:30:25 +08:00
#[lang = "drop_in_place"]
#[inline]
#[allow(unconditional_recursion)]
pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
drop_in_place(to_drop);
}
2019-12-23 06:42:04 +08:00
#[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
2016-05-29 23:34:21 +08:00
pub mod eh_frames {
// 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;
}