From: Debian Rust Maintainers Date: Wed, 12 Jun 2024 15:33:10 +0000 (+0200) Subject: ubuntu-disable-ppc64el-asm-tests X-Git-Tag: archive/raspbian/1.75.0+dfsg1-5+rpi1^2~4 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=94e5bbf6514dd305bcefc53291eee6ad6bc826dc;p=rustc.git ubuntu-disable-ppc64el-asm-tests =================================================================== 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 6f6150a417..3193825b50 100644 --- a/compiler/rustc_lint/src/builtin.rs +++ b/compiler/rustc_lint/src/builtin.rs @@ -2701,7 +2701,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 bef9f469cc..9773133e9f 100644 --- a/compiler/rustc_lint_defs/src/builtin.rs +++ b/compiler/rustc_lint_defs/src/builtin.rs @@ -2918,11 +2918,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)); }