diff --git a/debian/patches/u-fixtestignores-ppc64el.patch b/debian/patches/u-fixtestignores-ppc64el.patch index cf2fc7a1d8..b1cc854e27 100644 --- a/debian/patches/u-fixtestignores-ppc64el.patch +++ b/debian/patches/u-fixtestignores-ppc64el.patch @@ -88,3 +88,96 @@ Bug: https://github.com/rust-lang/rust/issues/50989 // ignore-sparc // ignore-mips +--- a/src/test/ui/asm-out-assign-imm.stderr ++++ b/src/test/ui/asm-out-assign-imm.stderr +@@ -1,5 +1,5 @@ + error[E0384]: cannot assign twice to immutable variable `x` +- --> $DIR/asm-out-assign-imm.rs:30:9 ++ --> $DIR/asm-out-assign-imm.rs:32:9 + | + LL | x = 1; + | ----- first assignment to `x` +--- a/src/test/ui/target-feature-gate.rs ++++ b/src/test/ui/target-feature-gate.rs +@@ -12,6 +12,8 @@ + // ignore-aarch64 + // ignore-wasm + // ignore-emscripten ++// ignore-powerpc64 ++// ignore-powerpc64le + // gate-test-sse4a_target_feature + // gate-test-powerpc_target_feature + // gate-test-avx512_target_feature +--- a/src/test/ui/target-feature-gate.stderr ++++ b/src/test/ui/target-feature-gate.stderr +@@ -1,5 +1,5 @@ + error[E0658]: the target feature `avx512bw` is currently unstable +- --> $DIR/target-feature-gate.rs:26:18 ++ --> $DIR/target-feature-gate.rs:28:18 + | + LL | #[target_feature(enable = "avx512bw")] + | ^^^^^^^^^^^^^^^^^^^ +--- a/src/test/ui/target-feature-wrong.rs ++++ b/src/test/ui/target-feature-wrong.rs +@@ -14,6 +14,8 @@ + // ignore-emscripten + // ignore-mips + // ignore-powerpc ++// ignore-powerpc64 ++// ignore-powerpc64le + // ignore-s390x + + #![feature(target_feature)] +--- a/src/test/ui/target-feature-wrong.stderr ++++ b/src/test/ui/target-feature-wrong.stderr +@@ -1,35 +1,35 @@ + error: #[target_feature] attribute must be of the form #[target_feature(..)] +- --> $DIR/target-feature-wrong.rs:21:1 ++ --> $DIR/target-feature-wrong.rs:23:1 + | + LL | #[target_feature = "+sse2"] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + error: the feature named `foo` is not valid for this target +- --> $DIR/target-feature-wrong.rs:23:18 ++ --> $DIR/target-feature-wrong.rs:25:18 + | + LL | #[target_feature(enable = "foo")] + | ^^^^^^^^^^^^^^ + + error: #[target_feature(..)] only accepts sub-keys of `enable` currently +- --> $DIR/target-feature-wrong.rs:25:18 ++ --> $DIR/target-feature-wrong.rs:27:18 + | + LL | #[target_feature(bar)] + | ^^^ + + error: #[target_feature(..)] only accepts sub-keys of `enable` currently +- --> $DIR/target-feature-wrong.rs:27:18 ++ --> $DIR/target-feature-wrong.rs:29:18 + | + LL | #[target_feature(disable = "baz")] + | ^^^^^^^^^^^^^^^ + + error: #[target_feature(..)] can only be applied to `unsafe` function +- --> $DIR/target-feature-wrong.rs:31:1 ++ --> $DIR/target-feature-wrong.rs:33:1 + | + LL | #[target_feature(enable = "sse2")] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + + error: attribute should be applied to a function +- --> $DIR/target-feature-wrong.rs:35:1 ++ --> $DIR/target-feature-wrong.rs:37:1 + | + LL | #[target_feature(enable = "sse2")] + | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ +@@ -38,7 +38,7 @@ + | -------------- not a function + + error: cannot use #[inline(always)] with #[target_feature] +- --> $DIR/target-feature-wrong.rs:39:1 ++ --> $DIR/target-feature-wrong.rs:41:1 + | + LL | #[inline(always)] + | ^^^^^^^^^^^^^^^^^