File tree Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Expand file tree Collapse file tree 3 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -11,7 +11,7 @@ mod version;
11
11
12
12
use std:: { env, iter} ;
13
13
14
- use crate :: { phases:: * , util :: * } ;
14
+ use crate :: phases:: * ;
15
15
16
16
fn main ( ) {
17
17
// Rustc does not support non-UTF-8 arguments so we make no attempt either.
Original file line number Diff line number Diff line change @@ -14,13 +14,13 @@ use serde::{Deserialize, Serialize};
14
14
15
15
pub use crate :: arg:: * ;
16
16
17
- pub fn show_error ( msg : & str ) -> ! {
17
+ pub fn show_error ( msg : & impl std :: fmt :: Display ) -> ! {
18
18
eprintln ! ( "fatal error: {msg}" ) ;
19
19
std:: process:: exit ( 1 )
20
20
}
21
21
22
22
macro_rules! show_error {
23
- ( $( $tt: tt) * ) => { show_error( & format !( $( $tt) * ) ) } ;
23
+ ( $( $tt: tt) * ) => { crate :: util :: show_error( & format_args !( $( $tt) * ) ) } ;
24
24
}
25
25
26
26
/// The information to run a crate with the given environment.
Original file line number Diff line number Diff line change @@ -152,13 +152,13 @@ impl rustc_driver::Callbacks for MiriBeRustCompilerCalls {
152
152
}
153
153
}
154
154
155
- fn show_error ( msg : & str ) -> ! {
155
+ fn show_error ( msg : & impl std :: fmt :: Display ) -> ! {
156
156
eprintln ! ( "fatal error: {msg}" ) ;
157
157
std:: process:: exit ( 1 )
158
158
}
159
159
160
160
macro_rules! show_error {
161
- ( $( $tt: tt) * ) => { show_error( & format !( $( $tt) * ) ) } ;
161
+ ( $( $tt: tt) * ) => { show_error( & format_args !( $( $tt) * ) ) } ;
162
162
}
163
163
164
164
fn init_early_loggers ( ) {
You can’t perform that action at this time.
0 commit comments