Skip to content

Commit b542ba4

Browse files
committed
Auto merge of rust-lang#90348 - Amanieu:asm_feature_gates, r=joshtriplett
Add features gates for experimental asm features This PR splits off parts of `asm!` into separate features because they are not ready for stabilization. Specifically this adds: - `asm_const` for `const` operands. - `asm_sym` for `sym` operands. - `asm_experimental_arch` for architectures other than x86, x86_64, arm, aarch64 and riscv. r? `@nagisa`
2 parents a3fc02d + c5cafd6 commit b542ba4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

core/src/lib.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -193,6 +193,7 @@
193193
#![feature(try_blocks)]
194194
#![feature(unboxed_closures)]
195195
#![feature(unsized_fn_params)]
196+
#![cfg_attr(not(bootstrap), feature(asm_const))]
196197
//
197198
// Target features:
198199
#![feature(aarch64_target_feature)]

0 commit comments

Comments
 (0)