ubuntu-disable-ppc64el-asm-tests
authorDebian Rust Maintainers <pkg-rust-maintainers@alioth-lists.debian.net>
Sat, 14 Jan 2023 08:38:46 +0000 (08:38 +0000)
committerFabian Gruenbichler <debian@fabian.gruenbichler.email>
Sat, 14 Jan 2023 08:38:46 +0000 (08:38 +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 8266f1566c423f76a89f40b1c84d4f972f257a36..bc114ab2d23deeb6274da17c582e4e5f88638ecf 100644 (file)
@@ -3112,6 +3112,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 b1bfd612b90e5f9c8e0fe1ba451ede0348f153be..d8bca031234295787fb947da1589354f028b616a 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