From: Debian Rust Maintainers Date: Thu, 13 Jun 2024 09:16:41 +0000 (+0200) Subject: ubuntu-disable-ppc64el-asm-tests X-Git-Tag: archive/raspbian/1.83.0+dfsg1-1+rpi1^2~9 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=f5983e961f6a26b49bf72a5899c452c5bd8ede8c;p=rustc.git ubuntu-disable-ppc64el-asm-tests Forwarded: not-needed Gbp-Pq: Topic ubuntu Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch --- diff --git a/compiler/rustc_lint/src/builtin.rs b/compiler/rustc_lint/src/builtin.rs index 8bd9c899a6..bac3bdb36c 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -2724,7 +2724,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 23dc5214fe..99e194e6fc 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2929,11 +2929,13 @@ declare_lint! { /// /// use std::arch::naked_asm; /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub fn default_abi() -> u32 { /// unsafe { naked_asm!(""); } /// } /// + /// #[cfg(not(any(target_arch = "powerpc64", target_arch = "s390x")))] /// #[naked] /// pub extern "Rust" fn rust_abi() -> u32 { /// unsafe { naked_asm!(""); }