Vadim Chugunov | d710f8b | 2015-10-21 16:59:24 | [diff] [blame] | 1 | // See rsbegin.rs for details. |
| 2 | |
Camelid | 810324d | 2020-11-23 03:54:31 | [diff] [blame] | 3 | #![feature(no_core)] |
| 4 | #![feature(lang_items)] |
Mark Rousskov | fe03118 | 2020-12-30 13:04:59 | [diff] [blame] | 5 | #![feature(auto_traits)] |
Mark Rousskov | a06baa5 | 2019-12-22 22:42:04 | [diff] [blame] | 6 | #![crate_type = "rlib"] |
Alex Crichton | 5841678 | 2016-09-13 05:40:14 | [diff] [blame] | 7 | #![no_core] |
| 8 | |
| 9 | #[lang = "sized"] |
| 10 | trait Sized {} |
| 11 | #[lang = "sync"] |
| 12 | trait Sync {} |
| 13 | impl<T> Sync for T {} |
Alex Crichton | 5daf557 | 2017-04-20 21:32:54 | [diff] [blame] | 14 | #[lang = "copy"] |
| 15 | trait Copy {} |
| 16 | #[lang = "freeze"] |
leonardo.yvens | f93183a | 2017-12-01 12:01:23 | [diff] [blame] | 17 | auto trait Freeze {} |
Alex Crichton | 5daf557 | 2017-04-20 21:32:54 | [diff] [blame] | 18 | |
Havvy | 20fc215 | 2017-09-28 08:30:25 | [diff] [blame] | 19 | #[lang = "drop_in_place"] |
Alex Crichton | 5daf557 | 2017-04-20 21:32:54 | [diff] [blame] | 20 | #[inline] |
| 21 | #[allow(unconditional_recursion)] |
| 22 | pub unsafe fn drop_in_place<T: ?Sized>(to_drop: *mut T) { |
| 23 | drop_in_place(to_drop); |
| 24 | } |
Vadim Chugunov | bd0cf1b | 2015-10-18 21:32:50 | [diff] [blame] | 25 | |
Mark Rousskov | a06baa5 | 2019-12-22 22:42:04 | [diff] [blame] | 26 | #[cfg(all(target_os = "windows", target_arch = "x86", target_env = "gnu"))] |
Srinivas Reddy Thatiparthy | 36964d4 | 2016-05-29 15:34:21 | [diff] [blame] | 27 | pub mod eh_frames { |
Vadim Chugunov | bd0cf1b | 2015-10-18 21:32:50 | [diff] [blame] | 28 | // Terminate the frame unwind info section with a 0 as a sentinel; |
| 29 | // this would be the 'length' field in a real FDE. |
| 30 | #[no_mangle] |
| 31 | #[link_section = ".eh_frame"] |
| 32 | pub static __EH_FRAME_END__: u32 = 0; |
| 33 | } |