Skip to content

Commit 7b57c7c

Browse files
committed
use const flags from adx feature
1 parent 868a8a6 commit 7b57c7c

File tree

1 file changed

+2
-1
lines changed
  • crates/core_arch/src/x86

1 file changed

+2
-1
lines changed

crates/core_arch/src/x86/rtm.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,8 @@ pub unsafe fn _xend() {
7575
/// [Intel's documentation](https://software.intel.com/en-us/cpp-compiler-developer-guide-and-reference-xabort).
7676
#[inline]
7777
#[target_feature(enable = "rtm")]
78-
#[cfg_attr(test, assert_instr(xabort))]
78+
#[cfg_attr(test, assert_instr(xabort, imm8 = 0x0))]
79+
#[rustc_args_required_const(0)]
7980
pub unsafe fn _xabort(imm8: u32) {
8081
macro_rules! call {
8182
($imm8:expr) => {

0 commit comments

Comments
 (0)