File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1813,11 +1813,11 @@ impl Config {
1813
1813
self . download_rustc_commit ( ) . is_some ( )
1814
1814
}
1815
1815
1816
- pub ( crate ) fn download_rustc_commit ( & self ) -> Option < & ' static str > {
1816
+ pub ( crate ) fn download_rustc_commit ( & self ) -> Option < & str > {
1817
1817
static DOWNLOAD_RUSTC : OnceCell < Option < String > > = OnceCell :: new ( ) ;
1818
1818
if self . dry_run ( ) && DOWNLOAD_RUSTC . get ( ) . is_none ( ) {
1819
1819
// avoid trying to actually download the commit
1820
- return None ;
1820
+ return self . download_rustc_commit . as_deref ( ) ;
1821
1821
}
1822
1822
1823
1823
DOWNLOAD_RUSTC
Original file line number Diff line number Diff line change @@ -402,6 +402,10 @@ impl Config {
402
402
403
403
fn ci_component_contents ( & self , stamp_file : & str ) -> Vec < String > {
404
404
assert ! ( self . download_rustc( ) ) ;
405
+ if self . dry_run ( ) {
406
+ return vec ! [ ] ;
407
+ }
408
+
405
409
let ci_rustc_dir = self . out . join ( & * self . build . triple ) . join ( "ci-rustc" ) ;
406
410
let stamp_file = ci_rustc_dir. join ( stamp_file) ;
407
411
let contents_file = t ! ( File :: open( & stamp_file) , stamp_file. display( ) . to_string( ) ) ;
You can’t perform that action at this time.
0 commit comments