ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sun, 3 Sep 2023 17:58:53 +0000 (18:58 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Sun, 3 Sep 2023 17:58:53 +0000 (18:58 +0100)
Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch

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

index c6c7caa7c9e56e1c70ecc18ca3d1633dd7b0a7e9..2007f3036ee01ce293363bd5f1be167b2db3b02b 100644 (file)
@@ -3238,7 +3238,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 82b837fba389fe270d216e2a5c1d64232433a35b..e924ef47cca8aa25602b16c9b2ac3b4bea70755e 100644 (file)
@@ -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)); }