rust/compiler/rustc_builtin_macros/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
..
deriving Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
format_foreign
asm.rs Use AnonConst for asm! constants 2021-04-06 12:35:41 +01:00
assert.rs Fix bug with assert!() calling the wrong edition of panic!(). 2021-02-01 23:23:27 +01:00
cfg_accessible.rs
cfg_eval.rs ast/hir: Rename field-related structures 2021-03-16 11:41:24 +03:00
cfg.rs
cmdline_attrs.rs
compile_error.rs
concat_idents.rs
concat.rs
derive.rs resolve/expand: Cache intermediate results of #[derive] expansion 2021-04-04 17:51:41 +03:00
env.rs
format_foreign.rs avoid full-slicing slices 2021-02-16 00:31:11 +01:00
format.rs avoid full-slicing slices 2021-02-16 00:31:11 +01:00
global_allocator.rs Don't ICE when using #[global_alloc] on a non-item statement 2021-03-25 15:41:31 -04:00
global_asm.rs Remove some P-s 2021-02-20 10:51:26 +01:00
lib.rs Use iter::zip in compiler/ 2021-03-26 09:32:31 -07:00
llvm_asm.rs
log_syntax.rs
panic.rs Implement new panic!() behaviour for Rust 2021. 2021-01-25 13:48:11 +01:00
proc_macro_harness.rs ast: Stop using Mod in Crate 2021-02-18 13:07:49 +03:00
source_util.rs expand: Some more consistent naming in module loading 2021-03-05 01:33:43 +03:00
standard_library_imports.rs Rollup merge of #82217 - m-ou-se:edition-prelude, r=nikomatsakis 2021-03-10 17:55:38 +01:00
test_harness.rs ast: Keep expansion status for out-of-line module items 2021-02-18 13:07:49 +03:00
test.rs Box the biggest ast::ItemKind variants 2021-02-01 09:23:39 +01:00
trace_macros.rs
util.rs