diff options
| author | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-04-18 11:02:21 +0300 |
|---|---|---|
| committer | Eduard-Mihai Burtescu <edy.burt@gmail.com> | 2017-04-21 15:48:35 +0300 |
| commit | 89bd3f39cadbbe0b361303ddbda2796ea7f39bb9 (patch) | |
| tree | b809a22a401c99d878918570ee1cc2b73ebca1cb /src/rtstartup | |
| parent | 0adfd810f8aa16ce9e63f6feae182db0ba4833ef (diff) | |
Update #[no_core] users with the "freeze" lang item.
Diffstat (limited to 'src/rtstartup')
| -rw-r--r-- | src/rtstartup/rsbegin.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/rtstartup/rsbegin.rs b/src/rtstartup/rsbegin.rs index 65c85697ce7..e8b92aab1da 100644 --- a/src/rtstartup/rsbegin.rs +++ b/src/rtstartup/rsbegin.rs @@ -22,7 +22,7 @@ // object (usually called `crtX.o), which then invokes initialization callbacks // of other runtime components (registered via yet another special image section). -#![feature(no_core, lang_items)] +#![feature(no_core, lang_items, optin_builtin_traits)] #![crate_type="rlib"] #![no_core] #![allow(non_camel_case_types)] @@ -31,9 +31,12 @@ trait Sized {} #[lang = "sync"] trait Sync {} +impl Sync for .. {} #[lang = "copy"] trait Copy {} -impl<T> Sync for T {} +#[cfg_attr(not(stage0), lang = "freeze")] +trait Freeze {} +impl Freeze for .. {} #[cfg(all(target_os="windows", target_arch = "x86", target_env="gnu"))] pub mod eh_frames { |
