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.
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.
11 // See rsbegin.rs for details.
13 #![feature(no_core, lang_items, optin_builtin_traits)]
26 #[allow(unknown_lints)]
30 #[lang = "drop_in_place"]
32 #[allow(unconditional_recursion)]
33 pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) {
34 drop_in_place(to_drop);
37 #[cfg(all(target_os="windows", target_arch = "x86", target_env="gnu"))]
39 // Terminate the frame unwind info section with a 0 as a sentinel;
40 // this would be the 'length' field in a real FDE.
42 #[link_section = ".eh_frame"]
43 pub static __EH_FRAME_END__: u32 = 0;