mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-29 11:37:39 +00:00
rustdoc: Use unix_sigpipe
instead of rustc_driver::set_sigpipe_handler
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`. 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
This commit is contained in:
parent
c07a6a9c0c
commit
5e624bf4ba
@ -154,7 +154,6 @@ pub fn main() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
rustc_driver::set_sigpipe_handler();
|
|
||||||
rustc_driver::install_ice_hook();
|
rustc_driver::install_ice_hook();
|
||||||
|
|
||||||
// When using CI artifacts (with `download_stage1 = true`), tracing is unconditionally built
|
// When using CI artifacts (with `download_stage1 = true`), tracing is unconditionally built
|
||||||
|
@ -1,3 +1,6 @@
|
|||||||
|
#![feature(unix_sigpipe)]
|
||||||
|
|
||||||
|
#[unix_sigpipe = "sig_dfl"]
|
||||||
fn main() {
|
fn main() {
|
||||||
rustdoc::main()
|
rustdoc::main()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user