File tree Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Expand file tree Collapse file tree 7 files changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ impl CargoOutput {
46
46
warnings : true ,
47
47
output : OutputKind :: Forward ,
48
48
debug : match std:: env:: var_os ( "CC_ENABLE_DEBUG_OUTPUT" ) {
49
- Some ( v) => v != "0" && v != "false" && v != "" ,
49
+ Some ( v) => v != "0" && v != "false" && !v . is_empty ( ) ,
50
50
None => false ,
51
51
} ,
52
52
checked_dbg_var : Arc :: new ( AtomicBool :: new ( false ) ) ,
Original file line number Diff line number Diff line change @@ -185,7 +185,7 @@ impl<'this> RustcCodegenFlags<'this> {
185
185
} ;
186
186
187
187
let clang_or_gnu =
188
- matches ! ( family, ToolFamily :: Clang { .. } ) || matches ! ( family, ToolFamily :: Gnu { .. } ) ;
188
+ matches ! ( family, ToolFamily :: Clang { .. } ) || matches ! ( family, ToolFamily :: Gnu ) ;
189
189
190
190
// Flags shared between clang and gnu
191
191
if clang_or_gnu {
@@ -315,7 +315,7 @@ impl<'this> RustcCodegenFlags<'this> {
315
315
}
316
316
}
317
317
}
318
- ToolFamily :: Gnu { .. } => { }
318
+ ToolFamily :: Gnu => { }
319
319
ToolFamily :: Msvc { .. } => {
320
320
// https://learn.microsoft.com/en-us/cpp/build/reference/guard-enable-control-flow-guard
321
321
if let Some ( value) = self . control_flow_guard {
Original file line number Diff line number Diff line change @@ -80,7 +80,7 @@ mod inherited_jobserver {
80
80
81
81
pub ( super ) struct JobServer {
82
82
/// Implicit token for this process which is obtained and will be
83
- /// released in parent. Since JobTokens only give back what they got,
83
+ /// released in parent. Since ` JobTokens` only give back what they got,
84
84
/// there should be at most one global implicit token in the wild.
85
85
///
86
86
/// Since Rust does not execute any `Drop` for global variables,
@@ -164,7 +164,7 @@ mod inherited_jobserver {
164
164
helper_thread : Option < HelperThread > ,
165
165
}
166
166
167
- impl < ' a > ActiveJobServer < ' a > {
167
+ impl ActiveJobServer < ' _ > {
168
168
pub ( super ) async fn acquire ( & mut self ) -> Result < JobToken , Error > {
169
169
let mut has_requested_token = false ;
170
170
Original file line number Diff line number Diff line change 1
1
#![ cfg_attr( target_family = "wasm" , allow( unused) ) ]
2
- /// Helpers functions for [ChildStderr].
2
+ /// Helpers functions for [` ChildStderr` ].
3
3
use std:: { convert:: TryInto , process:: ChildStderr } ;
4
4
5
5
use crate :: { Error , ErrorKind } ;
Original file line number Diff line number Diff line change @@ -475,13 +475,13 @@ mod tests {
475
475
let ( full_arch, _rest) = target. split_once ( '-' ) . expect ( "target to have arch" ) ;
476
476
477
477
let mut target = TargetInfo {
478
- full_arch : full_arch . into ( ) ,
479
- arch : "invalid-none-set" . into ( ) ,
480
- vendor : "invalid-none-set" . into ( ) ,
481
- os : "invalid-none-set" . into ( ) ,
482
- env : "invalid-none-set" . into ( ) ,
478
+ full_arch,
479
+ arch : "invalid-none-set" ,
480
+ vendor : "invalid-none-set" ,
481
+ os : "invalid-none-set" ,
482
+ env : "invalid-none-set" ,
483
483
// Not set in older Rust versions
484
- abi : "" . into ( ) ,
484
+ abi : "" ,
485
485
} ;
486
486
487
487
for cfg in cfgs. lines ( ) {
Original file line number Diff line number Diff line change @@ -117,7 +117,7 @@ fn clang_cl() {
117
117
for exe_suffix in [ "" , ".exe" ] {
118
118
let test = Test :: clang ( ) ;
119
119
let bin = format ! ( "clang{exe_suffix}" ) ;
120
- env:: set_var ( "CC" , & format ! ( "{bin} --driver-mode=cl" ) ) ;
120
+ env:: set_var ( "CC" , format ! ( "{bin} --driver-mode=cl" ) ) ;
121
121
let test_compiler = |build : cc:: Build | {
122
122
let compiler = build. get_compiler ( ) ;
123
123
assert_eq ! ( compiler. path( ) , Path :: new( & * bin) ) ;
Original file line number Diff line number Diff line change @@ -532,8 +532,8 @@ fn gnu_apple_sysroot() {
532
532
test. shim ( "fake-gcc" )
533
533
. gcc ( )
534
534
. compiler ( "fake-gcc" )
535
- . target ( & target)
536
- . host ( & target)
535
+ . target ( target)
536
+ . host ( target)
537
537
. file ( "foo.c" )
538
538
. compile ( "foo" ) ;
539
539
You can’t perform that action at this time.
0 commit comments