ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 26 Jun 2023 21:16:27 +0000 (22:16 +0100)
committerJeremy Bícha <jbicha@ubuntu.com>
Mon, 26 Jun 2023 21:16:27 +0000 (22:16 +0100)
Gbp-Pq: Name ubuntu-disable-ppc64el-asm-tests.patch

compiler/rustc_lint/src/builtin.rs
compiler/rustc_lint_defs/src/builtin.rs
src/test/run-make-fulldeps/intrinsic-unreachable/Makefile

index 0ff2ef5cda39177b9708e8753381fb8d9ec4a3f9..e2457aa5cf367649531989d9948f6039e1521c0b 100644 (file)
@@ -3053,6 +3053,10 @@ declare_lint! {
     /// ### Example
     ///
     /// ```rust,compile_fail
+    /// #![cfg_attr(
+    ///  not(any(target_arch = "powerpc64", target_arch = "s390x")),
+    ///  feature(asm_experimental_arch)
+    /// )]
     /// use std::arch::asm;
     ///
     /// fn main() {
index e5dfda24dc7016be98f192ead19760d6629b9f61..298feadb12e8b57de7789c60200fa27bd8eefb37 100644 (file)
@@ -2913,11 +2913,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 3c4dade0f52153fbc8d7e11599eb7a1c9a6b2120..40833baa6a3f5846e1034e6c133dcaf210834ab6 100644 (file)
@@ -1,6 +1,7 @@
 include ../tools.mk
 
 # ignore-windows-msvc
+# needs-asm-support
 #
 # Because of Windows exception handling, the code is not necessarily any shorter.
 # https://github.com/llvm-mirror/llvm/commit/64b2297786f7fd6f5fa24cdd4db0298fbf211466