@@ -7,7 +7,9 @@ use std::str::{self, FromStr};
7
7
use crate :: core:: compiler:: Kind ;
8
8
use crate :: core:: TargetKind ;
9
9
use crate :: util:: CfgExpr ;
10
- use crate :: util:: { CargoResult , CargoResultExt , Cfg , Config , ProcessBuilder , Rustc , process as process_} ;
10
+ use crate :: util:: {
11
+ process as process_, CargoResult , CargoResultExt , Cfg , Config , ProcessBuilder , Rustc ,
12
+ } ;
11
13
12
14
/// Information about the platform target gleaned from querying rustc.
13
15
///
@@ -35,7 +37,7 @@ pub struct TargetInfo {
35
37
/// Extra flags to pass to `rustdoc`, see `env_args`.
36
38
pub rustdocflags : Vec < String > ,
37
39
pub supports_pipelining : Option < bool > ,
38
- pub supports_rustdoc_crate_type : bool
40
+ pub supports_rustdoc_crate_type : bool ,
39
41
}
40
42
41
43
/// Kind of each file generated by a Unit, part of `FileType`.
@@ -119,8 +121,7 @@ impl TargetInfo {
119
121
// on rustdoc rides to stable.
120
122
let mut crate_type_test = process_ ( config. rustdoc ( ) ?) ;
121
123
crate_type_test. args ( & [ "--crate-type" , "proc-macro" , "--help" ] ) ;
122
- let supports_rustdoc_crate_type = crate_type_test. exec_with_output ( )
123
- . is_ok ( ) ;
124
+ let supports_rustdoc_crate_type = crate_type_test. exec_with_output ( ) . is_ok ( ) ;
124
125
125
126
let target_triple = requested_target
126
127
. as_ref ( )
@@ -212,7 +213,7 @@ impl TargetInfo {
212
213
) ?,
213
214
cfg,
214
215
supports_pipelining,
215
- supports_rustdoc_crate_type
216
+ supports_rustdoc_crate_type,
216
217
} )
217
218
}
218
219
0 commit comments