ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 31 Oct 2022 13:19:34 +0000 (13:19 +0000)
committerFabian Gruenbichler <debian@fabian.gruenbichler.email>
Mon, 31 Oct 2022 13:19:34 +0000 (13:19 +0000)
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 a87083a082b3f1da7fd1f53f98d070010e82afd9..06556e16fa8ee53ff9e57d42aace9e8284675c7a 100644 (file)
@@ -3103,6 +3103,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 f942970278399b17e89ba17b641280ba43509aad..bbd93ac8e27a205a4aba6edcdee2c389fd3777b0 100644 (file)
@@ -2881,11 +2881,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 2037728568e2409493a3cea9ef7bc2dfc232fe7e..bcf9c075a7d02ff16577239e6f5d03afc035ea70 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