File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -44,7 +44,6 @@ use std::default::Default;
44
44
use std:: env;
45
45
use std:: panic;
46
46
use std:: process;
47
- use std:: sync:: mpsc:: channel;
48
47
49
48
use rustc:: session:: { early_warn, early_error} ;
50
49
use rustc:: session:: config:: { ErrorOutputType , RustcOptGroup } ;
@@ -452,8 +451,6 @@ where R: 'static + Send,
452
451
// First, parse the crate and extract all relevant information.
453
452
info ! ( "starting to run rustc" ) ;
454
453
455
- let ( tx, rx) = channel ( ) ;
456
-
457
454
let result = rustc_driver:: report_ices_to_stderr_if_any ( move || {
458
455
let crate_name = options. crate_name . clone ( ) ;
459
456
let crate_version = options. crate_version . clone ( ) ;
@@ -467,15 +464,15 @@ where R: 'static + Send,
467
464
468
465
krate. version = crate_version;
469
466
470
- tx . send ( f ( Output {
467
+ f ( Output {
471
468
krate : krate,
472
469
renderinfo : renderinfo,
473
470
renderopts,
474
- } ) ) . unwrap ( ) ;
471
+ } )
475
472
} ) ;
476
473
477
474
match result {
478
- Ok ( ( ) ) => rx . recv ( ) . unwrap ( ) ,
475
+ Ok ( output ) => output ,
479
476
Err ( _) => panic:: resume_unwind ( Box :: new ( errors:: FatalErrorMarker ) ) ,
480
477
}
481
478
}
You can’t perform that action at this time.
0 commit comments