File tree Expand file tree Collapse file tree 9 files changed +120
-99
lines changed Expand file tree Collapse file tree 9 files changed +120
-99
lines changed Original file line number Diff line number Diff line change 2
2
refs/heads/master: c081ffbd1e845687202a975ea2e698b623e5722f
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: 79a2b2eafc3c766cecec8a5f76317693bae9ed17
5
- refs/heads/try: 0b90493f7e49cd575dfeddd6c0a7a27911cd4ed3
5
+ refs/heads/try: 91aeecf7e38e01a9e323683c39649e201a9f726c
6
6
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
7
7
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8
8
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
Original file line number Diff line number Diff line change @@ -1725,6 +1725,7 @@ pub mod funcs {
1725
1725
findFileData : HANDLE )
1726
1726
-> BOOL ;
1727
1727
unsafe fn FindClose ( findFile : HANDLE ) -> BOOL ;
1728
+ unsafe fn CloseHandle ( hObject : HANDLE ) -> BOOL ;
1728
1729
unsafe fn TerminateProcess ( hProcess : HANDLE , uExitCode : c_uint ) -> BOOL ;
1729
1730
}
1730
1731
}
Original file line number Diff line number Diff line change @@ -301,53 +301,40 @@ impl num::One for f32 {
301
301
302
302
#[ cfg( notest) ]
303
303
impl Add < f32 , f32 > for f32 {
304
- #[ inline( always) ]
305
304
fn add ( & self , other : & f32 ) -> f32 { * self + * other }
306
305
}
307
-
308
306
#[ cfg( notest) ]
309
307
impl Sub < f32 , f32 > for f32 {
310
- #[ inline( always) ]
311
308
fn sub ( & self , other : & f32 ) -> f32 { * self - * other }
312
309
}
313
-
314
310
#[ cfg( notest) ]
315
311
impl Mul < f32 , f32 > for f32 {
316
- #[ inline( always) ]
317
312
fn mul ( & self , other : & f32 ) -> f32 { * self * * other }
318
313
}
319
-
320
314
#[ cfg( stage0, notest) ]
321
315
impl Div < f32 , f32 > for f32 {
322
- #[ inline( always) ]
323
316
fn div ( & self , other : & f32 ) -> f32 { * self / * other }
324
317
}
325
-
326
318
#[ cfg( stage1, notest) ]
327
319
#[ cfg( stage2, notest) ]
328
320
#[ cfg( stage3, notest) ]
329
321
impl Quot < f32 , f32 > for f32 {
330
322
#[ inline( always) ]
331
323
fn quot ( & self , other : & f32 ) -> f32 { * self / * other }
332
324
}
333
-
334
325
#[ cfg( stage0, notest) ]
335
326
impl Modulo < f32 , f32 > for f32 {
336
- #[ inline( always) ]
337
327
fn modulo ( & self , other : & f32 ) -> f32 { * self % * other }
338
328
}
339
-
340
329
#[ cfg( stage1, notest) ]
341
330
#[ cfg( stage2, notest) ]
342
331
#[ cfg( stage3, notest) ]
343
332
impl Rem < f32 , f32 > for f32 {
344
333
#[ inline( always) ]
345
334
fn rem ( & self , other : & f32 ) -> f32 { * self % * other }
346
335
}
347
-
348
336
#[ cfg( notest) ]
349
337
impl Neg < f32 > for f32 {
350
- #[ inline( always) ]
351
338
fn neg ( & self ) -> f32 { -* self }
352
339
}
353
340
Original file line number Diff line number Diff line change @@ -455,25 +455,18 @@ impl num::Round for float {
455
455
456
456
#[cfg(notest)]
457
457
impl Add<float,float> for float {
458
- #[inline(always)]
459
458
fn add(&self, other: &float) -> float { *self + *other }
460
459
}
461
-
462
460
#[cfg(notest)]
463
461
impl Sub<float,float> for float {
464
- #[inline(always)]
465
462
fn sub(&self, other: &float) -> float { *self - *other }
466
463
}
467
-
468
464
#[cfg(notest)]
469
465
impl Mul<float,float> for float {
470
- #[inline(always)]
471
466
fn mul(&self, other: &float) -> float { *self * *other }
472
467
}
473
-
474
468
#[cfg(stage0,notest)]
475
469
impl Div<float,float> for float {
476
- #[inline(always)]
477
470
fn div(&self, other: &float) -> float { *self / *other }
478
471
}
479
472
#[cfg(stage1,notest)]
@@ -485,7 +478,6 @@ impl Quot<float,float> for float {
485
478
}
486
479
#[cfg(stage0,notest)]
487
480
impl Modulo<float,float> for float {
488
- #[inline(always)]
489
481
fn modulo(&self, other: &float) -> float { *self % *other }
490
482
}
491
483
#[cfg(stage1,notest)]
@@ -497,7 +489,6 @@ impl Rem<float,float> for float {
497
489
}
498
490
#[cfg(notest)]
499
491
impl Neg<float> for float {
500
- #[inline(always)]
501
492
fn neg(&self) -> float { -*self }
502
493
}
503
494
Original file line number Diff line number Diff line change @@ -175,53 +175,40 @@ impl num::One for T {
175
175
176
176
#[cfg(notest)]
177
177
impl Add<T,T> for T {
178
- #[inline(always)]
179
178
fn add(&self, other: &T) -> T { *self + *other }
180
179
}
181
-
182
180
#[cfg(notest)]
183
181
impl Sub<T,T> for T {
184
- #[inline(always)]
185
182
fn sub(&self, other: &T) -> T { *self - *other }
186
183
}
187
-
188
184
#[cfg(notest)]
189
185
impl Mul<T,T> for T {
190
- #[inline(always)]
191
186
fn mul(&self, other: &T) -> T { *self * *other }
192
187
}
193
-
194
188
#[cfg(stage0,notest)]
195
189
impl Div<T,T> for T {
196
- #[inline(always)]
197
190
fn div(&self, other: &T) -> T { *self / *other }
198
191
}
199
-
200
192
#[cfg(stage1,notest)]
201
193
#[cfg(stage2,notest)]
202
194
#[cfg(stage3,notest)]
203
195
impl Quot<T,T> for T {
204
196
#[inline(always)]
205
197
fn quot(&self, other: &T) -> T { *self / *other }
206
198
}
207
-
208
199
#[cfg(stage0,notest)]
209
200
impl Modulo<T,T> for T {
210
- #[inline(always)]
211
201
fn modulo(&self, other: &T) -> T { *self % *other }
212
202
}
213
-
214
203
#[cfg(stage1,notest)]
215
204
#[cfg(stage2,notest)]
216
205
#[cfg(stage3,notest)]
217
206
impl Rem<T,T> for T {
218
207
#[inline(always)]
219
208
fn rem(&self, other: &T) -> T { *self % *other }
220
209
}
221
-
222
210
#[cfg(notest)]
223
211
impl Neg<T> for T {
224
- #[inline(always)]
225
212
fn neg(&self) -> T { -*self }
226
213
}
227
214
@@ -230,31 +217,26 @@ impl BitOr<T,T> for T {
230
217
#[inline(always)]
231
218
fn bitor(&self, other: &T) -> T { *self | *other }
232
219
}
233
-
234
220
#[cfg(notest)]
235
221
impl BitAnd<T,T> for T {
236
222
#[inline(always)]
237
223
fn bitand(&self, other: &T) -> T { *self & *other }
238
224
}
239
-
240
225
#[cfg(notest)]
241
226
impl BitXor<T,T> for T {
242
227
#[inline(always)]
243
228
fn bitxor(&self, other: &T) -> T { *self ^ *other }
244
229
}
245
-
246
230
#[cfg(notest)]
247
231
impl Shl<T,T> for T {
248
232
#[inline(always)]
249
233
fn shl(&self, other: &T) -> T { *self << *other }
250
234
}
251
-
252
235
#[cfg(notest)]
253
236
impl Shr<T,T> for T {
254
237
#[inline(always)]
255
238
fn shr(&self, other: &T) -> T { *self >> *other }
256
239
}
257
-
258
240
#[cfg(notest)]
259
241
impl Not<T> for T {
260
242
#[inline(always)]
Original file line number Diff line number Diff line change @@ -140,53 +140,40 @@ impl num::One for T {
140
140
141
141
#[cfg(notest)]
142
142
impl Add<T,T> for T {
143
- #[inline(always)]
144
143
fn add(&self, other: &T) -> T { *self + *other }
145
144
}
146
-
147
145
#[cfg(notest)]
148
146
impl Sub<T,T> for T {
149
- #[inline(always)]
150
147
fn sub(&self, other: &T) -> T { *self - *other }
151
148
}
152
-
153
149
#[cfg(notest)]
154
150
impl Mul<T,T> for T {
155
- #[inline(always)]
156
151
fn mul(&self, other: &T) -> T { *self * *other }
157
152
}
158
-
159
153
#[cfg(stage0,notest)]
160
154
impl Div<T,T> for T {
161
- #[inline(always)]
162
155
fn div(&self, other: &T) -> T { *self / *other }
163
156
}
164
-
165
157
#[cfg(stage1,notest)]
166
158
#[cfg(stage2,notest)]
167
159
#[cfg(stage3,notest)]
168
160
impl Quot<T,T> for T {
169
161
#[inline(always)]
170
162
fn quot(&self, other: &T) -> T { *self / *other }
171
163
}
172
-
173
164
#[cfg(stage0,notest)]
174
165
impl Modulo<T,T> for T {
175
- #[inline(always)]
176
166
fn modulo(&self, other: &T) -> T { *self % *other }
177
167
}
178
-
179
168
#[cfg(stage1,notest)]
180
169
#[cfg(stage2,notest)]
181
170
#[cfg(stage3,notest)]
182
171
impl Rem<T,T> for T {
183
172
#[inline(always)]
184
173
fn rem(&self, other: &T) -> T { *self % *other }
185
174
}
186
-
187
175
#[cfg(notest)]
188
176
impl Neg<T> for T {
189
- #[inline(always)]
190
177
fn neg(&self) -> T { -*self }
191
178
}
192
179
@@ -195,31 +182,26 @@ impl BitOr<T,T> for T {
195
182
#[inline(always)]
196
183
fn bitor(&self, other: &T) -> T { *self | *other }
197
184
}
198
-
199
185
#[cfg(notest)]
200
186
impl BitAnd<T,T> for T {
201
187
#[inline(always)]
202
188
fn bitand(&self, other: &T) -> T { *self & *other }
203
189
}
204
-
205
190
#[cfg(notest)]
206
191
impl BitXor<T,T> for T {
207
192
#[inline(always)]
208
193
fn bitxor(&self, other: &T) -> T { *self ^ *other }
209
194
}
210
-
211
195
#[cfg(notest)]
212
196
impl Shl<T,T> for T {
213
197
#[inline(always)]
214
198
fn shl(&self, other: &T) -> T { *self << *other }
215
199
}
216
-
217
200
#[cfg(notest)]
218
201
impl Shr<T,T> for T {
219
202
#[inline(always)]
220
203
fn shr(&self, other: &T) -> T { *self >> *other }
221
204
}
222
-
223
205
#[cfg(notest)]
224
206
impl Not<T> for T {
225
207
#[inline(always)]
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ pub mod rustrt {
60
60
unsafe fn rust_get_argv ( ) -> * * c_char ;
61
61
unsafe fn rust_path_is_dir ( path : * libc:: c_char ) -> c_int ;
62
62
unsafe fn rust_path_exists ( path : * libc:: c_char ) -> c_int ;
63
- unsafe fn rust_process_wait ( handle : c_int ) -> c_int ;
63
+ unsafe fn rust_process_wait ( pid : c_int ) -> c_int ;
64
64
unsafe fn rust_set_exit_status ( code : libc:: intptr_t ) ;
65
65
}
66
66
}
@@ -356,7 +356,11 @@ pub fn fsync_fd(fd: c_int, _l: io::fsync::Level) -> c_int {
356
356
#[ cfg( windows) ]
357
357
pub fn waitpid ( pid : pid_t ) -> c_int {
358
358
unsafe {
359
- return rustrt:: rust_process_wait ( pid) ;
359
+ let status = rustrt:: rust_process_wait ( pid) ;
360
+ if status < 0 {
361
+ fail ! ( fmt!( "failure in rust_process_wait: %s" , last_os_error( ) ) ) ;
362
+ }
363
+ return status;
360
364
}
361
365
}
362
366
You can’t perform that action at this time.
0 commit comments