Skip to content

Selectively replace instances of error-pattern with check-run-results #143537

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Oneirical
Copy link
Contributor

@Oneirical Oneirical commented Jul 6, 2025

I combed through the stderr of every error-pattern test, looking for patterns that would be troublesome in a check-run-results context.

The following should keep error-pattern:

hashmap-capacity-overflow.rs
overflowing-neg-nonzero.rs
overflowing-pow-signed.rs
overflowing-pow-unsigned.rs
copy-nonoverlapping.rs
copy.rs
str-get_unchecked.rs
test-tasks-invalid-value.rs

The reason these are problematic is because they contain line numbers in their stderr which refers to parts of the Rust compiler. For example, copy-nonoverlapping.rs's error message starts withthread 'main' panicked at /rustc/FAKE_PREFIX/library/core/src/ptr/mod.rs:522:5:. That means that changing this unrelated file at any point in the future would result in this test failing.

After this, there are hundreds of tests which contain lines such as thread 'main' panicked at /checkout/tests/ui/precondition-checks/slice-from-raw-parts-mut.rs:13:30:

These would start failing if the test was ever modified to have additional lines. However, this vulnerability is contained to the test itself, and in almost all cases, the line number is actually important for the test's purpose. Therefore, I think this would be unwise to normalize away these numbers.

If we aim to remove error-pattern completely, a possible approach would be to normalize the stderr of these flaky tests to remove the paths leading to the Rust compiler files.

If you would like to review my methodology, here is the log I used to review the test stderrs: https://triage.rust-lang.org/gha-logs/rust-lang/rust/45509161982

Closes #134889

@rustbot rustbot added PG-exploit-mitigations Project group: Exploit mitigations T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Jul 6, 2025
@rust-log-analyzer

This comment has been minimized.

@Oneirical Oneirical force-pushed the uncountable-infinity branch from 211c933 to 5abe0ed Compare July 6, 2025 20:14
@rust-log-analyzer

This comment has been minimized.

@Oneirical Oneirical force-pushed the uncountable-infinity branch from 5abe0ed to 168f65c Compare July 6, 2025 22:06
@rust-log-analyzer

This comment has been minimized.

@Oneirical Oneirical force-pushed the uncountable-infinity branch from 168f65c to 4b544a1 Compare July 7, 2025 21:07
@rust-log-analyzer

This comment has been minimized.

@Oneirical Oneirical force-pushed the uncountable-infinity branch from 4b544a1 to ca0bf4b Compare July 8, 2025 02:03
@Oneirical Oneirical changed the title Replace remaining instances of error-pattern with //~? ERROR in tests/ui Selectively replace instances of error-pattern with check-run-results Jul 8, 2025
@rust-log-analyzer
Copy link
Collaborator

The job aarch64-gnu-llvm-19-1 failed! Check out the build log: (web) (plain enhanced) (plain)

Click to see the possible cause of the failure (guessed by this bot)
------------------------------------------


---- [ui] tests/ui/binop/binop-fail-3.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/binop/binop-fail-3/binop-fail-3.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/binop-fail-3.rs:6:5:
quux
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/binop/binop-fail-3" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/binop/binop-fail-3/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/binop/binop-fail-3.rs:6:5:
quux
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/borrowck/issue-28934" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/borrowck/issue-28934/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/borrowck/issue-28934.rs:14:9:
explicit panic
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/consts/issue-29798" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/consts/issue-29798/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/consts/issue-29798.rs:6:5:
index out of bounds: the len is 5 but the index is 5
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/expr/if/expr-if-panic-fn" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/expr/if/expr-if-panic-fn/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/expr/if/expr-if-panic-fn.rs:6:5:
explicit panic
---
The actual run.stderr differed from the expected run.stderr

error: 2 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/expr/if/if-cond-bot" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/expr/if/if-cond-bot/a"
--- stdout -------------------------------
bye
------------------------------------------
--- stderr -------------------------------

---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/extern/issue-18576" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/extern/issue-18576/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/extern/issue-18576.rs:11:5:
stop
---
1 error[E0310]: the parameter type `T` may not live long enough
-   --> $DIR/static-lifetime-tip-with-default-type.rs:7:24
+   --> $DIR/static-lifetime-tip-with-default-type.rs:5:24
3    |
4 LL | struct Foo<T, K = i32>(&'static T, &'static K);
5    |                        ^^^^^^^^^^

13    |             +++++++++
14 
15 error[E0310]: the parameter type `K` may not live long enough
-   --> $DIR/static-lifetime-tip-with-default-type.rs:7:36
+   --> $DIR/static-lifetime-tip-with-default-type.rs:5:36
17    |
18 LL | struct Foo<T, K = i32>(&'static T, &'static K);
19    |                                    ^^^^^^^^^^

27    |                +++++++++
28 
29 error[E0310]: the parameter type `T` may not live long enough
-   --> $DIR/static-lifetime-tip-with-default-type.rs:11:28
+   --> $DIR/static-lifetime-tip-with-default-type.rs:9:28
31    |
32 LL | struct Bar<r#T, r#K = i32>(&'static r#T, &'static r#K);
33    |                            ^^^^^^^^^^^^

41    |               +++++++++
42 
43 error[E0310]: the parameter type `K` may not live long enough
-   --> $DIR/static-lifetime-tip-with-default-type.rs:11:42
+   --> $DIR/static-lifetime-tip-with-default-type.rs:9:42
45    |
46 LL | struct Bar<r#T, r#K = i32>(&'static r#T, &'static r#K);
47    |                                          ^^^^^^^^^^^^

55    |                    +++++++++
56 
57 error[E0310]: the parameter type `T` may not live long enough
-   --> $DIR/static-lifetime-tip-with-default-type.rs:15:20
+   --> $DIR/static-lifetime-tip-with-default-type.rs:13:20
59    |
60 LL | struct Boo<T= i32>(&'static T);
61    |                    ^^^^^^^^^^

69    |             +++++++++
70 
71 error[E0310]: the parameter type `T` may not live long enough
-   --> $DIR/static-lifetime-tip-with-default-type.rs:19:8
+   --> $DIR/static-lifetime-tip-with-default-type.rs:17:8
73    |
74 LL | = i32>(&'static T);
75    |        ^^^^^^^^^^

83    |             +++++++++
84 
85 error[E0392]: lifetime parameter `'a` is never used
-   --> $DIR/static-lifetime-tip-with-default-type.rs:22:10
+   --> $DIR/static-lifetime-tip-with-default-type.rs:20:10
87    |
88 LL | struct S<'a, K: 'a = i32>(&'static K);
89    |          ^^ unused lifetime parameter

91    = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`
92 
93 error[E0310]: the parameter type `K` may not live long enough
-   --> $DIR/static-lifetime-tip-with-default-type.rs:22:27
+   --> $DIR/static-lifetime-tip-with-default-type.rs:20:27
95    |
96 LL | struct S<'a, K: 'a = i32>(&'static K);
97    |                           ^^^^^^^^^^

Note: some mismatched output was normalized before being compared
-   --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:5:24
-   --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:5:36
---
To only update this specific test, also pass `--test-args generic-associated-types/static-lifetime-tip-with-default-type.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs" "-Zthreads=1" "-Zsimulate-remapped-rust-src-base=/rustc/FAKE_PREFIX" "-Ztranslate-remapped-path-to-local-path=no" "-Z" "ignore-directory-in-diagnostics-source-blocks=/cargo" "-Z" "ignore-directory-in-diagnostics-source-blocks=/checkout/vendor" "--sysroot" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2" "--target=aarch64-unknown-linux-gnu" "--check-cfg" "cfg(test,FALSE)" "--error-format" "json" "--json" "future-incompat" "-Ccodegen-units=1" "-Zui-testing" "-Zdeduplicate-diagnostics=no" "-Zwrite-long-types-to-disk=no" "-Cstrip=debuginfo" "--emit" "metadata" "-C" "prefer-dynamic" "--out-dir" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/generic-associated-types/static-lifetime-tip-with-default-type" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"
stdout: none
--- stderr -------------------------------
error[E0310]: the parameter type `T` may not live long enough
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:5:24
   |
LL | struct Foo<T, K = i32>(&'static T, &'static K);
   |                        ^^^^^^^^^^
   |                        |
   |                        the parameter type `T` must be valid for the static lifetime...
   |                        ...so that the reference type `&'static T` does not outlive the data it points at
   |
help: consider adding an explicit lifetime bound
   |
LL | struct Foo<T: 'static, K = i32>(&'static T, &'static K);
   |             +++++++++

error[E0310]: the parameter type `K` may not live long enough
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:5:36
   |
LL | struct Foo<T, K = i32>(&'static T, &'static K);
   |                                    ^^^^^^^^^^
   |                                    |
   |                                    the parameter type `K` must be valid for the static lifetime...
   |                                    ...so that the reference type `&'static K` does not outlive the data it points at
   |
help: consider adding an explicit lifetime bound
   |
LL | struct Foo<T, K: 'static = i32>(&'static T, &'static K);
   |                +++++++++

error[E0310]: the parameter type `T` may not live long enough
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:9:28
   |
LL | struct Bar<r#T, r#K = i32>(&'static r#T, &'static r#K);
   |                            ^^^^^^^^^^^^
   |                            |
   |                            the parameter type `T` must be valid for the static lifetime...
   |                            ...so that the reference type `&'static T` does not outlive the data it points at
   |
help: consider adding an explicit lifetime bound
   |
LL | struct Bar<r#T: 'static, r#K = i32>(&'static r#T, &'static r#K);
   |               +++++++++

error[E0310]: the parameter type `K` may not live long enough
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:9:42
   |
LL | struct Bar<r#T, r#K = i32>(&'static r#T, &'static r#K);
   |                                          ^^^^^^^^^^^^
   |                                          |
   |                                          the parameter type `K` must be valid for the static lifetime...
   |                                          ...so that the reference type `&'static K` does not outlive the data it points at
   |
help: consider adding an explicit lifetime bound
   |
LL | struct Bar<r#T, r#K: 'static = i32>(&'static r#T, &'static r#K);
   |                    +++++++++

error[E0310]: the parameter type `T` may not live long enough
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:13:20
   |
LL | struct Boo<T= i32>(&'static T);
   |                    ^^^^^^^^^^
   |                    |
   |                    the parameter type `T` must be valid for the static lifetime...
   |                    ...so that the reference type `&'static T` does not outlive the data it points at
   |
help: consider adding an explicit lifetime bound
   |
LL | struct Boo<T: 'static= i32>(&'static T);
   |             +++++++++

error[E0310]: the parameter type `T` may not live long enough
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:17:8
   |
LL | = i32>(&'static T);
   |        ^^^^^^^^^^
   |        |
   |        the parameter type `T` must be valid for the static lifetime...
   |        ...so that the reference type `&'static T` does not outlive the data it points at
   |
---

error[E0392]: lifetime parameter `'a` is never used
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:20:10
   |
LL | struct S<'a, K: 'a = i32>(&'static K);
   |          ^^ unused lifetime parameter
   |
   = help: consider removing `'a`, referring to it in a field, or using a marker such as `PhantomData`

error[E0310]: the parameter type `K` may not live long enough
##[error]  --> /checkout/tests/ui/generic-associated-types/static-lifetime-tip-with-default-type.rs:20:27
   |
LL | struct S<'a, K: 'a = i32>(&'static K);
   |                           ^^^^^^^^^^
   |                           |
   |                           the parameter type `K` must be valid for the static lifetime...
   |                           ...so that the reference type `&'static K` does not outlive the data it points at
   |
help: consider adding an explicit lifetime bound
   |
LL | struct S<'a, K: 'a + 'static = i32>(&'static K);
   |                    +++++++++

error: aborting due to 8 previous errors

Some errors have detailed explanations: E0310, E0392.
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-12920" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-12920/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-12920.rs:6:5:
explicit panic
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-13202" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-13202/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-13202.rs:6:27:
bad input
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-20971" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-20971/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-20971.rs:18:5:
Hello, world!
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/issues/issue-23354-2.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-23354-2/issue-23354-2.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/issue-23354-2.rs:8:14:
panic evaluated
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-23354-2" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-23354-2/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-23354-2.rs:8:14:
panic evaluated
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-23354" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-23354/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-23354.rs:7:14:
panic evaluated
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/issues/issue-2470-bounds-check-overflow.rs stdout ----
Saved the actual run.stdout to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow/issue-2470-bounds-check-overflow.run.stdout`
normalized run.stdout:
ov1 base = 0xaae080356b10
ov1 idx = 0x155c1006ad62
ov1 sizeof::<usize>() = 0x8
ov1 idx * sizeof::<usize>() = 0xaae080356b10



The actual run.stdout differed from the expected run.stdout
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow/issue-2470-bounds-check-overflow.run.stderr`
---
error: 2 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-2470-bounds-check-overflow/a"
--- stdout -------------------------------
ov1 base = 0xaae080356b10
ov1 idx = 0x155c1006ad62
ov1 sizeof::<usize>() = 0x8
ov1 idx * sizeof::<usize>() = 0xaae080356b10
------------------------------------------
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-2470-bounds-check-overflow.rs:26:29:
index out of bounds: the len is 3 but the index is 23485150047586
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-2761" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-2761/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-2761.rs:6:5:
custom message
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-3029" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-3029/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-3029.rs:10:5:
so long
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-30380" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/issues/issue-30380/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/issues/issue-30380.rs:17:13:
panicking destructors ftw!
---
------------------------------------------


---- [ui] tests/ui/macros/assert-eq-macro-msg.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-eq-macro-msg/assert-eq-macro-msg.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/assert-eq-macro-msg.rs:6:5:
assertion `left == right` failed: 1 + 1 definitely should be 3
  left: 2
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-eq-macro-msg" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-eq-macro-msg/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/macros/assert-eq-macro-msg.rs:6:5:
assertion `left == right` failed: 1 + 1 definitely should be 3
---
------------------------------------------


---- [ui] tests/ui/macros/assert-matches-macro-msg.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-matches-macro-msg/assert-matches-macro-msg.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/assert-matches-macro-msg.rs:10:5:
assertion `left matches right` failed: 1 + 1 definitely should be 3
  left: 2
 right: 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-matches-macro-msg" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-matches-macro-msg/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/macros/assert-matches-macro-msg.rs:10:5:
assertion `left matches right` failed: 1 + 1 definitely should be 3
  left: 2
 right: 3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/macros/assert-ne-macro-msg.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-ne-macro-msg/assert-ne-macro-msg.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/assert-ne-macro-msg.rs:6:5:
assertion `left != right` failed: 1 + 1 definitely should not be 2
  left: 2
 right: 2
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-ne-macro-msg" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/assert-ne-macro-msg/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/macros/assert-ne-macro-msg.rs:6:5:
assertion `left != right` failed: 1 + 1 definitely should not be 2
  left: 2
 right: 2
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------

---
------------------------------------------


---- [ui] tests/ui/macros/die-macro-2.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/die-macro-2/die-macro-2.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/die-macro-2.rs:6:5:
test
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/die-macro-2" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/die-macro-2/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/macros/die-macro-2.rs:6:5:
test
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/unreachable-fmt-msg" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/unreachable-fmt-msg/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/macros/unreachable-fmt-msg.rs:6:5:
internal error: entered unreachable code: 6 is not prime
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/unreachable-static-msg" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/macros/unreachable-static-msg/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/macros/unreachable-static-msg.rs:6:5:
internal error: entered unreachable code: uhoh
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/match/expr-match-panic-fn" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/match/expr-match-panic-fn/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/match/expr-match-panic-fn.rs:6:5:
explicit panic
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/match/match-disc-bot" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/match/match-disc-bot/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/match/match-disc-bot.rs:6:5:
quux
---
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/match/match-wildcards/match-wildcards.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/match-wildcards.rs:8:13:
squirrelcupcake
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr
---
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/match/match-wildcards.rs:8:13:
squirrelcupcake
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/mir/alignment/borrow_misaligned_field_projection.rs stdout ----
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/borrow_misaligned_field_projection" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/borrow_misaligned_field_projection/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/alignment/borrow_misaligned_field_projection.rs:14:35:
misaligned pointer dereference: address must be a multiple of 0x4 but is 0xffffeb6b9d39
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_borrow" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_borrow/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/alignment/misaligned_borrow.rs:10:20:
misaligned pointer dereference: address must be a multiple of 0x4 but is 0xffffcae08d79
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_mut_borrow" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_mut_borrow/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/alignment/misaligned_mut_borrow.rs:10:20:
misaligned pointer dereference: address must be a multiple of 0x4 but is 0xffffde3a9109
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_lhs" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_lhs/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/alignment/misaligned_lhs.rs:10:9:
misaligned pointer dereference: address must be a multiple of 0x4 but is 0xffffd2a5fa29
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_rhs" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/misaligned_rhs/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/alignment/misaligned_rhs.rs:10:18:
misaligned pointer dereference: address must be a multiple of 0x4 but is 0xffffe5bbaf19
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/two_pointers" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/alignment/two_pointers/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/alignment/two_pointers.rs:12:21:
misaligned pointer dereference: address must be a multiple of 0x4 but is 0xffffe8781d51
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/convert_non_enum_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/convert_non_enum_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/convert_non_enum_break.rs:19:30:
trying to construct an enum from an invalid value 0x10000
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/convert_non_enum_niche_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/convert_non_enum_niche_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/convert_non_enum_niche_break.rs:26:33:
trying to construct an enum from an invalid value 0x5
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/mir/enum/negative_discr_break.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/negative_discr_break/negative_discr_break.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/negative_discr_break.rs:13:30:
trying to construct an enum from an invalid value 0xfd
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/negative_discr_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/negative_discr_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/negative_discr_break.rs:13:30:
trying to construct an enum from an invalid value 0xfd
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/mir/enum/niche_option_tuple_break.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/niche_option_tuple_break/niche_option_tuple_break.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/niche_option_tuple_break.rs:19:18:
trying to construct an enum from an invalid value 0x3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/niche_option_tuple_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/niche_option_tuple_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/niche_option_tuple_break.rs:19:18:
trying to construct an enum from an invalid value 0x3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/mir/enum/numbered_variants_break.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/numbered_variants_break/numbered_variants_break.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/numbered_variants_break.rs:12:30:
trying to construct an enum from an invalid value 0x3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/numbered_variants_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/numbered_variants_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/numbered_variants_break.rs:12:30:
trying to construct an enum from an invalid value 0x3
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/mir/enum/option_with_bigger_niche_break.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/option_with_bigger_niche_break/option_with_bigger_niche_break.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/option_with_bigger_niche_break.rs:13:38:
trying to construct an enum from an invalid value 0x0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/option_with_bigger_niche_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/option_with_bigger_niche_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/option_with_bigger_niche_break.rs:13:38:
trying to construct an enum from an invalid value 0x0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/mir/enum/plain_no_data_break.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/plain_no_data_break/plain_no_data_break.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/plain_no_data_break.rs:13:30:
trying to construct an enum from an invalid value 0x1
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/plain_no_data_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/plain_no_data_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/plain_no_data_break.rs:13:30:
trying to construct an enum from an invalid value 0x1
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/single_with_repr_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/single_with_repr_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/single_with_repr_break.rs:12:33:
trying to construct an enum from an invalid value 0x1
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/with_niche_int_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/with_niche_int_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/with_niche_int_break.rs:20:33:
trying to construct an enum from an invalid value 0x4
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/mir/enum/wrap_break.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/wrap_break/wrap_break.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/wrap_break.rs:13:31:
trying to construct an enum from an invalid value 0x0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/wrap_break" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/enum/wrap_break/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/enum/wrap_break.rs:13:31:
trying to construct an enum from an invalid value 0x0
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/mir/mir_codegen_calls_converging_drops_2.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_codegen_calls_converging_drops_2/mir_codegen_calls_converging_drops_2.run.stderr`
normalized run.stderr:
complex called
dropped

thread 'main' panicked at $DIR/mir_codegen_calls_converging_drops_2.rs:27:5:
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_codegen_calls_converging_drops_2" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_codegen_calls_converging_drops_2/a"
stdout: none
--- stderr -------------------------------
complex called
dropped

---
------------------------------------------


---- [ui] tests/ui/mir/mir_dynamic_drops_1.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_1/mir_dynamic_drops_1.run.stderr`
normalized run.stderr:
drop 1
drop 2

thread 'main' panicked at $DIR/mir_dynamic_drops_1.rs:29:5:
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_1" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_1/a"
stdout: none
--- stderr -------------------------------
drop 1
drop 2

thread 'main' panicked at /checkout/tests/ui/mir/mir_dynamic_drops_1.rs:29:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/mir/mir_dynamic_drops_2.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_2/mir_dynamic_drops_2.run.stderr`
normalized run.stderr:
drop 1

thread 'main' panicked at $DIR/mir_dynamic_drops_2.rs:28:5:
explicit panic
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_2" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_2/a"
stdout: none
--- stderr -------------------------------
drop 1

thread 'main' panicked at /checkout/tests/ui/mir/mir_dynamic_drops_2.rs:28:5:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/mir/mir_dynamic_drops_3.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_3/mir_dynamic_drops_3.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/mir_dynamic_drops_3.rs:20:5:
unwind happens
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_3" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_dynamic_drops_3/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/mir_dynamic_drops_3.rs:20:5:
unwind happens
---
------------------------------------------


---- [ui] tests/ui/mir/mir_indexing_oob_1.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_1/mir_indexing_oob_1.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/mir_indexing_oob_1.rs:9:5:
index out of bounds: the len is 5 but the index is 10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_1" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_1/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/mir_indexing_oob_1.rs:9:5:
index out of bounds: the len is 5 but the index is 10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/mir/mir_indexing_oob_2.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_2/mir_indexing_oob_2.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/mir_indexing_oob_2.rs:9:5:
index out of bounds: the len is 5 but the index is 10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_2" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_2/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/mir_indexing_oob_2.rs:9:5:
index out of bounds: the len is 5 but the index is 10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/mir/mir_indexing_oob_3.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_3/mir_indexing_oob_3.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/mir_indexing_oob_3.rs:9:5:
index out of bounds: the len is 5 but the index is 10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_3" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/mir_indexing_oob_3/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/mir_indexing_oob_3.rs:9:5:
index out of bounds: the len is 5 but the index is 10
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/borrowed_mut_null" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/borrowed_mut_null/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/null/borrowed_mut_null.rs:7:35:
null pointer dereference occurred
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/borrowed_null_zst" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/borrowed_null_zst/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/null/borrowed_null_zst.rs:7:30:
null pointer dereference occurred
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/borrowed_null" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/borrowed_null/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/null/borrowed_null.rs:7:31:
null pointer dereference occurred
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/null_rhs" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/null_rhs/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/null/null_rhs.rs:8:18:
null pointer dereference occurred
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/null_lhs" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/null_lhs/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/null/null_lhs.rs:8:9:
null pointer dereference occurred
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/two_pointers" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/mir/null/two_pointers/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/mir/null/two_pointers.rs:10:21:
null pointer dereference occurred
---
------------------------------------------


---- [ui] tests/ui/nll/issue-51345-2.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/nll/issue-51345-2/issue-51345-2.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/issue-51345-2.rs:7:26:
explicit panic
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/nll/issue-51345-2" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/nll/issue-51345-2/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/nll/issue-51345-2.rs:7:26:
explicit panic
---
------------------------------------------


---- [ui] tests/ui/numbers-arithmetic/overflowing-mul.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/numbers-arithmetic/overflowing-mul/overflowing-mul.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/overflowing-mul.rs:9:13:
attempt to multiply with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
---
------------------------------------------


---- [ui] tests/ui/numbers-arithmetic/overflowing-sub.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/numbers-arithmetic/overflowing-sub/overflowing-sub.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/overflowing-sub.rs:9:14:
attempt to subtract with overflow
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/numbers-arithmetic/overflowing-sub" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/numbers-arithmetic/overflowing-sub/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/numbers-arithmetic/overflowing-sub.rs:9:14:
attempt to subtract with overflow
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panic-runtime/unwind-rec" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panic-runtime/unwind-rec/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/panic-runtime/unwind-rec.rs:6:5:
explicit panic
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panic-runtime/unwind-rec2" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panic-runtime/unwind-rec2/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/panic-runtime/unwind-rec2.rs:10:5:
explicit panic
---
------------------------------------------


---- [ui] tests/ui/panics/explicit-panic-msg.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/explicit-panic-msg/explicit-panic-msg.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/explicit-panic-msg.rs:14:5:
wooooo
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/explicit-panic-msg" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/explicit-panic-msg/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/panics/explicit-panic-msg.rs:14:5:
wooooo
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-arg" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-arg/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/panics/panic-arg.rs:10:7:
woe
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-in-cleanup" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_BACKTRACE="0" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-in-cleanup/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/panics/panic-in-cleanup.rs:21:5:
explicit panic
---
   5:     0xfff2d1601cc0 - std::panicking::default_hook::h54ea5ea81be7e0b3
   6:     0xfff2d1602a14 - std::panicking::rust_panic_with_hook::h6bbaba8625a0bdb7
   7:     0xfff2d1602804 - std::panicking::begin_panic::{{closure}}::hfab38009f1de6b45
   8:     0xfff2d15fe834 - std::sys::backtrace::__rust_end_short_backtrace::h69cda4476f8a0e34
   9:     0xfff2d15a9d4c - std::panicking::begin_panic::h9e709a842ec4352d
  10:     0xab7ba1560c2c - <panic_in_cleanup::Bomb as core::ops::drop::Drop>::drop::hc5380daef7d2918c
  11:     0xab7ba1560bf8 - core::ptr::drop_in_place<panic_in_cleanup::Bomb>::h9e63116961ab1ce4
  12:     0xab7ba1560c60 - panic_in_cleanup::main::h912dd26ba7846c32
  13:     0xab7ba1560be0 - core::ops::function::FnOnce::call_once::h7db42876b9615be0
  14:     0xab7ba1560b5c - std::sys::backtrace::__rust_begin_short_backtrace::hc594f22d2b86979f
  15:     0xab7ba1560b40 - std::rt::lang_start::{{closure}}::hd7aebbff8ee7187b
  16:     0xfff2d15ddae0 - std::rt::lang_start_internal::hef43ac96c7b7bbf9
  17:     0xab7ba1560b24 - std::rt::lang_start::hbde93c3bf646b4de
  18:     0xab7ba1560ca8 - main
  19:     0xfff2d1372294 - <unknown>
  20:     0xfff2d1372378 - __libc_start_main
  21:     0xab7ba15609f0 - _start
  22:                0x0 - <unknown>

---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-in-ffi" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_BACKTRACE="0" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-in-ffi/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/panics/panic-in-ffi.rs:19:5:
Test
---
   5:     0xff5dd5821cc0 - std::panicking::default_hook::h54ea5ea81be7e0b3
   6:     0xff5dd5822a14 - std::panicking::rust_panic_with_hook::h6bbaba8625a0bdb7
   7:     0xff5dd5822668 - std::panicking::begin_panic_handler::{{closure}}::h1756391be75753d6
   8:     0xff5dd581e828 - std::sys::backtrace::__rust_end_short_backtrace::h1cdc250cfa432dc4
   9:     0xff5dd58222d0 - __rustc[38f7526af4f53764]::rust_begin_unwind
  10:     0xff5dd57cc130 - core::panicking::panic_nounwind_fmt::h849ffac25a4e82c9
  11:     0xff5dd57cc1a8 - core::panicking::panic_nounwind::h062c25e9eabdc9f6
  12:     0xff5dd57cc374 - core::panicking::panic_cannot_unwind::h47af0527b602d2ef
  13:     0xaae620ac0dc8 - panic_in_ffi::panic_in_ffi::habab9cbfe285a0c2
  14:     0xaae620ac0dd4 - panic_in_ffi::main::h60fd900f08d2616a
  15:     0xaae620ac0ccc - core::ops::function::FnOnce::call_once::h418346e24026bec9
  16:     0xaae620ac0c5c - std::sys::backtrace::__rust_begin_short_backtrace::hc54951d4d000f3b6
---


The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-in-message-fmt" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_BACKTRACE="0" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-in-message-fmt/a"
stdout: none
--- stderr -------------------------------
panicked at /checkout/tests/ui/panics/panic-in-message-fmt.rs:17:9:
not yet implemented
thread panicked while processing panic. aborting.
---
------------------------------------------


---- [ui] tests/ui/panics/panic-macro-any.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-macro-any/panic-macro-any.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/panic-macro-any.rs:8:5:
Box<dyn Any>
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-macro-any" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/panics/panic-macro-any/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/panics/panic-macro-any.rs:8:5:
Box<dyn Any>
---
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/alignment/alignment.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/alignment.rs:9:9:
unsafe precondition(s) violated: Alignment::new_unchecked requires a power of two

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/alignment" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/alignment/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/alignment.rs:9:9:
unsafe precondition(s) violated: Alignment::new_unchecked requires a power of two

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/ascii-char-digit_unchecked.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/ascii-char-digit_unchecked/ascii-char-digit_unchecked.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/ascii-char-digit_unchecked.rs:9:9:
unsafe precondition(s) violated: `ascii::Char::digit_unchecked` input cannot exceed 9.

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/ascii-char-digit_unchecked" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/ascii-char-digit_unchecked/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/ascii-char-digit_unchecked.rs:9:9:
unsafe precondition(s) violated: `ascii::Char::digit_unchecked` input cannot exceed 9.

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/assert_unchecked.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/assert_unchecked/assert_unchecked.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/assert_unchecked.rs:7:9:
unsafe precondition(s) violated: hint::assert_unchecked must never be called when the condition is false

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/assert_unchecked" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/assert_unchecked/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/assert_unchecked.rs:7:9:
unsafe precondition(s) violated: hint::assert_unchecked must never be called when the condition is false

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/char-from_u32_unchecked.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/char-from_u32_unchecked/char-from_u32_unchecked.run.stderr`
normalized run.stderr:

thread 'main' panicked at $SRC_DIR/core/src/char/methods.rs:LL:COL:
unsafe precondition(s) violated: invalid value for `char`

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/char-from_u32_unchecked" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/char-from_u32_unchecked/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /rustc/FAKE_PREFIX/library/core/src/char/methods.rs:239:18:
unsafe precondition(s) violated: invalid value for `char`

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/copy.rs#misaligned_dst stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/copy.misaligned_dst/copy.misaligned_dst.run.stderr`
normalized run.stderr:

thread 'main' panicked at $SRC_DIR/core/src/ptr/mod.rs:LL:COL:
unsafe precondition(s) violated: ptr::copy requires that both pointer arguments are aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `misaligned_dst`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/copy.misaligned_dst" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/copy.misaligned_dst/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /rustc/FAKE_PREFIX/library/core/src/ptr/mod.rs:621:9:
unsafe precondition(s) violated: ptr::copy requires that both pointer arguments are aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/copy.rs#null_dst stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/copy.null_dst/copy.null_dst.run.stderr`
normalized run.stderr:

thread 'main' panicked at $SRC_DIR/core/src/ptr/mod.rs:LL:COL:
unsafe precondition(s) violated: ptr::copy requires that both pointer arguments are aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `null_dst`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/copy.null_dst" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/copy.null_dst/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /rustc/FAKE_PREFIX/library/core/src/ptr/mod.rs:621:9:
unsafe precondition(s) violated: ptr::copy requires that both pointer arguments are aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/layout.rs#badalign stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/layout.badalign/layout.badalign.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/layout.rs:11:9:
unsafe precondition(s) violated: Layout::from_size_align_unchecked requires that align is a power of 2 and the rounded-up allocation size does not exceed isize::MAX

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `badalign`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/layout.badalign" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/layout.badalign/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/layout.rs:11:9:
unsafe precondition(s) violated: Layout::from_size_align_unchecked requires that align is a power of 2 and the rounded-up allocation size does not exceed isize::MAX

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/layout.rs#toolarge stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/layout.toolarge/layout.toolarge.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/layout.rs:9:9:
unsafe precondition(s) violated: Layout::from_size_align_unchecked requires that align is a power of 2 and the rounded-up allocation size does not exceed isize::MAX

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `toolarge`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/layout.toolarge" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/layout.toolarge/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/layout.rs:9:9:
unsafe precondition(s) violated: Layout::from_size_align_unchecked requires that align is a power of 2 and the rounded-up allocation size does not exceed isize::MAX

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/nonnull.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonnull/nonnull.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/nonnull.rs:7:9:
unsafe precondition(s) violated: NonNull::new_unchecked requires that the pointer is non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonnull" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonnull/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/nonnull.rs:7:9:
unsafe precondition(s) violated: NonNull::new_unchecked requires that the pointer is non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/nonzero-from_mut_unchecked.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonzero-from_mut_unchecked/nonzero-from_mut_unchecked.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/nonzero-from_mut_unchecked.rs:10:9:
unsafe precondition(s) violated: NonZero::from_mut_unchecked requires the argument to dereference as non-zero

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonzero-from_mut_unchecked" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonzero-from_mut_unchecked/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/nonzero-from_mut_unchecked.rs:10:9:
unsafe precondition(s) violated: NonZero::from_mut_unchecked requires the argument to dereference as non-zero

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/read_volatile.rs#misaligned stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/read_volatile.misaligned/read_volatile.misaligned.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/read_volatile.rs:17:9:
unsafe precondition(s) violated: ptr::read_volatile requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `misaligned`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/read_volatile.misaligned" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/read_volatile.misaligned/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/read_volatile.rs:17:9:
unsafe precondition(s) violated: ptr::read_volatile requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/nonzero-new_unchecked.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonzero-new_unchecked/nonzero-new_unchecked.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/nonzero-new_unchecked.rs:7:9:
unsafe precondition(s) violated: NonZero::new_unchecked requires the argument to be non-zero

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonzero-new_unchecked" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/nonzero-new_unchecked/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/nonzero-new_unchecked.rs:7:9:
unsafe precondition(s) violated: NonZero::new_unchecked requires the argument to be non-zero

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/replace.rs#misaligned stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/replace.misaligned/replace.misaligned.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/replace.rs:17:9:
unsafe precondition(s) violated: ptr::replace requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `misaligned`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/replace.misaligned" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/replace.misaligned/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/replace.rs:17:9:
unsafe precondition(s) violated: ptr::replace requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/read_volatile.rs#null stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/read_volatile.null/read_volatile.null.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/read_volatile.rs:15:9:
unsafe precondition(s) violated: ptr::read_volatile requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `null`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/read_volatile.null" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/read_volatile.null/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/read_volatile.rs:15:9:
unsafe precondition(s) violated: ptr::read_volatile requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/replace.rs#null stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/replace.null/replace.null.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/replace.rs:15:9:
unsafe precondition(s) violated: ptr::replace requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `null`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/replace.null" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/replace.null/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/replace.rs:15:9:
unsafe precondition(s) violated: ptr::replace requires that the pointer argument is aligned and non-null

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/slice-from-raw-parts-mut.rs#misaligned stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/slice-from-raw-parts-mut.misaligned/slice-from-raw-parts-mut.misaligned.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/slice-from-raw-parts-mut.rs:13:30:
unsafe precondition(s) violated: slice::from_raw_parts_mut requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `misaligned`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/slice-from-raw-parts-mut.misaligned" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/slice-from-raw-parts-mut.misaligned/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/precondition-checks/slice-from-raw-parts-mut.rs:13:30:
unsafe precondition(s) violated: slice::from_raw_parts_mut requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.
------------------------------------------


---- [ui] tests/ui/precondition-checks/slice-from-raw-parts-mut.rs#null stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/slice-from-raw-parts-mut.null/slice-from-raw-parts-mut.null.run.stderr`
normalized run.stderr:

thread 'main' panicked at $DIR/slice-from-raw-parts-mut.rs:11:29:
unsafe precondition(s) violated: slice::from_raw_parts_mut requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX`

This indicates a bug in the program. This Undefined Behavior check is optional, and cannot be relied on for safety.
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
thread caused non-unwinding panic. aborting.



The actual run.stderr differed from the expected run.stderr

error in revision `null`: 1 errors occurred comparing run output.
status: signal: 6 (SIGABRT) (core dumped)
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/slice-from-raw-parts-mut.null" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/precondition-checks/slice-from-raw-parts-mut.null/a"
stdout: none
--- stderr -------------------------------

---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/process/tls-exit-status" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_NEWRT="1" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/process/tls-exit-status/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/process/tls-exit-status.rs:10:5:
please have a nonzero exit status
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 101
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/reachable/issue-948" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/reachable/issue-948/a"
stdout: none
--- stderr -------------------------------

thread 'main' panicked at /checkout/tests/ui/reachable/issue-948.rs:14:32:
beep boop
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
------------------------------------------


---- [ui] tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error-err.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error-err/termination-trait-for-box-dyn-error-err.run.stderr`
normalized run.stderr:
Error: Custom { kind: Other, error: "returned Box<dyn Error> from main()" }



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 1
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error-err" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-box-dyn-error-err/a"
stdout: none
--- stderr -------------------------------
Error: Custom { kind: Other, error: "returned Box<dyn Error> from main()" }
------------------------------------------


---- [ui] tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-never.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-never/termination-trait-for-never.run.stderr`
---

---- [ui] tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_err.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_err/termination-trait-for-result-box-error_err.run.stderr`
normalized run.stderr:
Error: Custom { kind: Other, error: "returned Box<Error> from main()" }



The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 1
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_err" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-result-box-error_err/a"
stdout: none
--- stderr -------------------------------
Error: Custom { kind: Other, error: "returned Box<Error> from main()" }
------------------------------------------


---- [ui] tests/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str-err.rs stdout ----
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str-err/termination-trait-for-str-err.run.stderr`
---
The actual run.stderr differed from the expected run.stderr

error: 1 errors occurred comparing run output.
status: exit status: 1
command: cd "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str-err" && RUSTC="/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" RUST_TEST_THREADS="4" "/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/rfcs/rfc-1937-termination-trait/termination-trait-for-str-err/a"
stdout: none
--- stderr -------------------------------
Error: "An error message for you"
------------------------------------------

---
Saved the actual run.stderr to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/threads-sendsync/task-spawn-barefn/task-spawn-barefn.run.stderr`
normalized run.stderr:

thread '<unnamed>' panicked at $DIR/task-spawn-barefn.rs:17:5:
assertion failed: "Ensure that the child thread runs by panicking".is_empty()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at $DIR/task-spawn-barefn.rs:12:9:
explicit panic

---
stdout: none
--- stderr -------------------------------

thread '<unnamed>' panicked at /checkout/tests/ui/threads-sendsync/task-spawn-barefn.rs:17:5:
assertion failed: "Ensure that the child thread runs by panicking".is_empty()
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

thread 'main' panicked at /checkout/tests/ui/threads-sendsync/task-spawn-barefn.rs:12:9:
explicit panic
------------------------------------------

@jieyouxu jieyouxu self-assigned this Jul 8, 2025
@jieyouxu jieyouxu added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 8, 2025
@jieyouxu
Copy link
Member

jieyouxu commented Jul 8, 2025

I'll still need to look at this, but you might find my comment in the other PR useful for context

@jieyouxu
Copy link
Member

jieyouxu commented Jul 8, 2025

Hm yeah, looking at this, I believe my comment on the other PR still holds:

We should be a bit careful with replacing //@ error-pattern with //@ check-run-results, because they are not mutually exclusive and they aren't really substitutes (if anything, they are complementary):

  • //@ error-pattern will look for a substring match in the run stderr (and stdout combined, IIRC) if the test is //@ run-fail.
  • //@ check-run-results instructs compiletest to snapshot run stderr/stdout, and compare a run's stderr/stdout against those exactly.

Concretely, this means:

  • //@ check-run-results is for when you really want the exact run stderr/stdout to not change. This will be especially relevant to tests that may include things that change between runs.
  • If a test needs such exact snapshot comparisons, you can still have error-pattern to enforce the check on the pattern that is critical, to prevent you from accidentally blessing the important thing away.
  • //@ error-pattern is good for checking the critical parts of the run stderr/stdout, cannot be easily blessed away, and is typically less sensitive than full stderr/stdout comparisons.

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for doing this experiment!

I think it is a non-goal to remove //@ error-pattern, but rather the original issue #134889 was proposing to double-check if //@ check-run-results should be added, and even if so, there probably are core strings that should be checked by //@ error-pattern.

check-run-results will snapshot and compare the exact stderr. However, the exact stderr is easy to accidentally bless away. error-pattern or regex-error-pattern is there to additionally ensure the key things we're looking for are still there, i.e. harder to accidentally bless away. This can be useful if you consider that (1) the exact stderr should be snapshotted and (2) there are specific key bits that you want to ensure its presence.

If anything, usually only having check-run-results can be suspicious.

I left a few initial remarks, I'll look at this more closely tmrw to see how we can pivot this into making it more clear what the use case of these two directives are.

Comment on lines 1 to 5
//@ run-fail
//@ error-pattern:index out of bounds
//@ check-run-results
//@ needs-subprocess

use std::mem::size_of;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: More concretely, I think we cannot attempt to capture run-time panic output, because the backtrace mechanism, std line numbers of underlying panic impls / macros, etc. can change between targets and is prone to breaking.

Comment on lines 8 to -9
// Verify that the expected source code is shown.
//@ error-pattern: pub struct SomeStruct {} // This line should be show
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: for tests like this, I believe it's intentional that we do not snapshot exact run output, because the exact paths themselves are not important but rather it's

The actual error is irrelevant. The important part it that is should show a snippet of the dependency's source.

Comment on lines -1 to -3
//@ error-pattern: r#T: 'static
//@ error-pattern: r#K: 'static
//@ error-pattern: T: 'static=
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: for this test though, I do wonder why this is error-pattern

Comment on lines -2 to -4
//@ error-pattern:assertion `left matches right` failed: 1 + 1 definitely should be 3
//@ error-pattern: left: 2
//@ error-pattern: right: 3
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: for example, I believe this intentionally does not try to capture full run output, because the exact panic does not matter, and only the core substrings do matter.

Comment on lines -2 to 3
//@ error-pattern: a call in this macro requires a mutable binding due to mutable borrow of `d`
//@ check-run-results
//FIXME: remove error-pattern (see #141896)
Copy link
Member

@jieyouxu jieyouxu Jul 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: I want to say this can be

//~? a call in this macro requires a mutable binding due to mutable borrow of `d`

but I think //~? had limitations in that it only matched on rustc check/build output?

@@ -1,7 +1,7 @@
//@ run-fail
//@ ignore-i686-pc-windows-msvc: #112480
//@ compile-flags: -C debug-assertions
//@ error-pattern: misaligned pointer dereference: address must be a multiple of 0x4 but is
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: same here, the exact assertion shape or content is not as important as having a core substring

@@ -1,5 +1,5 @@
//@ run-fail
//@ error-pattern:location-mod-assign-by-zero.rs
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: I believe these intentionally want to check for the file name in panic messages, but only to a file granularity (cf. #114814)

Comment on lines -4 to 5
//@ error-pattern: overflow
//@ check-run-results
//@ compile-flags: -C overflow-checks=yes
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: for example, only "overflow" within panic message matters and less about the exact panic message

Comment on lines -4 to -5
//@ error-pattern: panic in a function that cannot unwind
//@ error-pattern: Noisy Drop
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: this is an example where //@ check-run-results is not a replacement of //@ error-pattern but rather complementary, because //@ error-pattern makes sure you can't accidentally bless away the run snapshots.

@@ -1,6 +1,6 @@
//@ run-fail
//@ compile-flags: -Copt-level=3 -Cdebug-assertions=no -Zub-checks=yes
//@ error-pattern: unsafe precondition(s) violated: ptr::copy requires
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remark: for example, here this message is critical for test intention yet not the exact panic message

@Oneirical Oneirical marked this pull request as ready for review July 8, 2025 17:44
@rustbot
Copy link
Collaborator

rustbot commented Jul 8, 2025

Some changes occurred in tests/ui/sanitizer

cc @rcvalle

@Oneirical
Copy link
Contributor Author

@rustbot author

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 8, 2025
@rustbot
Copy link
Collaborator

rustbot commented Jul 8, 2025

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Jul 8, 2025
@bors
Copy link
Collaborator

bors commented Jul 9, 2025

☔ The latest upstream changes (presumably #143667) made this pull request unmergeable. Please resolve the merge conflicts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
PG-exploit-mitigations Project group: Exploit mitigations S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Audit run-fail ui tests to see if they need *exact* run stderr/stdout
5 participants