]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc/src/main.rs
Rollup merge of #102049 - fee1-dead-contrib:derive_const, r=oli-obk
[rust.git] / compiler / rustc / src / main.rs
index 0de1a78191353c98d6957aa2147a5f6a2656bc71..e21c9b660444083c001c5ca26c6087d956157a36 100644 (file)
@@ -1,3 +1,5 @@
+#![feature(unix_sigpipe)]
+
 // A note about jemalloc: rustc uses jemalloc when built for CI and
 // distribution. The obvious way to do this is with the `#[global_allocator]`
 // mechanism. However, for complicated reasons (see
@@ -23,6 +25,7 @@
 // libraries. So we must reference jemalloc symbols one way or another, because
 // this file is the only object code in the rustc executable.
 
+#[unix_sigpipe = "sig_dfl"]
 fn main() {
     // See the comment at the top of this file for an explanation of this.
     #[cfg(feature = "jemalloc-sys")]
@@ -58,6 +61,5 @@ fn main() {
         }
     }
 
-    rustc_driver::set_sigpipe_handler();
     rustc_driver::main()
 }