rust/compiler/rustc_passes/src
Dylan DPC b81c6cdb57
Rollup merge of #83916 - Amanieu:asm_anonconst, r=petrochenkov
Use AnonConst for asm! constants

This replaces the old system which used explicit promotion. See #83169 for more background.

The syntax for `const` operands is still the same as before: `const <expr>`.

Fixes #83169

Because the implementation is heavily based on inline consts, we suffer from the same issues:
- We lose the ability to use expressions derived from generics. See the deleted tests in `src/test/ui/asm/const.rs`.
- We are hitting the same ICEs as inline consts, for example #78174. It is unlikely that we will be able to stabilize this before inline consts are stabilized.
2021-04-07 13:07:14 +02:00
..
liveness Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
check_attr.rs Allow specifying alignment for functions 2021-04-05 17:36:51 -04:00
check_const.rs remove redundant wrapping of return types of allow_internal_unstable() and rustc_allow_const_fn_unstable() 2021-02-21 18:11:27 +01:00
dead.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
diagnostic_items.rs Access attrs directly from HirId in rustc_passes::diagnostic_item. 2021-03-09 19:09:32 +01:00
entry.rs Remove hir::CrateItem. 2021-03-30 20:31:06 +02:00
hir_id_validator.rs GenericParam does not need to be a HIR owner. 2021-03-23 22:47:22 +01:00
hir_stats.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
intrinsicck.rs Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
lang_items.rs Access attrs directly from HirId in rustc_passes::lang_items. 2021-03-09 19:09:31 +01:00
layout_test.rs Only store a LocalDefId in hir::Item. 2021-02-15 19:32:10 +01:00
lib_features.rs Track HirId when visiting attributes. 2021-03-09 19:27:59 +01:00
lib.rs Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
liveness.rs Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
loops.rs Do not suggest using a break label when one is already present 2021-01-21 21:43:29 -08:00
naked_functions.rs Do not store attrs in FnKind. 2021-03-09 19:09:33 +01:00
reachable.rs Only store a LocalDefId in hir::ImplItem. 2021-02-15 19:32:29 +01:00
region.rs Rename HIR UnOp variants 2021-02-09 11:39:20 +03:00
stability.rs Remove hir::CrateItem. 2021-03-30 20:31:06 +02:00
upvars.rs
weak_lang_items.rs Remove hir::ForeignItem::attrs. 2021-03-09 19:23:07 +01:00