File tree Expand file tree Collapse file tree 3 files changed +2
-19
lines changed Expand file tree Collapse file tree 3 files changed +2
-19
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ categories = ["concurrency"]
16
16
# Some dependencies may not be their latest version, in order to support older rustc.
17
17
[dependencies ]
18
18
num_cpus = " 1.2"
19
- libc = " 0.2.16"
20
19
lazy_static = " 1"
21
20
crossbeam-deque = " 0.6.3"
22
21
crossbeam-queue = " 0.1.2"
Original file line number Diff line number Diff line change @@ -35,7 +35,6 @@ extern crate crossbeam_deque;
35
35
extern crate crossbeam_queue;
36
36
#[ macro_use]
37
37
extern crate lazy_static;
38
- extern crate libc;
39
38
extern crate num_cpus;
40
39
41
40
#[ cfg( test) ]
Original file line number Diff line number Diff line change 3
3
//! accidental panics in the rayon code itself.
4
4
5
5
use std:: any:: Any ;
6
- use std:: io:: prelude:: * ;
7
- use std:: io:: stderr;
8
6
use std:: panic:: { self , AssertUnwindSafe } ;
9
7
use std:: thread;
10
8
@@ -25,22 +23,9 @@ pub fn resume_unwinding(payload: Box<Any + Send>) -> ! {
25
23
26
24
pub struct AbortIfPanic ;
27
25
28
- fn aborting ( ) {
29
- let _ = writeln ! ( & mut stderr( ) , "Rayon: detected unexpected panic; aborting" ) ;
30
- }
31
-
32
26
impl Drop for AbortIfPanic {
33
- #[ cfg( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ]
34
- fn drop ( & mut self ) {
35
- aborting ( ) ;
36
- :: std:: process:: abort ( ) ; // stable in rust 1.17
37
- }
38
-
39
- #[ cfg( not( all( target_arch = "wasm32" , not( target_os = "emscripten" ) ) ) ) ]
40
27
fn drop ( & mut self ) {
41
- aborting ( ) ;
42
- unsafe {
43
- :: libc:: abort ( ) ; // used for compat before 1.17
44
- }
28
+ eprintln ! ( "Rayon: detected unexpected panic; aborting" ) ;
29
+ :: std:: process:: abort ( ) ;
45
30
}
46
31
}
You can’t perform that action at this time.
0 commit comments