This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ fn alias_and_path_for_library() {
234
234
) ;
235
235
assert_eq ! (
236
236
first( cache. all:: <doc:: Std >( ) ) ,
237
- & [ doc_std!( TEST_TRIPLE_1 => TEST_TRIPLE_1 , stage = 0 ) ]
237
+ & [ doc_std!( TEST_TRIPLE_1 => TEST_TRIPLE_1 , stage = 1 ) ]
238
238
) ;
239
239
}
240
240
@@ -392,14 +392,14 @@ mod defaults {
392
392
assert_eq ! ( first( cache. all:: <doc:: ErrorIndex >( ) ) , & [ doc:: ErrorIndex { target: a } , ] ) ;
393
393
assert_eq ! (
394
394
first( cache. all:: <tool:: ErrorIndex >( ) ) ,
395
- & [ tool:: ErrorIndex { compiler: Compiler :: new( 0 , a) } ]
395
+ & [ tool:: ErrorIndex { compiler: Compiler :: new( 1 , a) } ]
396
396
) ;
397
397
// docs should be built with the beta compiler, not with the stage0 artifacts.
398
398
// recall that rustdoc is off-by-one: `stage` is the compiler rustdoc is _linked_ to,
399
399
// not the one it was built by.
400
400
assert_eq ! (
401
401
first( cache. all:: <tool:: Rustdoc >( ) ) ,
402
- & [ tool:: Rustdoc { compiler: Compiler :: new( 0 , a) } , ]
402
+ & [ tool:: Rustdoc { compiler: Compiler :: new( 1 , a) } , ]
403
403
) ;
404
404
}
405
405
}
Original file line number Diff line number Diff line change @@ -415,6 +415,7 @@ pub fn dir_is_empty(dir: &Path) -> bool {
415
415
/// the "y" part from the string.
416
416
pub fn extract_beta_rev ( version : & str ) -> Option < String > {
417
417
let parts = version. splitn ( 2 , "-beta." ) . collect :: < Vec < _ > > ( ) ;
418
+ #[ allow( clippy:: let_and_return) ]
418
419
let count = parts. get ( 1 ) . and_then ( |s| s. find ( ' ' ) . map ( |p| s[ ..p] . to_string ( ) ) ) ;
419
420
420
421
count
You can’t perform that action at this time.
0 commit comments