ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Thu, 13 Jun 2024 09:16:41 +0000 (11:16 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Tue, 29 Oct 2024 12:18:35 +0000 (13:18 +0100)
Forwarded: not-needed

Gbp-Pq: Topic ubuntu
Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch

compiler/rustc_lint/src/builtin.rs
compiler/rustc_lint_defs/src/builtin.rs

index d8482567bbe5b5e613a67292eb635744ea5085c7..953bd26aa2de2695b3c403104384b7cb1dd81c7f 100644 (file)
@@ -2748,7 +2748,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() {
index 04fd7c9c627e475febba261771f61add8e7c10bd..84ac6335adf9a9296770c2fd3c446e245beff8d4 100644 (file)
@@ -2991,11 +2991,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)); }