Skip to content

Commit d0ffd20

Browse files
author
Yuki Okushi
authored
Rollup merge of rust-lang#103495 - Enselic:rustdoc-unix_sigpipe, r=notriddle
rustdoc: Use `unix_sigpipe` instead of `rustc_driver::set_sigpipe_handler` Do what was already done for `rustc` in rust-lang#102587, namely start using `unix_sigpipe` instead of `rustc_driver::set_sigpipe_handler`. After this has been merged, we can completely remove `rustc_driver::set_sigpipe_handler`. PR that added `set_sigpipe_handler`: rust-lang#49606 Tracking issue for `unix_sigpipe`: rust-lang#97889 Verification of this change --------------------------- 1. Remove `#[unix_sigpipe = "sig_dfl"]` 1. Run `./x.py build` 1. Run `./build/aarch64-apple-darwin/stage1/bin/rustdoc --help | false` 1. Observe ICE 1. Add back `#[unix_sigpipe = "sig_dfl"]` 1. Run `./x.py build` 1. Run `./build/aarch64-apple-darwin/stage1/bin/rustdoc --help | false` 1. Observe ICE fixed ``@rustbot`` labels +T-rustdoc
2 parents b09ce60 + 5e624bf commit d0ffd20

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/librustdoc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,6 @@ pub fn main() {
154154
}
155155
}
156156

157-
rustc_driver::set_sigpipe_handler();
158157
rustc_driver::install_ice_hook();
159158

160159
// When using CI artifacts (with `download_stage1 = true`), tracing is unconditionally built

src/tools/rustdoc/main.rs

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
#![feature(unix_sigpipe)]
2+
3+
#[unix_sigpipe = "sig_dfl"]
14
fn main() {
25
rustdoc::main()
36
}

0 commit comments

Comments
 (0)