ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Tue, 28 May 2024 15:06:58 +0000 (17:06 +0200)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Tue, 28 May 2024 15:06:58 +0000 (17:06 +0200)
===================================================================

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

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

index 4b6917fdfdd09dbfa03f6aede80dffd76748b516..33aff41a61afe083485b950d44fed9233873f398 100644 (file)
@@ -2682,7 +2682,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 96c31a90da8654ced26abd70c85d1276fc051a59..e17695f308055a2a24de1195c7b2e04a0e9837c6 100644 (file)
@@ -2922,11 +2922,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)); }