ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 15 Jan 2024 07:16:35 +0000 (08:16 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Mon, 15 Jan 2024 07:16:35 +0000 (08:16 +0100)
Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch

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

index 6b387df785e7df66b80784e83e8c38ef86db327d..1f77d59e3e9b73378de8e1f8a8e0a1f738ae7cf1 100644 (file)
@@ -3110,7 +3110,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 9d6ab0b75df177bc86ddf6c2802eb5626e87f6da..25ddb8c751dc20ea4abca4718cf739d0a5536f94 100644 (file)
@@ -2880,11 +2880,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)); }