mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 10:05:06 +03:00
43 lines
1017 B
Rust
43 lines
1017 B
Rust
// See rsbegin.rs for details.
|
|
|
|
#![feature(no_core)]
|
|
#![feature(lang_items)]
|
|
#![feature(auto_traits)]
|
|
#![crate_type = "rlib"]
|
|
#![no_core]
|
|
#![allow(internal_features)]
|
|
#![warn(unreachable_pub)]
|
|
|
|
#[lang = "pointee_sized"]
|
|
pub trait PointeeSized {}
|
|
|
|
#[lang = "meta_sized"]
|
|
pub trait MetaSized: PointeeSized {}
|
|
|
|
#[lang = "sized"]
|
|
pub trait Sized: MetaSized {}
|
|
|
|
#[lang = "sync"]
|
|
trait Sync {}
|
|
impl<T> Sync for T {}
|
|
#[lang = "copy"]
|
|
trait Copy {}
|
|
#[lang = "freeze"]
|
|
auto trait Freeze {}
|
|
|
|
impl<T: PointeeSized> Copy for *mut T {}
|
|
|
|
#[cfg_attr(not(bootstrap), lang = "drop_glue")]
|
|
#[cfg_attr(bootstrap, lang = "drop_in_place")]
|
|
#[inline]
|
|
pub unsafe fn drop_glue<T: PointeeSized>(_to_drop: &mut T) {}
|
|
|
|
#[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))]
|
|
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]
|
|
#[unsafe(link_section = ".eh_frame")]
|
|
pub static __EH_FRAME_END__: u32 = 0;
|
|
}
|