rust/compiler
Michael Goulet 9dfd527c6f
Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu
Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...`

In the stabilization [attempt](https://github.com/rust-lang/rust/pull/120832) of `#[unix_sigpipe = "sig_dfl"]`, a concern was [raised ](https://github.com/rust-lang/rust/pull/120832#issuecomment-2007394609) related to using a language attribute for the feature: Long term, we want `fn lang_start()` to be definable by any crate, not just libstd. Having a special language attribute in that case becomes awkward.

So as a first step towards the next stabilization attempt, this PR changes the `#[unix_sigpipe = "..."]` attribute to a compiler flag `-Zon-broken-pipe=...` to remove that concern, since now the language is not "contaminated" by this feature.

Another point was [also raised](https://github.com/rust-lang/rust/pull/120832#issuecomment-1987023484), namely that the ui should not leak **how** it does things, but rather what the **end effect** is. The new flag uses the proposed naming. This is of course something that can be iterated on further before stabilization.

Tracking issue: https://github.com/rust-lang/rust/issues/97889
2024-05-03 23:34:22 -04:00
..
rustc Change `SIGPIPE` ui from `#[unix_sigpipe = "..."]` to `-Zon-broken-pipe=...` 2024-05-02 19:48:29 +02:00
rustc_abi Rollup merge of #124555 - Zalathar:init-coverage, r=nnethercote 2024-05-03 20:33:46 +02:00
rustc_arena
rustc_ast AST pretty: Use `builtin_syntax` for type ascription 2024-05-03 01:10:22 +02:00
rustc_ast_ir Remove `extern crate rustc_macros` from numerous crates. 2024-04-29 10:21:54 +10:00
rustc_ast_lowering Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_ast_passes Replace item names containing an error code with something more meaningful 2024-04-30 22:27:19 +02:00
rustc_ast_pretty AST pretty: Use `builtin_syntax` for type ascription 2024-05-03 01:10:22 +02:00
rustc_attr Remove `extern crate rustc_macros` from numerous crates. 2024-04-29 10:21:54 +10:00
rustc_baked_icu_data
rustc_borrowck Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
rustc_builtin_macros Remove `extern crate tracing` from numerous crates. 2024-04-30 16:47:49 +10:00
rustc_codegen_cranelift debuginfo: Stabilize `-Z debug-macros`, `-Z collapse-macro-debuginfo` and `#[collapse_debuginfo]` 2024-04-25 22:14:47 +03:00
rustc_codegen_gcc Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_codegen_llvm Auto merge of #124675 - matthiaskrgr:rollup-x6n79ua, r=matthiaskrgr 2024-05-03 19:46:04 +00:00
rustc_codegen_ssa Rollup merge of #124555 - Zalathar:init-coverage, r=nnethercote 2024-05-03 20:33:46 +02:00
rustc_const_eval interpret: hide some reexports in rustdoc 2024-05-02 18:47:36 +02:00
rustc_data_structures Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_driver
rustc_driver_impl Rollup merge of #124511 - nnethercote:rm-extern-crates, r=fee1-dead 2024-04-30 15:04:08 +02:00
rustc_error_codes Rollup merge of #123247 - veera-sivarajan:fix-error-code-E0637-example-code, r=fmease 2024-04-30 15:04:08 +02:00
rustc_error_messages Rename `SubdiagnosticMessage` as `SubdiagMessage`. 2024-03-05 12:14:49 +11:00
rustc_errors Rollup merge of #124511 - nnethercote:rm-extern-crates, r=fee1-dead 2024-04-30 15:04:08 +02:00
rustc_expand Refactor `Frame`. 2024-05-03 09:06:26 +10:00
rustc_feature Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_fluent_macro Rename `SubdiagnosticMessage` as `SubdiagMessage`. 2024-03-05 12:14:49 +11:00
rustc_fs_util Stabilize `std::path::absolute` 2024-04-24 14:35:02 +00:00
rustc_graphviz
rustc_hir Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_hir_analysis Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_hir_pretty put `hir::AnonConst` on the hir arena 2024-04-26 12:57:02 +00:00
rustc_hir_typeck Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_incremental Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_index Simplify `static_assert_size`s. 2024-04-18 15:36:25 +10:00
rustc_index_macros rustc_index: Add a `ZERO` constant to index types 2024-04-03 19:06:22 +03:00
rustc_infer Use ObligationCtxt in favor of TraitEngine in many places 2024-05-02 22:03:01 -04:00
rustc_interface Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_lexer Improved the compiler code with clippy 2024-04-24 09:41:44 +02:00
rustc_lint Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_lint_defs Add an explanation about never type fallback 2024-05-02 03:47:32 +02:00
rustc_llvm Rollup merge of #124287 - 41Leahcim:master, r=fmease 2024-04-25 18:57:56 +02:00
rustc_log Construct `SourceMap` at the same time as `SessionGlobals`. 2024-04-16 13:02:53 +10:00
rustc_macros Rollup merge of #124287 - 41Leahcim:master, r=fmease 2024-04-25 18:57:56 +02:00
rustc_metadata Rollup merge of #124582 - RalfJung:std-not-found, r=Nilstrieb 2024-05-02 15:11:22 +02:00
rustc_middle Rollup merge of #124418 - compiler-errors:better-cause, r=lcnr 2024-05-03 23:34:21 -04:00
rustc_mir_build Auto merge of #124401 - oli-obk:some_hir_cleanups, r=cjgillot 2024-05-04 00:32:27 +00:00
rustc_mir_dataflow Inline & delete `Ty::new_unit`, since it's just a field access 2024-05-02 17:49:23 +02:00
rustc_mir_transform Auto merge of #123602 - cjgillot:gvn-borrowed, r=oli-obk 2024-05-03 21:50:13 +00:00
rustc_monomorphize Remove `extern crate rustc_middle` from numerous crates. 2024-04-29 14:50:45 +10:00
rustc_next_trait_solver Auto merge of #122077 - oli-obk:eager_opaque_checks4, r=lcnr 2024-04-08 23:01:50 +00:00
rustc_parse Add StaticForeignItem and use it on ForeignItemKind 2024-04-29 13:15:51 -03:00
rustc_parse_format Simplify `static_assert_size`s. 2024-04-18 15:36:25 +10:00
rustc_passes Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_pattern_analysis Remove `extern crate tracing` from numerous crates. 2024-04-30 16:47:49 +10:00
rustc_privacy Remove `extern crate tracing` from numerous crates. 2024-04-30 16:47:49 +10:00
rustc_query_impl Stabilize generic `NonZero`. 2024-04-22 18:48:47 +02:00
rustc_query_system Remove `extern crate tracing` from numerous crates. 2024-04-30 16:47:49 +10:00
rustc_resolve Rollup merge of #124510 - linyihai:raw-ident-in-typo-suggestion, r=fmease 2024-05-03 20:33:45 +02:00
rustc_sanitizers Stabilize the size of incr comp object file names 2024-04-22 10:50:07 -04:00
rustc_serialize Step bootstrap cfgs 2024-05-01 22:19:11 -04:00
rustc_session Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_smir Rollup merge of #122598 - Nadrieril:full-derefpats, r=matthewjasper 2024-04-23 17:25:15 +02:00
rustc_span Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_symbol_mangling Auto merge of #123441 - saethlin:fixed-len-file-names, r=oli-obk 2024-05-03 17:41:48 +00:00
rustc_target Rollup merge of #124480 - Enselic:on-broken-pipe, r=jieyouxu 2024-05-03 23:34:22 -04:00
rustc_trait_selection Rollup merge of #124418 - compiler-errors:better-cause, r=lcnr 2024-05-03 23:34:21 -04:00
rustc_traits Use ObligationCtxt in favor of TraitEngine in many places 2024-05-02 22:03:01 -04:00
rustc_transmute Align: add bytes_usize and bits_usize 2024-05-01 15:57:33 +02:00
rustc_ty_utils Inline & delete `Ty::new_unit`, since it's just a field access 2024-05-02 17:49:23 +02:00
rustc_type_ir Remove `extern crate bitflags` from a couple of crates. 2024-04-29 18:47:54 +10:00
stable_mir Remove `extern crate scoped_tls` from `stable_mir`. 2024-04-30 16:47:49 +10:00