ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Mon, 12 Jun 2023 16:36:56 +0000 (17:36 +0100)
committerFabian Grünbichler <debian@fabian.gruenbichler.email>
Mon, 12 Jun 2023 16:36:56 +0000 (17:36 +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 bd58021f78fc022381f5c015b474704e7369e98f..66e0f01edfb207a5c94429e6b323366c3ef29fa1 100644 (file)
@@ -3060,6 +3060,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 f00165cd3b370c2637906c6023ffec452bb04be8..139a43c561c784b6d332e9b8de59f0874f5f8cec 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 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