rust/compiler
bors 39a3b52767 Auto merge of #87402 - nagisa:nagisa/request-feature-requests-for-features, r=estebank
Direct users towards using Rust target feature names in CLI

This PR consists of a couple of changes on how we handle target features.

In particular there is a bug-fix wherein we avoid passing through features that aren't prefixed by `+` or `-` to LLVM. These appear to be causing LLVM to assert, which is pretty poor a behaviour (and also makes it pretty clear we expect feature names to be prefixed).

The other commit, I anticipate to be somewhat more controversial is outputting a warning when users specify a LLVM-specific, or otherwise unknown, feature name on the CLI. In those situations we request users to either replace it with a known Rust feature name (e.g. `bmi` -> `bmi1`) or file a feature request. I've a couple motivations for this: first of all, if users are specifying these features on the command line, I'm pretty confident there is also a need for these features to be usable via `#[cfg(target_feature)]` machinery.  And second, we're growing a fair number of backends recently and having ability to provide some sort of unified-ish interface in this place seems pretty useful to me.

Sponsored by: standard.ai
2022-03-02 03:03:22 +00:00
..
rustc remove unused jemallocator crate 2022-01-28 16:56:05 +01:00
rustc_apfloat Stabilize iter::zip. 2021-12-14 18:50:31 -04:00
rustc_arena Remove unused dep from rustc_arena 2022-02-02 17:37:14 +01:00
rustc_ast 2 - Make more use of let_chains 2022-02-26 13:45:43 -03:00
rustc_ast_lowering Auto merge of #94290 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2022-02-25 18:34:02 +00:00
rustc_ast_passes Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_ast_pretty Pretty print ItemKind::Use in rustfmt style 2022-02-07 21:51:05 -08:00
rustc_attr Rollup merge of #94175 - Urgau:check-cfg-improvements, r=petrochenkov 2022-02-24 21:42:13 +01:00
rustc_borrowck 3 - Make more use of let_chains 2022-02-27 11:10:20 -03:00
rustc_builtin_macros Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_codegen_cranelift Normalize main return type during mono item collection & codegen 2022-02-23 22:33:50 +01:00
rustc_codegen_gcc Auto merge of #87402 - nagisa:nagisa/request-feature-requests-for-features, r=estebank 2022-03-02 03:03:22 +00:00
rustc_codegen_llvm Auto merge of #87402 - nagisa:nagisa/request-feature-requests-for-features, r=estebank 2022-03-02 03:03:22 +00:00
rustc_codegen_ssa Auto merge of #87402 - nagisa:nagisa/request-feature-requests-for-features, r=estebank 2022-03-02 03:03:22 +00:00
rustc_const_eval Auto merge of #94290 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2022-02-25 18:34:02 +00:00
rustc_data_structures Querify global_backend_features 2022-03-01 01:57:25 +02:00
rustc_driver Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_error_codes Rollup merge of #94449 - GuillaumeGomez:explanation-e0726, r=Urgau 2022-02-28 20:05:18 +01:00
rustc_errors Auto merge of #94427 - cjgillot:inline-fresh-expn, r=oli-obk 2022-02-28 08:25:26 +00:00
rustc_expand Tweak diagnostics 2022-02-28 18:22:45 +00:00
rustc_feature Remove in-band lifetimes 2022-02-24 18:50:33 -08:00
rustc_fs_util
rustc_graphviz eplace usages of vec![].into_iter with [].into_iter 2022-01-09 14:09:25 +11:00
rustc_hir Remove in-band lifetimes 2022-02-24 18:50:33 -08:00
rustc_hir_pretty resolve: Fix incorrect results of opt_def_kind query for some built-in macros 2022-02-24 22:54:36 +03:00
rustc_incremental Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_index Fix test 2022-02-24 16:02:07 -05:00
rustc_infer Auto merge of #94290 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2022-02-25 18:34:02 +00:00
rustc_interface Rollup merge of #94415 - bjorn3:cfg_default_backend, r=Mark-Simulacrum 2022-02-27 21:46:36 +01:00
rustc_lexer Improve scan_escape. 2022-02-24 17:01:01 +11:00
rustc_lint Rollup merge of #94397 - xFrednet:69838-deprecate-pre-expansion, r=cjgillot 2022-02-27 21:46:34 +01:00
rustc_lint_defs Improve diagnostic of the unexpected_cfgs lint 2022-02-22 23:17:13 +01:00
rustc_llvm Revert "Auto merge of #92419 - erikdesjardins:coldland, r=nagisa" 2022-02-27 23:11:03 -05:00
rustc_log Make rustc_log doc test runnable 2022-01-03 22:31:56 -08:00
rustc_macros Rollup merge of #93926 - PatchMixolydic:bugfix/must_use-on-exprs, r=cjgillot 2022-03-01 03:41:49 +01:00
rustc_metadata Auto merge of #94290 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2022-02-25 18:34:02 +00:00
rustc_middle Auto merge of #87402 - nagisa:nagisa/request-feature-requests-for-features, r=estebank 2022-03-02 03:03:22 +00:00
rustc_mir_build 6 - Make more use of let_chains 2022-02-28 21:12:52 -03:00
rustc_mir_dataflow Rollup merge of #94087 - tmiasko:rm-ignore-borrow-on-drop, r=jackh726 2022-02-26 07:52:42 +01:00
rustc_mir_transform Auto merge of #94427 - cjgillot:inline-fresh-expn, r=oli-obk 2022-02-28 08:25:26 +00:00
rustc_monomorphize Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_parse Rollup merge of #94445 - c410-f3r:more-let-chains, r=cjgillot 2022-02-28 20:05:17 +01:00
rustc_parse_format Correctly mark the span of captured arguments in format_args!() 2022-02-16 07:34:06 +00:00
rustc_passes Rollup merge of #94448 - c410-f3r:yet-more-let-chains, r=estebank 2022-03-01 03:41:52 +01:00
rustc_plugin_impl
rustc_privacy Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_query_impl Auto merge of #94084 - Mark-Simulacrum:drop-sharded, r=cjgillot 2022-02-27 14:04:07 +00:00
rustc_query_system Auto merge of #94084 - Mark-Simulacrum:drop-sharded, r=cjgillot 2022-02-27 14:04:07 +00:00
rustc_resolve Auto merge of #94290 - Mark-Simulacrum:bump-bootstrap, r=pietroalbini 2022-02-25 18:34:02 +00:00
rustc_save_analysis Switch bootstrap cfgs 2022-02-25 08:00:52 -05:00
rustc_serialize Delete Decoder::read_unit 2022-02-22 18:14:51 -05:00
rustc_session Auto merge of #93516 - nagisa:branch-protection, r=cjgillot 2022-02-26 21:53:03 +00:00
rustc_span Auto merge of #94427 - cjgillot:inline-fresh-expn, r=oli-obk 2022-02-28 08:25:26 +00:00
rustc_symbol_mangling Rollup merge of #94359 - tmiasko:legacy-verbose-const, r=petrochenkov 2022-03-01 12:00:43 +01:00
rustc_target Auto merge of #94216 - psumbera:sparc64-abi-fix2, r=nagisa 2022-02-28 11:54:17 +00:00
rustc_trait_selection Auto merge of #94144 - est31:let_else_trait_selection, r=cjgillot 2022-02-27 07:02:46 +00:00
rustc_traits chalk/db: use correct debrujin index when replacing opaque type. 2022-02-22 00:16:56 +01:00
rustc_ty_utils Restrict query recursion in needs_significant_drop 2022-02-24 12:23:35 -05:00
rustc_type_ir Inline UnifyKey::index and UnifyKey::from_index 2022-02-15 19:07:06 +01:00
rustc_typeck Auto merge of #94471 - matthiaskrgr:rollup-ffz65qt, r=matthiaskrgr 2022-03-01 06:15:54 +00:00