Skip to content

Commit 75ab3a8

Browse files
Stabilize rustdoc theme options
1 parent c7bc0bf commit 75ab3a8

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

src/librustdoc/config.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,9 @@ impl Options {
366366
.iter()
367367
.map(|s| (PathBuf::from(&s), s.to_owned())) {
368368
if !theme_file.is_file() {
369-
diag.struct_err("option --themes arguments must all be files").emit();
369+
diag.struct_err(&format!("invalid file: \"{}\"", theme_s))
370+
.help("option --themes arguments must all be files")
371+
.emit();
370372
return Err(1);
371373
}
372374
let (success, ret) = theme::test_theme_against(&theme_file, &paths, &diag);

src/librustdoc/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -247,12 +247,12 @@ fn opts() -> Vec<RustcOptGroup> {
247247
o.optflag("", "sort-modules-by-appearance", "sort modules by where they appear in the \
248248
program, rather than alphabetically")
249249
}),
250-
unstable("themes", |o| {
250+
stable("themes", |o| {
251251
o.optmulti("", "themes",
252252
"additional themes which will be added to the generated docs",
253253
"FILES")
254254
}),
255-
unstable("theme-checker", |o| {
255+
stable("theme-checker", |o| {
256256
o.optmulti("", "theme-checker",
257257
"check if given theme is valid",
258258
"FILES")

0 commit comments

Comments
 (0)