Skip to content

Commit 72c3082

Browse files
committed
error-index: Don't generate 404 instead of removing it.
1 parent f2ad85a commit 72c3082

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/tools/error_index_generator/book_config.toml

+1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ src = ""
77
git-repository-url = "https://github.com/rust-lang/rust/"
88
additional-css = ["error-index.css"]
99
additional-js = ["error-index.js"]
10+
input-404 = ""
1011

1112
[output.html.search]
1213
enable = true

src/tools/error_index_generator/main.rs

-3
Original file line numberDiff line numberDiff line change
@@ -171,9 +171,6 @@ This page lists all the error codes emitted by the Rust compiler.
171171
</html>"#,
172172
)?;
173173

174-
// No need for a 404 file, it's already handled by the server.
175-
fs::remove_file(output_path.join("error_codes/404.html"))?;
176-
177174
Ok(())
178175
}
179176

0 commit comments

Comments
 (0)