rust/compiler/rustc_ast/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
..
ast mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
attr Remove (lots of) dead code 2021-03-27 22:16:33 -04:00
expand mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
util Remove unnecessary manual shrink_to_fit calls 2021-01-16 14:02:36 +01:00
ast_like.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
ast.rs Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
entry.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
lib.rs Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
mut_visit.rs Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
node_id.rs Clarify docs for DUMMY_NODE_ID 2021-02-07 19:42:12 -08:00
ptr.rs mv compiler to compiler/ 2020-08-30 18:45:07 +03:00
token.rs rename :pat2018 -> :pat215 2021-03-22 12:40:23 -05:00
tokenstream.rs Fix typo in TokenStream documentation 2021-04-05 22:58:07 +02:00
visit.rs Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00