Skip to content

Commit add6204

Browse files
Stabilize rustdoc theme options
1 parent 9b0214d commit add6204

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
@@ -364,7 +364,9 @@ impl Options {
364364
.iter()
365365
.map(|s| (PathBuf::from(&s), s.to_owned())) {
366366
if !theme_file.is_file() {
367-
diag.struct_err("option --themes arguments must all be files").emit();
367+
diag.struct_err(&format!("invalid file: \"{}\"", theme_s))
368+
.help("option --themes arguments must all be files")
369+
.emit();
368370
return Err(1);
369371
}
370372
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
@@ -251,12 +251,12 @@ fn opts() -> Vec<RustcOptGroup> {
251251
o.optflag("", "sort-modules-by-appearance", "sort modules by where they appear in the \
252252
program, rather than alphabetically")
253253
}),
254-
unstable("themes", |o| {
254+
stable("themes", |o| {
255255
o.optmulti("", "themes",
256256
"additional themes which will be added to the generated docs",
257257
"FILES")
258258
}),
259-
unstable("theme-checker", |o| {
259+
stable("theme-checker", |o| {
260260
o.optmulti("", "theme-checker",
261261
"check if given theme is valid",
262262
"FILES")

0 commit comments

Comments
 (0)