]> git.lizzy.rs Git - rust.git/blob - src/rtstartup/rsend.rs
Auto merge of #45072 - nikomatsakis:issue-38714, r=arielb1
[rust.git] / src / rtstartup / rsend.rs
1 // Copyright 2015 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
4 //
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
10
11 // See rsbegin.rs for details.
12
13 #![feature(no_core, lang_items, optin_builtin_traits)]
14 #![crate_type="rlib"]
15 #![no_core]
16
17 #[lang = "sized"]
18 trait Sized {}
19 #[lang = "sync"]
20 trait Sync {}
21 impl<T> Sync for T {}
22 #[lang = "copy"]
23 trait Copy {}
24 #[lang = "freeze"]
25 trait Freeze {}
26 #[allow(unknown_lints)]
27 #[allow(auto_impl)]
28 impl Freeze for .. {}
29
30 #[lang = "drop_in_place"]
31 #[inline]
32 #[allow(unconditional_recursion)]
33 pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
34     drop_in_place(to_drop);
35 }
36
37 #[cfg(all(target_os="windows", target_arch = "x86", target_env="gnu"))]
38 pub mod eh_frames {
39     // Terminate the frame unwind info section with a 0 as a sentinel;
40     // this would be the 'length' field in a real FDE.
41     #[no_mangle]
42     #[link_section = ".eh_frame"]
43     pub static __EH_FRAME_END__: u32 = 0;
44 }