Skip to content

Commit 8b6dad2

Browse files
committed
Remove --print unversioned-files from rustdoc
This flag isn't needed anymore. See #83784.
1 parent e51830b commit 8b6dad2

File tree

6 files changed

+1
-34
lines changed

6 files changed

+1
-34
lines changed

src/librustdoc/config.rs

-7
Original file line numberDiff line numberDiff line change
@@ -349,13 +349,6 @@ impl Options {
349349
return Err(0);
350350
}
351351

352-
if matches.opt_strs("print").iter().any(|opt| opt == "unversioned-files") {
353-
for file in crate::html::render::FILES_UNVERSIONED.keys() {
354-
println!("{}", file);
355-
}
356-
return Err(0);
357-
}
358-
359352
let color = config::parse_color(&matches);
360353
let config::JsonConfig { json_rendered, json_unused_externs, .. } =
361354
config::parse_json(&matches);

src/librustdoc/html/render/mod.rs

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ mod print_item;
3333
mod write_shared;
3434

3535
crate use context::*;
36-
crate use write_shared::FILES_UNVERSIONED;
3736

3837
use std::collections::VecDeque;
3938
use std::default::Default;

src/librustdoc/html/render/write_shared.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ use crate::docfs::PathError;
1818
use crate::error::Error;
1919
use crate::html::{layout, static_files};
2020

21-
crate static FILES_UNVERSIONED: Lazy<FxHashMap<&str, &[u8]>> = Lazy::new(|| {
21+
static FILES_UNVERSIONED: Lazy<FxHashMap<&str, &[u8]>> = Lazy::new(|| {
2222
map! {
2323
"FiraSans-Regular.woff2" => static_files::fira_sans::REGULAR2,
2424
"FiraSans-Medium.woff2" => static_files::fira_sans::MEDIUM2,

src/librustdoc/lib.rs

-3
Original file line numberDiff line numberDiff line change
@@ -581,9 +581,6 @@ fn opts() -> Vec<RustcOptGroup> {
581581
"Generate JSON file at the top level instead of generating HTML redirection files",
582582
)
583583
}),
584-
unstable("print", |o| {
585-
o.optmulti("", "print", "Rustdoc information to print on stdout", "[unversioned-files]")
586-
}),
587584
unstable("emit", |o| {
588585
o.optmulti(
589586
"",

src/test/run-make-fulldeps/print-unversioned-files/Makefile

-4
This file was deleted.

src/test/run-make-fulldeps/print-unversioned-files/unversioned-files.txt

-18
This file was deleted.

0 commit comments

Comments
 (0)