File tree 3 files changed +15
-4
lines changed
3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 22
22
// object (usually called `crtX.o), which then invokes initialization callbacks
23
23
// of other runtime components (registered via yet another special image section).
24
24
25
- #![ feature( no_core, lang_items) ]
25
+ #![ feature( no_core, lang_items, optin_builtin_traits ) ]
26
26
#![ crate_type="rlib" ]
27
27
#![ no_core]
28
28
#![ allow( non_camel_case_types) ]
31
31
trait Sized { }
32
32
#[ lang = "sync" ]
33
33
trait Sync { }
34
+ impl Sync for .. { }
34
35
#[ lang = "copy" ]
35
36
trait Copy { }
36
- impl < T > Sync for T { }
37
+ #[ cfg_attr( not( stage0) , lang = "freeze" ) ]
38
+ trait Freeze { }
39
+ impl Freeze for .. { }
37
40
38
41
#[ cfg( all( target_os="windows" , target_arch = "x86" , target_env="gnu" ) ) ]
39
42
pub mod eh_frames {
Original file line number Diff line number Diff line change 12
12
#![ crate_type = "lib" ]
13
13
// we can compile to a variety of platforms, because we don't need
14
14
// cross-compiled standard libraries.
15
- #![ feature( no_core) ]
15
+ #![ feature( no_core, optin_builtin_traits ) ]
16
16
#![ no_core]
17
17
18
18
#![ feature( repr_simd, simd_ffi, link_llvm_intrinsics, lang_items) ]
@@ -78,3 +78,7 @@ pub trait Copy { }
78
78
pub mod marker {
79
79
pub use Copy ;
80
80
}
81
+
82
+ #[ lang = "freeze" ]
83
+ trait Freeze { }
84
+ impl Freeze for .. { }
Original file line number Diff line number Diff line change 8
8
// option. This file may not be copied, modified, or distributed
9
9
// except according to those terms.
10
10
11
- #![ feature( lang_items, no_core) ]
11
+ #![ feature( lang_items, no_core, optin_builtin_traits ) ]
12
12
#![ no_core]
13
13
14
14
#[ lang="copy" ]
@@ -17,6 +17,10 @@ trait Copy { }
17
17
#[ lang="sized" ]
18
18
trait Sized { }
19
19
20
+ #[ lang = "freeze" ]
21
+ trait Freeze { }
22
+ impl Freeze for .. { }
23
+
20
24
#[ lang="start" ]
21
25
fn start ( _main : * const u8 , _argc : isize , _argv : * const * const u8 ) -> isize { 0 }
22
26
You can’t perform that action at this time.
0 commit comments