@@ -68,7 +68,7 @@ fn init_early_loggers() {
68
68
fn init_late_loggers ( tcx : TyCtxt < ' _ > ) {
69
69
// We initialize loggers right before we start evaluation. We overwrite the `RUSTC_LOG`
70
70
// 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!`.)
72
72
if let Ok ( var) = env:: var ( "MIRI_LOG" ) {
73
73
if env:: var_os ( "RUSTC_LOG" ) . is_none ( ) {
74
74
// 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> {
123
123
}
124
124
125
125
/// 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 ) ) -> ! {
127
127
// Make sure we use the right default sysroot. The default sysroot is wrong,
128
128
// because `get_or_default_sysroot` in `librustc_session` bases that on `current_exe`.
129
129
//
@@ -152,7 +152,7 @@ fn run_compiler(mut args: Vec<String>, callbacks: &mut (dyn rustc_driver::Callba
152
152
Ok ( ( ) ) => rustc_driver:: EXIT_SUCCESS ,
153
153
Err ( _) => rustc_driver:: EXIT_FAILURE ,
154
154
} ;
155
- std:: process:: exit ( exit_code) ;
155
+ std:: process:: exit ( exit_code)
156
156
}
157
157
158
158
fn main ( ) {
@@ -163,7 +163,7 @@ fn main() {
163
163
rustc_driver:: init_rustc_env_logger ( ) ;
164
164
// We cannot use `rustc_driver::main` as we need to adjust the CLI arguments.
165
165
let mut callbacks = rustc_driver:: TimePassesCallbacks :: default ( ) ;
166
- return run_compiler ( env:: args ( ) . collect ( ) , & mut callbacks) ;
166
+ run_compiler ( env:: args ( ) . collect ( ) , & mut callbacks)
167
167
}
168
168
169
169
// Init loggers the Miri way.
@@ -285,5 +285,5 @@ fn main() {
285
285
tracked_pointer_tag,
286
286
tracked_alloc_id,
287
287
} ;
288
- return run_compiler ( rustc_args, & mut MiriCompilerCalls { miri_config } ) ;
288
+ run_compiler ( rustc_args, & mut MiriCompilerCalls { miri_config } )
289
289
}
0 commit comments