File tree 2 files changed +3
-7
lines changed
2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -34,7 +34,6 @@ extern crate rustc_trait_selection;
34
34
#[ macro_use]
35
35
extern crate tracing;
36
36
37
- use std:: process:: ExitCode ;
38
37
use std:: sync:: atomic:: AtomicPtr ;
39
38
40
39
use rustc_driver:: Callbacks ;
@@ -99,13 +98,10 @@ impl Callbacks for MyCallbacks {
99
98
}
100
99
}
101
100
102
- fn main ( ) -> ExitCode {
101
+ fn main ( ) {
103
102
let handler = EarlyDiagCtxt :: new ( ErrorOutputType :: default ( ) ) ;
104
103
rustc_driver:: init_logger ( & handler, rustc_log:: LoggerConfig :: from_env ( "KLINT_LOG" ) ) ;
105
104
let args: Vec < _ > = std:: env:: args ( ) . collect ( ) ;
106
105
107
- match rustc_driver:: RunCompiler :: new ( & args, & mut MyCallbacks ) . run ( ) {
108
- Ok ( _) => ExitCode :: SUCCESS ,
109
- Err ( _) => ExitCode :: FAILURE ,
110
- }
106
+ rustc_driver:: RunCompiler :: new ( & args, & mut MyCallbacks ) . run ( ) ;
111
107
}
Original file line number Diff line number Diff line change @@ -917,7 +917,7 @@ pub fn find_vtable_types_for_unsizing<'tcx>(
917
917
}
918
918
919
919
fn create_fn_mono_item < ' tcx > (
920
- tcx : TyCtxt < ' tcx > ,
920
+ _tcx : TyCtxt < ' tcx > ,
921
921
instance : Instance < ' tcx > ,
922
922
source : Span ,
923
923
) -> Spanned < MonoItem < ' tcx > > {
You can’t perform that action at this time.
0 commit comments