File tree Expand file tree Collapse file tree 11 files changed +27
-18
lines changed Expand file tree Collapse file tree 11 files changed +27
-18
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f8de679c1e7de9a099e0c98f6440e6e01978ce7f
2
+ refs/heads/master: 973a2853719ddf5aa23bec8d6aeb41b8a803c7ff
Original file line number Diff line number Diff line change 2
2
Can we bind native things?
3
3
*/
4
4
5
- native "rust " mod rustrt {
5
+ native "cdecl " mod rustrt {
6
6
fn task_yield ( ) ;
7
7
}
8
8
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ fn test_fn() {
117
117
assert ( h1 >= h2) ;
118
118
}
119
119
120
- native "rust " mod native_mod = "" {
120
+ native "cdecl " mod native_mod = "" {
121
121
fn do_gc ( ) ;
122
122
fn unsupervise ( ) ;
123
123
}
Original file line number Diff line number Diff line change
1
+ // xfail-test
2
+
3
+ native "c-stack-cdecl" mod rustrt {
4
+ fn unsupervise ( ) ;
5
+ }
6
+
7
+ fn main ( ) {
8
+ let _foo = rustrt:: unsupervise;
9
+ }
Original file line number Diff line number Diff line change @@ -4,13 +4,13 @@ const b: bool = false;
4
4
const b: bool = true ;
5
5
6
6
#[ cfg( bogus) ]
7
- native "rust " mod rustrt {
7
+ native "c-stack-cdecl " mod rustrt {
8
8
// This symbol doesn't exist and would be a link error if this
9
9
// module was translated
10
10
fn bogus ( ) ;
11
11
}
12
12
13
- native "rust " mod rustrt { }
13
+ native "c-stack-cdecl " mod rustrt { }
14
14
15
15
#[ cfg( bogus) ]
16
16
type t = int ;
@@ -79,7 +79,7 @@ fn test_in_fn_ctxt() {
79
79
}
80
80
81
81
mod test_native_items {
82
- native "rust " mod rustrt {
82
+ native "c-stack-cdecl " mod rustrt {
83
83
#[ cfg( bogus) ]
84
84
fn vec_from_buf_shared<T >( ptr : * T , count : uint) -> [ T ] ;
85
85
fn vec_from_buf_shared < T > ( ptr : * T , count : uint ) -> [ T ] ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ mod spam {
3
3
fn eggs ( ) { }
4
4
}
5
5
6
- native "rust " mod rustrt {
6
+ native "c-stack-cdecl " mod rustrt {
7
7
import spam:: { ham, eggs} ;
8
8
export ham;
9
9
export eggs;
Original file line number Diff line number Diff line change 5
5
use std;
6
6
import std:: task;
7
7
8
- native "rust " mod rustrt {
8
+ native "cdecl " mod rustrt {
9
9
fn task_yield ( ) ;
10
10
}
11
11
12
- fn yield_wrap ( & & _i : ( ) ) unsafe { rustrt:: task_yield ( ) ; }
12
+ fn yield_wrap ( ) { rustrt:: task_yield ( ) ; }
13
13
14
14
fn main ( ) { task:: spawn ( ( ) , yield_wrap) ; }
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ mod test_single_attr_outer {
29
29
mod mod1 { }
30
30
31
31
#[ attr = "val" ]
32
- native "rust " mod rustrt { }
32
+ native "c-stack-cdecl " mod rustrt { }
33
33
34
34
#[ attr = "val" ]
35
35
type t = obj { } ;
@@ -55,7 +55,7 @@ mod test_multi_attr_outer {
55
55
56
56
#[ attr1 = "val" ]
57
57
#[ attr2 = "val" ]
58
- native "rust " mod rustrt { }
58
+ native "c-stack-cdecl " mod rustrt { }
59
59
60
60
#[ attr1 = "val" ]
61
61
#[ attr2 = "val" ]
@@ -83,7 +83,7 @@ mod test_stmt_single_attr_outer {
83
83
}
84
84
85
85
#[attr = "val"]
86
- native "rust " mod rustrt {
86
+ native "c-stack-cdecl " mod rustrt {
87
87
}
88
88
*/
89
89
@@ -116,7 +116,7 @@ mod test_stmt_multi_attr_outer {
116
116
117
117
#[attr1 = "val"]
118
118
#[attr2 = "val"]
119
- native "rust " mod rustrt {
119
+ native "c-stack-cdecl " mod rustrt {
120
120
}
121
121
*/
122
122
@@ -182,7 +182,7 @@ mod test_other_forms {
182
182
}
183
183
184
184
mod test_native_items {
185
- native "rust " mod rustrt {
185
+ native "c-stack-cdecl " mod rustrt {
186
186
#[ attr] ;
187
187
188
188
#[ attr]
Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ native mod libc = target_libc {
10
10
fn free ( int p) -> ( ) ;
11
11
}
12
12
13
- native "rust " mod rustrt {
13
+ native "c-stack-cdecl " mod rustrt {
14
14
fn str_buf ( str s) -> int ;
15
15
}
16
16
Original file line number Diff line number Diff line change 1
1
// xfail-test
2
2
// -*- rust -*-
3
3
4
- native "rust " mod rustrt {
4
+ native "c-stack-cdecl " mod rustrt {
5
5
fn str_buf ( str s) -> int ;
6
6
}
7
7
Original file line number Diff line number Diff line change 1
1
2
2
3
- native "rust " mod rustrt {
3
+ native "c-stack-cdecl " mod rustrt {
4
4
fn unsupervise ( ) ;
5
5
}
6
6
7
- native "rust " mod bar = "" { }
7
+ native "c-stack-cdecl " mod bar = "" { }
8
8
9
9
native "cdecl" mod zed = "" { }
10
10
You can’t perform that action at this time.
0 commit comments