ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 10 Oct 2022 18:19:05 +0000 (19:19 +0100)
committerFabian Gruenbichler <debian@fabian.gruenbichler.email>
Mon, 10 Oct 2022 18:19:05 +0000 (19:19 +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 d43c661dda6fa2342b0efc673718e1484683f2bd..8829adb3d6bc0b9b641aec1f3a99f1edc69ff8ee 100644 (file)
@@ -3166,6 +3166,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 5704c6ed3b25d7653e7d0a25e7bad400ae1a759e..862f177d36fc5ffa144ebc2524e8a346301738a3 100644 (file)
@@ -2782,11 +2782,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