From 3b0701a0b1b26bf6bf72415c39122e3a394a7adf Mon Sep 17 00:00:00 2001 From: Ding Xiang Fei Date: Fri, 20 Sep 2024 23:21:56 +0800 Subject: [PATCH] use build-fail for asm tests --- tests/ui/asm/aarch64/type-check-4.rs | 2 +- tests/ui/asm/x86_64/type-check-4.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/ui/asm/aarch64/type-check-4.rs b/tests/ui/asm/aarch64/type-check-4.rs index e700a078e5b76..12fba8f25abef 100644 --- a/tests/ui/asm/aarch64/type-check-4.rs +++ b/tests/ui/asm/aarch64/type-check-4.rs @@ -1,5 +1,5 @@ //@ only-aarch64 -//@ compile-flags: --emit=asm +//@ build-fail use std::arch::global_asm; diff --git a/tests/ui/asm/x86_64/type-check-4.rs b/tests/ui/asm/x86_64/type-check-4.rs index efdf9c6378017..01cb8fd635aca 100644 --- a/tests/ui/asm/x86_64/type-check-4.rs +++ b/tests/ui/asm/x86_64/type-check-4.rs @@ -1,5 +1,5 @@ //@ only-x86_64 -//@ compile-flags: --emit asm +//@ build-fail use std::arch::global_asm;