rust/compiler
bors 2f4da6243f Auto merge of #91728 - Amanieu:stable_asm, r=joshtriplett
Stabilize asm! and global_asm!

Tracking issue: #72016

It's been almost 2 years since the original [RFC](https://github.com/rust-lang/rfcs/pull/2850) was posted and we're finally ready to stabilize this feature!

The main changes in this PR are:
- Removing `asm!` and `global_asm!` from the prelude as per the decision in #87228.
- Stabilizing the `asm` and `global_asm` features.
- Removing the unstable book pages for `asm` and `global_asm`. The contents are moved to the [reference](https://github.com/rust-lang/reference/pull/1105) and [rust by example](https://github.com/rust-lang/rust-by-example/pull/1483).
  - All links to these pages have been removed to satisfy the link checker. In a later PR these will be replaced with links to the reference or rust by example.
- Removing the automatic suggestion for using `llvm_asm!` instead of `asm!` if you're still using the old syntax, since it doesn't work anymore with `asm!` no longer being in the prelude. This only affects code that predates the old LLVM-style `asm!` being renamed to `llvm_asm!`.
- Updating `stdarch` and `compiler-builtins`.
- Updating all the tests.

r? `@joshtriplett`
2021-12-14 21:15:22 +00:00
..
rustc
rustc_apfloat Revert "Auto merge of #89709 - clemenswasser:apply_clippy_suggestions_2, r=petrochenkov" 2021-10-15 11:28:23 +02:00
rustc_arena Add some comments. 2021-11-19 07:52:59 +11:00
rustc_ast Auto merge of #90207 - BoxyUwU:stabilise_cg_defaults, r=lcnr 2021-12-12 14:24:23 +00:00
rustc_ast_lowering Rollup merge of #91643 - Amanieu:r9x18, r=joshtriplett 2021-12-11 23:31:49 +01:00
rustc_ast_passes Auto merge of #90207 - BoxyUwU:stabilise_cg_defaults, r=lcnr 2021-12-12 14:24:23 +00:00
rustc_ast_pretty Rollup merge of #91625 - est31:remove_indexes, r=oli-obk 2021-12-10 22:40:36 +01:00
rustc_attr re-format with new rustfmt 2021-11-30 13:08:41 -05:00
rustc_borrowck Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
rustc_builtin_macros Remove automatic rustfix of asm! to llvm_asm! 2021-12-12 11:20:03 +00:00
rustc_codegen_cranelift Remove invalid doc links. 2021-12-13 20:40:17 +00:00
rustc_codegen_gcc Stabilize asm! and global_asm! 2021-12-12 11:20:03 +00:00
rustc_codegen_llvm Rollup merge of #91855 - xfix:const_cstr_unchecked, r=dtolnay 2021-12-13 18:15:17 +01:00
rustc_codegen_ssa Auto merge of #91569 - erikdesjardins:vt-align, r=nikic 2021-12-13 04:29:20 +00:00
rustc_const_eval Remove in_band_lifetimes from rustc_const_eval 2021-12-13 22:39:00 -05:00
rustc_data_structures Auto merge of #91549 - fee1-dead:const_env, r=spastorino 2021-12-12 22:15:32 +00:00
rustc_driver add rustc option for using LLVM stack smash protection 2021-11-22 20:06:22 +01:00
rustc_error_codes Clarify and tidy up explanation of E0038 2021-11-30 09:25:17 -08:00
rustc_errors Rollup merge of #91394 - Mark-Simulacrum:bump-stage0, r=pietroalbini 2021-12-02 15:52:03 +01:00
rustc_expand Remove redundant [..]s 2021-12-09 00:01:29 +01:00
rustc_feature update accepted feature gate 2021-12-11 00:12:57 +00:00
rustc_fs_util
rustc_graphviz Remove redundant [..]s 2021-12-09 00:01:29 +01:00
rustc_hir Auto merge of #91728 - Amanieu:stable_asm, r=joshtriplett 2021-12-14 21:15:22 +00:00
rustc_hir_pretty Rollup merge of #91625 - est31:remove_indexes, r=oli-obk 2021-12-10 22:40:36 +01:00
rustc_incremental Rollup merge of #91625 - est31:remove_indexes, r=oli-obk 2021-12-10 22:40:36 +01:00
rustc_index Auto merge of #90491 - Mark-Simulacrum:push-pred-faster, r=matthewjasper 2021-11-24 15:51:46 +00:00
rustc_infer Instead of checking for exact bounds, try to prove them 2021-12-13 00:48:46 -05:00
rustc_interface Auto merge of #90716 - euclio:libloading, r=cjgillot 2021-12-12 17:28:52 +00:00
rustc_lexer Auto merge of #91393 - Julian-Wollersberger:lexer_optimization, r=petrochenkov 2021-12-03 13:20:14 +00:00
rustc_lint Address review feedback 2021-12-12 11:26:59 +00:00
rustc_lint_defs Disable asm lint example tests since they only work on x86_64 2021-12-14 11:48:28 +00:00
rustc_llvm Auto merge of #91284 - t6:freebsd-riscv64, r=Amanieu 2021-12-06 03:51:05 +00:00
rustc_macros Query modifier 2021-12-12 12:35:00 +08:00
rustc_metadata Auto merge of #90716 - euclio:libloading, r=cjgillot 2021-12-12 17:28:52 +00:00
rustc_middle Avoid cloning refcounted types during folding 2021-12-13 14:27:26 +00:00
rustc_mir_build Evaluate inline const pat early and report error if too generic 2021-12-05 21:38:37 +00:00
rustc_mir_dataflow Auto merge of #91475 - ecstatic-morse:mir-pass-manager3, r=oli-obk 2021-12-05 03:41:18 +00:00
rustc_mir_transform use try_normalize_erasing_regions in RevealAllVisitor 2021-12-13 23:13:24 +01:00
rustc_monomorphize Rollup merge of #90701 - michaelwoerister:more-artifact-sizes, r=davidtwco 2021-11-09 19:00:45 +01:00
rustc_parse Auto merge of #90207 - BoxyUwU:stabilise_cg_defaults, r=lcnr 2021-12-12 14:24:23 +00:00
rustc_parse_format
rustc_passes Suggest to specify a target triple when eh_personality lang item is missing 2021-12-14 00:04:15 +11:00
rustc_plugin_impl replace dynamic library module with libloading 2021-12-06 12:03:47 -05:00
rustc_privacy Take a LocalDefId in expect_*item. 2021-11-28 21:09:45 +01:00
rustc_query_impl Query modifier 2021-12-12 12:35:00 +08:00
rustc_query_system std: Stabilize the thread_local_const_init feature 2021-11-29 07:23:46 -08:00
rustc_resolve Rollup merge of #91764 - cjgillot:elide-anyway, r=jackh726 2021-12-11 23:31:52 +01:00
rustc_save_analysis Give inline const separate DefKind 2021-11-07 03:59:06 +00:00
rustc_serialize Auto merge of #91626 - klensy:json-less-alloc, r=petrochenkov 2021-12-13 07:30:38 +00:00
rustc_session Remove redundant [..]s 2021-12-09 00:01:29 +01:00
rustc_span Auto merge of #91660 - llogiq:make-a-hash-of-def-ids, r=nnethercote 2021-12-14 01:39:01 +00:00
rustc_symbol_mangling Revert "Add rustc lint, warning when iterating over hashmaps" 2021-10-28 11:01:42 -04:00
rustc_target asm: Allow using r9 (ARM) and x18 (AArch64) if they are not reserved by 2021-12-10 00:51:39 +00:00
rustc_trait_selection Auto merge of #91549 - fee1-dead:const_env, r=spastorino 2021-12-12 22:15:32 +00:00
rustc_traits Reduce boilerplate around infallible folders 2021-12-02 16:14:16 +00:00
rustc_ty_utils Revert "Auto merge of #91491 - spastorino:revert-91354, r=oli-obk" 2021-12-12 12:34:46 +08:00
rustc_type_ir Fix HashStable implementation on InferTy 2021-12-13 20:36:17 -08:00
rustc_typeck Rollup merge of #91849 - jackh726:gats-outlives-lint-part2, r=nikomatsakis 2021-12-13 18:15:16 +01:00