File tree 3 files changed +4
-5
lines changed
3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -561,8 +561,7 @@ impl<'a> Builder<'a> {
561
561
self . run_step_descriptions ( & Builder :: get_step_descriptions ( self . kind ) , & self . paths ) ;
562
562
}
563
563
564
- pub fn default_doc ( & self , paths : Option < & [ PathBuf ] > ) {
565
- let paths = paths. unwrap_or ( & [ ] ) ;
564
+ pub fn default_doc ( & self , paths : & [ PathBuf ] ) {
566
565
self . run_step_descriptions ( & Builder :: get_step_descriptions ( Kind :: Doc ) , paths) ;
567
566
}
568
567
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ impl Step for Docs {
68
68
if !builder. config . docs {
69
69
return None ;
70
70
}
71
- builder. default_doc ( None ) ;
71
+ builder. default_doc ( & [ ] ) ;
72
72
73
73
let dest = "share/doc/rust/html" ;
74
74
@@ -103,7 +103,7 @@ impl Step for RustcDocs {
103
103
if !builder. config . compiler_docs {
104
104
return None ;
105
105
}
106
- builder. default_doc ( None ) ;
106
+ builder. default_doc ( & [ ] ) ;
107
107
108
108
let mut tarball = Tarball :: new ( builder, "rustc-docs" , & host. triple ) ;
109
109
tarball. set_product_name ( "Rustc Documentation" ) ;
Original file line number Diff line number Diff line change @@ -111,7 +111,7 @@ impl Step for Linkcheck {
111
111
112
112
builder. info ( & format ! ( "Linkcheck ({})" , host) ) ;
113
113
114
- builder. default_doc ( None ) ;
114
+ builder. default_doc ( & [ ] ) ;
115
115
116
116
let _time = util:: timeit ( & builder) ;
117
117
try_run (
You can’t perform that action at this time.
0 commit comments