File tree Expand file tree Collapse file tree 3 files changed +9
-58
lines changed
branches/snap-stage3/src/test Expand file tree Collapse file tree 3 files changed +9
-58
lines changed Original file line number Diff line number Diff line change 1
1
---
2
2
refs/heads/master: c044791d80ea0dc5c4b57b6030a67b69f8510239
3
- refs/heads/snap-stage3: 9e3cb6447596049464292c0afa8c4b9a0cb8c806
3
+ refs/heads/snap-stage3: 759a7f1f66490191a6f809c9709151d6d27cea87
4
4
refs/heads/try: b53c0f93eedcdedd4fd89bccc5a3a09d1c5cd23e
5
5
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
6
6
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
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( no_std) ]
11
+ #![ feature( no_std, core , libc ) ]
12
12
#![ no_std]
13
13
#![ feature( lang_items) ]
14
14
15
- #[ lang="sized" ]
16
- pub trait Sized { }
17
-
18
- #[ lang="panic" ]
19
- fn panic ( _: & ( & ' static str , & ' static str , usize ) ) -> ! { loop { } }
15
+ extern crate core;
16
+ extern crate libc;
20
17
21
18
#[ lang = "stack_exhausted" ]
22
19
extern fn stack_exhausted ( ) { }
23
20
24
21
#[ lang = "eh_personality" ]
25
22
extern fn eh_personality ( ) { }
26
23
27
- #[ lang="copy" ]
28
- pub trait Copy {
29
- // Empty.
30
- }
31
-
32
- #[ lang="rem" ]
33
- pub trait Rem < RHS =Self > {
34
- type Output = Self ;
35
- fn rem ( self , rhs : RHS ) -> Self :: Output ;
36
- }
37
-
38
- impl Rem for isize {
39
- type Output = isize ;
40
-
41
- #[ inline]
42
- fn rem ( self , other : isize ) -> isize {
43
- // if you use `self % other` here, as one would expect, you
44
- // get back an error because of potential failure/overflow,
45
- // which tries to invoke error fns that don't have the
46
- // appropriate signatures anymore. So...just return 0.
47
- 0
48
- }
24
+ #[ lang = "panic_fmt" ]
25
+ extern fn rust_begin_unwind ( msg : core:: fmt:: Arguments , file : & ' static str ,
26
+ line : u32 ) -> ! {
27
+ loop { }
49
28
}
Original file line number Diff line number Diff line change 11
11
// aux-build:lang-item-public.rs
12
12
// ignore-android
13
13
14
- #![ feature( lang_items , start, no_std) ]
14
+ #![ feature( start, no_std) ]
15
15
#![ no_std]
16
16
17
17
extern crate lang_item_public as lang_lib;
18
18
19
- #[ cfg( target_os = "linux" ) ]
20
- #[ link( name = "c" ) ]
21
- extern { }
22
-
23
- #[ cfg( target_os = "android" ) ]
24
- #[ link( name = "c" ) ]
25
- extern { }
26
-
27
- #[ cfg( target_os = "freebsd" ) ]
28
- #[ link( name = "execinfo" ) ]
29
- extern { }
30
-
31
- #[ cfg( target_os = "freebsd" ) ]
32
- #[ link( name = "c" ) ]
33
- extern { }
34
-
35
- #[ cfg( target_os = "dragonfly" ) ]
36
- #[ link( name = "c" ) ]
37
- extern { }
38
-
39
- #[ cfg( any( target_os = "bitrig" , target_os = "openbsd" ) ) ]
40
- #[ link( name = "c" ) ]
41
- extern { }
42
-
43
- #[ cfg( target_os = "macos" ) ]
44
- #[ link( name = "System" ) ]
45
- extern { }
46
-
47
19
#[ start]
48
20
fn main ( _: isize , _: * const * const u8 ) -> isize {
49
21
1_isize % 1_isize
You can’t perform that action at this time.
0 commit comments