File tree 1 file changed +1
-18
lines changed
1 file changed +1
-18
lines changed Original file line number Diff line number Diff line change @@ -102,26 +102,9 @@ impl Callbacks for MyCallbacks {
102
102
}
103
103
}
104
104
105
- fn probe_sysroot ( ) -> String {
106
- std:: process:: Command :: new ( "rustc" )
107
- . arg ( "+1.68.2" )
108
- . arg ( "--print" )
109
- . arg ( "sysroot" )
110
- . output ( )
111
- . ok ( )
112
- . and_then ( |out| String :: from_utf8 ( out. stdout ) . ok ( ) )
113
- . map ( |x| x. trim ( ) . to_owned ( ) )
114
- . expect ( "failed to probe rust sysroot" )
115
- }
116
-
117
105
fn main ( ) -> ExitCode {
118
106
rustc_driver:: init_env_logger ( "KLINT_LOG" ) ;
119
- let mut args: Vec < _ > = std:: env:: args ( ) . collect ( ) ;
120
-
121
- if !args. iter ( ) . any ( |x| x == "--sysroot" ) {
122
- args. push ( "--sysroot" . to_owned ( ) ) ;
123
- args. push ( probe_sysroot ( ) ) ;
124
- }
107
+ let args: Vec < _ > = std:: env:: args ( ) . collect ( ) ;
125
108
126
109
match rustc_driver:: RunCompiler :: new ( & args, & mut MyCallbacks ) . run ( ) {
127
110
Ok ( _) => ExitCode :: SUCCESS ,
You can’t perform that action at this time.
0 commit comments