We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
print_crate_info
1 parent 446c8e0 commit 5659cc5Copy full SHA for 5659cc5
compiler/rustc_driver_impl/src/lib.rs
@@ -373,15 +373,16 @@ fn run_compiler(
373
374
let handler = EarlyErrorHandler::new(sess.opts.error_format);
375
376
+ let should_stop = print_crate_info(&handler, codegen_backend, sess, has_input);
377
+
378
if !has_input {
- let should_stop = print_crate_info(&handler, codegen_backend, sess, false);
379
if should_stop == Compilation::Continue {
380
handler.early_error("no input filename given")
381
}
382
return sess.compile_status();
383
384
- let should_stop = print_crate_info(&handler, codegen_backend, sess, true)
385
+ let should_stop = should_stop
386
.and_then(|| list_metadata(&handler, sess, &*codegen_backend.metadata_loader()))
387
.and_then(|| try_process_rlink(sess, compiler));
388
0 commit comments