]> git.lizzy.rs Git - rust.git/blob - src/rtstartup/rsend.rs
Auto merge of #36445 - infinity0:master, r=brson
[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)]
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
23 #[cfg(all(target_os="windows", target_arch = "x86", target_env="gnu"))]
24 pub mod eh_frames {
25     // Terminate the frame unwind info section with a 0 as a sentinel;
26     // this would be the 'length' field in a real FDE.
27     #[no_mangle]
28     #[link_section = ".eh_frame"]
29     pub static __EH_FRAME_END__: u32 = 0;
30 }