Skip to content

compiletest: Improve diagnostics for line annotation mismatches #140622

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 3 commits into
base: master
Choose a base branch
from

Conversation

petrochenkov
Copy link
Contributor

@petrochenkov petrochenkov commented May 3, 2025

When some line annotations are missing or misplaced, compiletest reports an error, but the error is not very convenient.
This PR attempts to improve the user experience.

  • The "expected ... not found" messages are no longer duplicated.
  • The proc_res.status and proc_res.cmdline message is no longer put in the middle of other messages describing the annotation mismatches, it's now put into the end.
  • Compiletest now makes suggestions if there are fuzzy matches between expected and actually reported errors (e.g. the annotation is put on a wrong line).
  • Missing diagnostic kinds are no longer produce an error eagerly, but instead treated as always mismatching kinds, so they can produce suggestions telling the right kind.

I'll post screenshots in the thread below, but the behavior shown on the screenshots can be reproduced locally using the new test tests/ui/compiletest-self-test/line-annotation-mismatches.rs.

This also fixes #140940.

r? @jieyouxu

@rustbot rustbot added A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels May 3, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 3, 2025

Some changes occurred in src/tools/compiletest

cc @jieyouxu

@petrochenkov
Copy link
Contributor Author

Before: that's the only shown error when some annotation kind is missing.

before-bad

@petrochenkov
Copy link
Contributor Author

Before: without missing annotation kinds (some stuff at the top is cropped, but the picture is clear).
before

@petrochenkov
Copy link
Contributor Author

After: with top and bottom messages merged, and suggestions added.
after

@jieyouxu
Copy link
Member

jieyouxu commented May 3, 2025

Nice! I'll play around with this tmrw on Monday.

@bors

This comment was marked as resolved.

@petrochenkov
Copy link
Contributor Author

petrochenkov commented May 5, 2025

@jieyouxu
By the way, do you think the line1:column1: line2:column2: part is useful in error messages?

I does two things

  • it's displayed in annotation mismatch messages, but it mostly duplicates the file:line part which is also displayed.
    • the column part could be slightly useful in the past when we didn't have UI tests with captured .stderr, but probably not now
  • it can actually be matched in line annotations, e.g. you can write //~ ERROR 28:16: cannot find value, but it seems to be an antipattern

Also, this part is not always added, it's only added to primary diagnostics, but not to labels or suggestions, for example.

I think maybe just drop it to reduce noise and duplication.
(The column can be moved to file:line:column instead of being fully dropped, if necessary.)

@petrochenkov
Copy link
Contributor Author

Another possible improvement is to display relative paths to test files instead of absolute paths, also to avoid noise, duplication and rightward shift.

The main requirement for the paths is to be "clickable", so you can quickly go from a file:line string in shell to that file and line in editor.

Relative paths here would work for me (vscode + rust is the only directory open in the workspace), but I'm not sure what other setups people can use.

@jieyouxu
Copy link
Member

jieyouxu commented May 10, 2025

Sorry for the wait, I played around with this locally, and I think it's an improvement. I have some feedback:

  1. There's a starting message

    Blessing the stderr of in "/home/joe/repos/rust/tests/ui/compiletest-self-test/line-annotation-mismatches.stderr"

    where I think the actual source file path is missing. That might be pre-existing though.
    We could also maybe highlight the paths in yellow/magenta, but yeah.

  2. I think we should only report the source file path once, /home/joe/repos/rust/tests/ui/compiletest-self-test/line-annotation-mismatches.rs, otherwise repeating that seems very noisy if we do it for every mismatch, and the rightwards drift is kinda annoying.

  3. I don't find the line1:column1: line2:column2: useful in error messages themselves, especially not in error annotations like //~ ERROR 23:22 (unless someone wants to match on the exact column but...).

  4. The column numbers might be useful if you want to jump in exactly, e.g. with neovim and whatever you can nvim path.rs:LINE:COL, or if there's > 1 diagnostics emitted on the same line? But for me, the line number is usually what matters. Agreed on stderr snapshots. I guess it might be useful if you don't check in a stderr snapshot (//@ dont-check-compiler-stderr)? I would be fine dropping it, and see if people actually have a specific use case where they want the exact column number too.

  5. I'm fine with showing only a relative path, although if we go with (2), I don't think it would matter as much.

Misc design feedback

For the actual messages, I might even do sth like:

expected but with a different kind: tests/ui/compiletest-self-test/line-annotation-mismatches.rs:22:
          message: WARN: cannot find value `unresolved2` in this scope
    expected kind: ERROR
    reported kind: WARN

reported with a different message: tests/ui/compiletest-self-test/line-annotation-mismatches.rs:25:
    expected message: NOTE: not found in this scope
    reported message: 

If possible, we should report both the one we got and the one we expect (kind, message, line number).

Questions

  • Also, how does this handle normalizations? E.g. //@ normalize-stderr (haven't played around with this much, I'll do that tmrw).

@jieyouxu
Copy link
Member

Let me know what u think.
@rustbot author

@rustbot rustbot added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels May 10, 2025
@rustbot
Copy link
Collaborator

rustbot commented May 10, 2025

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

@petrochenkov
Copy link
Contributor Author

There's a starting message ... Blessing the stderr
That might be pre-existing though.

Yeah, that's from an entirely different part of compiletest, not from expected error checking.

I think we should only report the source file path once, /home/joe/repos/rust/tests/ui/compiletest-self-test/line-annotation-mismatches.rs

What do you suggest reporting instead?

For the actual messages, I might even do sth like:

I'll try something like this.

Also, how does this handle normalizations?

I didn't change any normalization rules.
As I understand, before the annotations are checked, the compiler output is normalized, but without applying the custom normalization rules from //@ normalize-stderr.

@jieyouxu
Copy link
Member

jieyouxu commented May 12, 2025

What do you suggest reporting instead?

I mean the relative-from-check-root path, i.e. tests/ui/compiletest-self-test/line-annotation-mismatches.rs. AFAIK, this is what the vast majority of contributors would use (i.e. ./x invocations from checkout root).

Agreed that the clickable part is really important, because I use that too :D Also compiletest.../ or ui/compiletest.../ is quite ambiguous especially when it's possible to run multiple test suites, so yeah.

@jieyouxu
Copy link
Member

jieyouxu commented May 12, 2025

Re. what I said about

I think we should only report the source file path once

I was thinking we only report that path once, i.e. after the "Blessing...` lines. However, now that I think about it some more, that can be easy to miss esp. if there's a ton of mismatches. So I was thinking maybe sth like what I suggested re.

expected but with a different kind: tests/ui/compiletest-self-test/line-annotation-mismatches.rs:22:
          message: WARN: cannot find value `unresolved2` in this scope
    expected kind: ERROR
    reported kind: WARN

reported with a different message: tests/ui/compiletest-self-test/line-annotation-mismatches.rs:25:
    expected message: NOTE: not found in this scope
    reported message: 

strikes a reasonable balance between repeating the file too many times (noisy) vs easy to miss / click. I'm ofc open to alternative formats, I can't really think of a better one in this moment.

bors added a commit to rust-lang-ci/rust that referenced this pull request May 14, 2025
…mpiler-errors

Fix a compiletest blessing message

It was showing compare mode instead of test name.

Fixes rust-lang#140945.
Noticed in rust-lang#140622 (comment).
jieyouxu added a commit to jieyouxu/rust that referenced this pull request May 14, 2025
…compiler-errors

Fix a compiletest blessing message

It was showing compare mode instead of test name.

Fixes rust-lang#140945.
Noticed in rust-lang#140622 (comment).
matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request May 14, 2025
…compiler-errors

Fix a compiletest blessing message

It was showing compare mode instead of test name.

Fixes rust-lang#140945.
Noticed in rust-lang#140622 (comment).
rust-timer added a commit to rust-lang-ci/rust that referenced this pull request May 15, 2025
Rollup merge of rust-lang#140953 - jieyouxu:compiletest-bless-msg, r=compiler-errors

Fix a compiletest blessing message

It was showing compare mode instead of test name.

Fixes rust-lang#140945.
Noticed in rust-lang#140622 (comment).
github-actions bot pushed a commit to rust-lang/rustc-dev-guide that referenced this pull request May 19, 2025
…errors

Fix a compiletest blessing message

It was showing compare mode instead of test name.

Fixes #140945.
Noticed in rust-lang/rust#140622 (comment).
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@petrochenkov
Copy link
Contributor Author

Updated the PR, although I still need to cleanup the code.

I've applied all the suggestions from the thread, but compressed the output from #140622 (comment) to eat less vertical space (more vertical space is inconvenient when there are many failing tests).
The output looks like this now.
New Bitmap Image

@rust-log-analyzer
Copy link
Collaborator

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

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

---- [ui] tests/ui/argument-suggestions/issue-100478.rs stdout ----

error: 2 unexpected diagnostics reported, 2 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/argument-suggestions/issue-100478.rs:35:5: ERROR: arguments to this function are incorrect [E0308]
  expected with message 35:5: 35:17: arguments to this function are incorrect [E0308]
tests/ui/argument-suggestions/issue-100478.rs:36:5: ERROR: arguments to this function are incorrect [E0308]
  expected with message 36:5: 36:17: arguments to this function are incorrect [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/argument-suggestions/issue-100478.rs:35:79: ERROR: 35:5: 35:17: arguments to this function are incorrect [E0308]
  reported with message arguments to this function are incorrect [E0308]
  reported with kind NOTE with message expected `T1`, found `T3`
  reported with kind NOTE with message expected `T3`, found `T1`
  reported with kind NOTE with message expected `T2`, found `T4`
  reported with kind NOTE with message expected `T4`, found `T2`
  reported with kind HELP with message did you mean
  reported with kind SUGGESTION with message (T1::default(), T2::default(), T3::default(), T4::default())
tests/ui/argument-suggestions/issue-100478.rs:36:79: ERROR: 36:5: 36:17: arguments to this function are incorrect [E0308]
  reported with message arguments to this function are incorrect [E0308]
  reported with kind NOTE with message expected `T4`, found `T3`
  reported with kind NOTE with message expected `T1`, found `T3`
  reported with kind NOTE with message expected `T3`, found `T1`
  reported with kind HELP with message swap these arguments
  reported with kind SUGGESTION with message (T1::default(), T2::default(), T3::default(), /* T4 */)
---

thread '[ui] tests/ui/argument-suggestions/issue-100478.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/argument-suggestions/issue-100478.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/argument-suggestions/issue-100478" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"

note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

---- [ui] tests/ui/async-await/incorrect-move-async-order-issue-79694.rs stdout ----

---

thread '[ui] tests/ui/async-await/incorrect-move-async-order-issue-79694.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/async-await/incorrect-move-async-order-issue-79694.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/async-await/incorrect-move-async-order-issue-79694" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2018"


---- [ui] tests/ui/feature-gates/feature-gate-cfi_encoding.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/feature-gates/feature-gate-cfi_encoding.rs:3:1: ERROR: the `#[cfi_encoding]` attribute is an experimental feature [E0658]
  expected with message 3:1: 3:25: the `#[cfi_encoding]` attribute is an experimental feature [E0658]
---
--- expected but not reported (from test file) ---
tests/ui/feature-gates/feature-gate-cfi_encoding.rs:3:26: ERROR: 3:1: 3:25: the `#[cfi_encoding]` attribute is an experimental feature [E0658]
  reported with message the `#[cfi_encoding]` attribute is an experimental feature [E0658]
  reported with kind NOTE with message see issue #89653 <https://github.com/rust-lang/rust/issues/89653> for more information
  reported with kind HELP with message add `#![feature(cfi_encoding)]` to the crate attributes to enable
  reported with kind NOTE with message this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date
---

thread '[ui] tests/ui/feature-gates/feature-gate-cfi_encoding.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/feature-gates/feature-gate-cfi_encoding.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/feature-gates/feature-gate-cfi_encoding" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:28: ERROR: mismatched types [E0308]
  expected with message 2:28: 2:34: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:5: ERROR: 2:28: 2:34: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `&(dyn Send,)`, found `&((),)`
  reported with kind NOTE with message expected due to this
  reported with kind NOTE with message expected reference `&(dyn Send,)`
  reported with kind NOTE with message    found reference `&((),)`
---

thread '[ui] tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/feature-gates/feature-gate-unsized_tuple_coercion.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/feature-gates/feature-gate-unsized_tuple_coercion" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/impl-header-lifetime-elision/assoc-type.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
---

thread '[ui] tests/ui/impl-header-lifetime-elision/assoc-type.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/impl-header-lifetime-elision/assoc-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/impl-header-lifetime-elision/assoc-type" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/imports/issue-28134.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
---

thread '[ui] tests/ui/imports/issue-28134.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/imports/issue-28134.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/imports/issue-28134" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--test"


---- [ui] tests/ui/inference/hint-closure-signature-119266.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/inference/hint-closure-signature-119266.rs:5:22: ERROR: mismatched types [E0308]
  expected with message 5:22: 5:23: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/inference/hint-closure-signature-119266.rs:5:5: ERROR: 5:22: 5:23: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message       found closure `{closure@$DIR/hint-closure-signature-119266.rs:2:13: 2:64}`
---

thread '[ui] tests/ui/inference/hint-closure-signature-119266.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/inference/hint-closure-signature-119266.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/inference/hint-closure-signature-119266" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/integral-indexing.rs stdout ----

error: 8 unexpected diagnostics reported, 8 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/integral-indexing.rs:6:7: ERROR: the type `[isize]` cannot be indexed by `u8` [E0277]
  expected with message : the type `[isize]` cannot be indexed by `u8`
tests/ui/integral-indexing.rs:7:7: ERROR: the type `[isize]` cannot be indexed by `i8` [E0277]
  expected with message : the type `[isize]` cannot be indexed by `i8`
tests/ui/integral-indexing.rs:8:7: ERROR: the type `[isize]` cannot be indexed by `u32` [E0277]
  expected with message : the type `[isize]` cannot be indexed by `u32`
tests/ui/integral-indexing.rs:9:7: ERROR: the type `[isize]` cannot be indexed by `i32` [E0277]
  expected with message : the type `[isize]` cannot be indexed by `i32`
tests/ui/integral-indexing.rs:12:18: ERROR: the type `[u8]` cannot be indexed by `u8` [E0277]
  expected with message : the type `[u8]` cannot be indexed by `u8`
tests/ui/integral-indexing.rs:13:18: ERROR: the type `[u8]` cannot be indexed by `i8` [E0277]
  expected with message : the type `[u8]` cannot be indexed by `i8`
tests/ui/integral-indexing.rs:14:18: ERROR: the type `[u8]` cannot be indexed by `u32` [E0277]
  expected with message : the type `[u8]` cannot be indexed by `u32`
tests/ui/integral-indexing.rs:15:18: ERROR: the type `[u8]` cannot be indexed by `i32` [E0277]
  expected with message : the type `[u8]` cannot be indexed by `i32`
---
--- expected but not reported (from test file) ---
tests/ui/integral-indexing.rs:6:14: ERROR: : the type `[isize]` cannot be indexed by `u8`
  reported with message the type `[isize]` cannot be indexed by `u8` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[isize]>` is not implemented for `u8`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `Vec<isize>` to implement `Index<u8>`
tests/ui/integral-indexing.rs:7:14: ERROR: : the type `[isize]` cannot be indexed by `i8`
  reported with message the type `[isize]` cannot be indexed by `i8` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[isize]>` is not implemented for `i8`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `Vec<isize>` to implement `Index<i8>`
tests/ui/integral-indexing.rs:8:14: ERROR: : the type `[isize]` cannot be indexed by `u32`
  reported with message the type `[isize]` cannot be indexed by `u32` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[isize]>` is not implemented for `u32`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `Vec<isize>` to implement `Index<u32>`
tests/ui/integral-indexing.rs:9:14: ERROR: : the type `[isize]` cannot be indexed by `i32`
  reported with message the type `[isize]` cannot be indexed by `i32` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[isize]>` is not implemented for `i32`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `Vec<isize>` to implement `Index<i32>`
tests/ui/integral-indexing.rs:12:25: ERROR: : the type `[u8]` cannot be indexed by `u8`
  reported with message the type `[u8]` cannot be indexed by `u8` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[u8]>` is not implemented for `u8`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `[u8]` to implement `Index<u8>`
tests/ui/integral-indexing.rs:13:25: ERROR: : the type `[u8]` cannot be indexed by `i8`
  reported with message the type `[u8]` cannot be indexed by `i8` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[u8]>` is not implemented for `i8`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `[u8]` to implement `Index<i8>`
tests/ui/integral-indexing.rs:14:25: ERROR: : the type `[u8]` cannot be indexed by `u32`
  reported with message the type `[u8]` cannot be indexed by `u32` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[u8]>` is not implemented for `u32`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `[u8]` to implement `Index<u32>`
tests/ui/integral-indexing.rs:15:25: ERROR: : the type `[u8]` cannot be indexed by `i32`
  reported with message the type `[u8]` cannot be indexed by `i32` [E0277]
  reported with kind NOTE with message slice indices are of type `usize` or ranges of `usize`
  reported with kind HELP with message the trait `SliceIndex<[u8]>` is not implemented for `i32`
  reported with kind HELP with message the following other types implement trait `SliceIndex<T>`:
  reported with kind HELP with message   `usize` implements `SliceIndex<ByteStr>`
  reported with kind HELP with message   `usize` implements `SliceIndex<[T]>`
  reported with kind NOTE with message required for `[u8]` to implement `Index<i32>`
---

thread '[ui] tests/ui/integral-indexing.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/integral-indexing.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/integral-indexing" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/issues/issue-92741.rs stdout ----

error: 3 unexpected diagnostics reported, 3 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/issues/issue-92741.rs:4:5: ERROR: mismatched types [E0308]
  expected with message 4:5: 6:36: mismatched types [E0308]
tests/ui/issues/issue-92741.rs:10:5: ERROR: mismatched types [E0308]
  expected with message 10:5: 11:40: mismatched types [E0308]
tests/ui/issues/issue-92741.rs:15:5: ERROR: mismatched types [E0308]
  expected with message 15:5: 16:36: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/issues/issue-92741.rs:4:8: ERROR: 4:5: 6:36: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `bool`, found `&mut bool`
  reported with kind HELP with message consider removing the borrow
tests/ui/issues/issue-92741.rs:10:8: ERROR: 10:5: 11:40: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `bool`, found `&mut bool`
  reported with kind HELP with message consider removing the borrow
tests/ui/issues/issue-92741.rs:15:11: ERROR: 15:5: 16:36: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `bool`, found `&mut bool`
  reported with kind HELP with message consider removing the borrow
---

thread '[ui] tests/ui/issues/issue-92741.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/issues/issue-92741.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/issues/issue-92741" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/lifetimes/no_lending_iterators.rs stdout ----

error: 3 unexpected diagnostics reported, 3 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/lifetimes/no_lending_iterators.rs:4:17: ERROR: associated type `Iterator::Item` is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
  expected with message 4:17: 4:18: associated type `Iterator::Item` is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
tests/ui/lifetimes/no_lending_iterators.rs:18:17: ERROR: in the trait associated type is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
  expected with message 18:17: 18:18: in the trait associated type is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
tests/ui/lifetimes/no_lending_iterators.rs:27:14: ERROR: lifetime parameters or bounds on associated type `Item` do not match the trait declaration [E0195]
  expected with message 27:14: 27:18: lifetime parameters or bounds on associated type `Item` do not match the trait declaration [E0195]
---
--- expected but not reported (from test file) ---
tests/ui/lifetimes/no_lending_iterators.rs:4:5: ERROR: 4:17: 4:18: associated type `Iterator::Item` is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
  reported with message associated type `Iterator::Item` is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
tests/ui/lifetimes/no_lending_iterators.rs:18:5: ERROR: 18:17: 18:18: in the trait associated type is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
  reported with message in the trait associated type is declared without lifetime parameters, so using a borrowed type for them requires that lifetime to come from the implemented type
  reported with kind NOTE with message this lifetime must come from the implemented type
tests/ui/lifetimes/no_lending_iterators.rs:27:5: ERROR: 27:14: 27:18: lifetime parameters or bounds on associated type `Item` do not match the trait declaration [E0195]
  reported with message lifetime parameters or bounds on associated type `Item` do not match the trait declaration [E0195]
  reported with kind NOTE with message lifetimes do not match associated type in trait
---

thread '[ui] tests/ui/lifetimes/no_lending_iterators.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/lifetimes/no_lending_iterators.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/lifetimes/no_lending_iterators" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs stdout ----

error: 4 unexpected diagnostics reported, 4 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:5: ERROR: mismatched types [E0308]
  expected with message 5:5: 5:8: mismatched types [E0308]
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: ERROR: mismatched types [E0308]
  expected with message 9:19: 9:22: mismatched types [E0308]
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: ERROR: mismatched types [E0308]
  expected with message 13:19: 13:20: mismatched types [E0308]
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: ERROR: mismatched types [E0308]
  expected with message 17:19: 17:22: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:9: ERROR: 5:5: 5:8: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `Option<&[i32]>`, found `Option<&Vec<i32>>`
  reported with kind NOTE with message expected enum `Option<&[i32]>`
  reported with kind NOTE with message    found enum `Option<&Vec<i32>>`
  reported with kind HELP with message try using `.map(|v| &**v)` to convert `Option<&Vec<i32>>` to `Option<&[i32]>`
  reported with kind SUGGESTION with message .map(|v| &**v)
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:24: ERROR: 9:19: 9:22: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `&Vec<i32>`, found `&[_; 0]`
  reported with kind NOTE with message arguments to this method are incorrect
  reported with kind NOTE with message expected reference `&Vec<i32>`
  reported with kind NOTE with message    found reference `&[_; 0]`
  reported with kind HELP with message the return type of this call is `&[_; 0]` due to the type of the argument passed
  reported with kind NOTE with message this argument influences the return type of `unwrap_or`
  reported with kind NOTE with message method defined here
  reported with kind HELP with message use `Option::map_or` to deref inner value of `Option`
  reported with kind SUGGESTION with message map_or
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:22: ERROR: 13:19: 13:20: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `&Vec<i32>`, found `&[i32]`
  reported with kind NOTE with message arguments to this method are incorrect
  reported with kind NOTE with message expected reference `&Vec<i32>`
  reported with kind NOTE with message    found reference `&'a [i32]`
  reported with kind HELP with message the return type of this call is `&'a [i32]` due to the type of the argument passed
  reported with kind NOTE with message this argument influences the return type of `unwrap_or`
  reported with kind NOTE with message method defined here
  reported with kind HELP with message use `Option::map_or` to deref inner value of `Option`
  reported with kind SUGGESTION with message map_or
tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:24: ERROR: 17:19: 17:22: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `&Vec<i32>`, found `&[_; 0]`
  reported with kind NOTE with message arguments to this method are incorrect
  reported with kind NOTE with message expected reference `&Vec<i32>`
  reported with kind NOTE with message    found reference `&[_; 0]`
  reported with kind HELP with message the return type of this call is `&[_; 0]` due to the type of the argument passed
  reported with kind NOTE with message this argument influences the return type of `unwrap_or`
  reported with kind NOTE with message method defined here
  reported with kind HELP with message use `Result::map_or` to deref inner value of `Result`
  reported with kind SUGGESTION with message map_or
---

thread '[ui] tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/mismatched_types/transforming-option-ref-issue-127545.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/mismatched_types/transforming-option-ref-issue-127545" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/sanitizer/cfi/invalid-attr-encoding.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:1: ERROR: malformed `cfi_encoding` attribute input
  expected with message 10:1: 10:16: malformed `cfi_encoding` attribute input
---
--- expected but not reported (from test file) ---
tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:17: ERROR: 10:1: 10:16: malformed `cfi_encoding` attribute input
  reported with message malformed `cfi_encoding` attribute input
  reported with kind HELP with message must be of the form
  reported with kind SUGGESTION with message #[cfi_encoding = "encoding"]
---

thread '[ui] tests/ui/sanitizer/cfi/invalid-attr-encoding.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/sanitizer/cfi/invalid-attr-encoding.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/sanitizer/cfi/invalid-attr-encoding" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-Clto" "-Cno-prepopulate-passes" "-Ctarget-feature=-crt-static" "-Zsanitizer=cfi"


---- [ui] tests/ui/suggestions/issue-105645.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/suggestions/issue-105645.rs:4:9: ERROR: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
  expected with message 4:9: 4:18: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
---
--- expected but not reported (from test file) ---
tests/ui/suggestions/issue-105645.rs:4:5: ERROR: 4:9: 4:18: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
  reported with message the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
  reported with kind NOTE with message the trait `std::io::Write` is not implemented for `&[u8]`
  reported with kind NOTE with message required by a bound introduced by this call
  reported with kind HELP with message the trait `std::io::Write` is implemented for `&mut [u8]`
---

thread '[ui] tests/ui/suggestions/issue-105645.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/suggestions/issue-105645.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/suggestions/issue-105645" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: ERROR: mismatched types [E0308]
  expected with message 9:28: 9:30: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:32: ERROR: 9:28: 9:30: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `O<()>`, found `()`
  reported with kind NOTE with message expected due to this
  reported with kind NOTE with message   expected enum `O<()>`
  reported with kind NOTE with message found unit type `()`
  reported with kind HELP with message try wrapping the expression in `option::O::Some`
  reported with kind SUGGESTION with message option::O::Some(
---

thread '[ui] tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/suggestions/suggest-full-enum-variant-for-local-module.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/suggestions/suggest-full-enum-variant-for-local-module" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/type/option-ref-advice.rs stdout ----

error: 2 unexpected diagnostics reported, 2 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/type/option-ref-advice.rs:6:18: ERROR: mismatched types [E0308]
  expected with message 6:18: 6:23: mismatched types [E0308]
tests/ui/type/option-ref-advice.rs:10:18: ERROR: mismatched types [E0308]
  expected with message 10:18: 10:22: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/type/option-ref-advice.rs:6:26: ERROR: 6:18: 6:23: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `Option<&String>`, found `&Option<_>`
  reported with kind NOTE with message arguments to this function are incorrect
  reported with kind NOTE with message   expected enum `Option<&String>`
  reported with kind NOTE with message found reference `&Option<_>`
  reported with kind HELP with message consider removing the borrow
tests/ui/type/option-ref-advice.rs:10:25: ERROR: 10:18: 10:22: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message expected `Option<&String>`, found `&Option<String>`
  reported with kind NOTE with message arguments to this function are incorrect
  reported with kind NOTE with message   expected enum `Option<&String>`
  reported with kind NOTE with message found reference `&Option<String>`
  reported with kind HELP with message try using `.as_ref()` to convert `&Option<String>` to `Option<&String>`
  reported with kind SUGGESTION with message .as_ref()
---

thread '[ui] tests/ui/type/option-ref-advice.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/type/option-ref-advice.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/type/option-ref-advice" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/typeck/issue-100246.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/typeck/issue-100246.rs:28:24: ERROR: `?` operator has incompatible types [E0308]
  expected with message 28:24: 28:35: `?` operator has incompatible types
---
--- expected but not reported (from test file) ---
tests/ui/typeck/issue-100246.rs:28:36: ERROR: 28:24: 28:35: `?` operator has incompatible types
  reported with message `?` operator has incompatible types [E0308]
  reported with kind NOTE with message expected `Other`, found `&_`
  reported with kind NOTE with message `?` operator cannot convert from `&_` to `Other`
  reported with kind NOTE with message expected struct `Other`
  reported with kind NOTE with message found reference `&_`
---

thread '[ui] tests/ui/typeck/issue-100246.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/typeck/issue-100246.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/typeck/issue-100246" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"


---- [ui] tests/ui/typeck/issue-89275.rs stdout ----

error: 1 unexpected diagnostics reported, 1 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
tests/ui/typeck/issue-89275.rs:28:29: ERROR: mismatched types [E0308]
  expected with message 28:29: 28:39: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
tests/ui/typeck/issue-89275.rs:28:40: ERROR: 28:29: 28:39: mismatched types [E0308]
  reported with message mismatched types [E0308]
  reported with kind NOTE with message types differ in mutability
  reported with kind NOTE with message expected due to this
  reported with kind NOTE with message expected mutable reference `&mut Other`
  reported with kind NOTE with message            found reference `&_`
---

thread '[ui] tests/ui/typeck/issue-89275.rs' panicked at src/tools/compiletest/src/runtest.rs:936:13:
errors differ from expected
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/typeck/issue-89275.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/typeck/issue-89275" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers"



failures:
    [ui] tests/ui/argument-suggestions/issue-100478.rs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-compiletest Area: The compiletest test runner A-testsuite Area: The testsuite used to check the correctness of rustc S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. T-bootstrap Relevant to the bootstrap subteam: Rust's build system (x.py and src/bootstrap) 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.

compiletest "not found errors" output is badly formatted
5 participants