From 7099536b5049d3961cea06b6e9e304c620ca7806 Mon Sep 17 00:00:00 2001 From: Debian Rust Maintainers Date: Wed, 13 Sep 2023 12:57:58 +0100 Subject: [PATCH] ubuntu-disable-ppc64el-asm-tests Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch --- compiler/rustc_lint/src/builtin.rs | 5 ++++- compiler/rustc_lint_defs/src/builtin.rs | 2 ++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 5b2100b5da..64d9ba7cf5 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -3118,7 +3118,10 @@ declare_lint! { /// ### Example /// /// ```rust,compile_fail - /// # #![feature(asm_experimental_arch)] + /// #![cfg_attr( + /// not(any(target_arch = "powerpc64", target_arch = "s390x")), + /// feature(asm_experimental_arch) + /// )] /// use std::arch::asm; /// /// fn main() { diff --git a/compiler/rustc_lint_defs/src/builtin.rs b/compiler/rustc_lint_defs/src/builtin.rs index 46ec1a2dca..54ca38bdd3 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2879,11 +2879,13 @@ declare_lint! { /// /// use std::arch::asm; /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub fn default_abi() -> u32 { /// unsafe { asm!("", options(noreturn)); } /// } /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub extern "Rust" fn rust_abi() -> u32 { /// unsafe { asm!("", options(noreturn)); } -- 2.30.2