summaryrefslogtreecommitdiffstats
path: root/debian/patches/ubuntu-disable-ppc64el-asm-tests.patch
blob: faa70d7faad7847792d1ed6101976e7a6d184454 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
Index: rust/compiler/rustc_lint_defs/src/builtin.rs
===================================================================
--- rust.orig/compiler/rustc_lint_defs/src/builtin.rs
+++ rust/compiler/rustc_lint_defs/src/builtin.rs
@@ -2883,11 +2883,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)); }
Index: rust/compiler/rustc_lint/src/builtin.rs
===================================================================
--- rust.orig/compiler/rustc_lint/src/builtin.rs
+++ rust/compiler/rustc_lint/src/builtin.rs
@@ -3102,7 +3102,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() {