@@ -68,7 +68,7 @@ fn init_early_loggers() {
6868fn init_late_loggers ( tcx : TyCtxt < ' _ > ) {
6969 // We initialize loggers right before we start evaluation. We overwrite the `RUSTC_LOG`
7070 // env var if it is not set, control it based on `MIRI_LOG`.
71- // (FIXE : use `var_os`, but then we need to manually concatenate instead of `format!`.)
71+ // (FIXME : use `var_os`, but then we need to manually concatenate instead of `format!`.)
7272 if let Ok ( var) = env:: var ( "MIRI_LOG" ) {
7373 if env:: var_os ( "RUSTC_LOG" ) . is_none ( ) {
7474 // We try to be a bit clever here: if `MIRI_LOG` is just a single level
@@ -123,7 +123,7 @@ fn compile_time_sysroot() -> Option<String> {
123123}
124124
125125/// Execute a compiler with the given CLI arguments and callbacks.
126- fn run_compiler ( mut args : Vec < String > , callbacks : & mut ( dyn rustc_driver:: Callbacks + Send ) ) {
126+ fn run_compiler ( mut args : Vec < String > , callbacks : & mut ( dyn rustc_driver:: Callbacks + Send ) ) -> ! {
127127 // Make sure we use the right default sysroot. The default sysroot is wrong,
128128 // because `get_or_default_sysroot` in `librustc_session` bases that on `current_exe`.
129129 //
@@ -152,7 +152,7 @@ fn run_compiler(mut args: Vec<String>, callbacks: &mut (dyn rustc_driver::Callba
152152 Ok ( ( ) ) => rustc_driver:: EXIT_SUCCESS ,
153153 Err ( _) => rustc_driver:: EXIT_FAILURE ,
154154 } ;
155- std:: process:: exit ( exit_code) ;
155+ std:: process:: exit ( exit_code)
156156}
157157
158158fn main ( ) {
@@ -163,7 +163,7 @@ fn main() {
163163 rustc_driver:: init_rustc_env_logger ( ) ;
164164 // We cannot use `rustc_driver::main` as we need to adjust the CLI arguments.
165165 let mut callbacks = rustc_driver:: TimePassesCallbacks :: default ( ) ;
166- return run_compiler ( env:: args ( ) . collect ( ) , & mut callbacks) ;
166+ run_compiler ( env:: args ( ) . collect ( ) , & mut callbacks)
167167 }
168168
169169 // Init loggers the Miri way.
@@ -285,5 +285,5 @@ fn main() {
285285 tracked_pointer_tag,
286286 tracked_alloc_id,
287287 } ;
288- return run_compiler ( rustc_args, & mut MiriCompilerCalls { miri_config } ) ;
288+ run_compiler ( rustc_args, & mut MiriCompilerCalls { miri_config } )
289289}
0 commit comments