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

Conversation

petrochenkov
Copy link
Contributor

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.

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
Copy link
Collaborator

bors commented May 5, 2025

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

@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
Copy link
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
------
 > importing cache manifest from ghcr.io/rust-lang/rust-ci-cache:637d52fd4b642580188810b2d213c11aa3a3d2219df89616a68115a83d72b2ef61353e7514d28184e1c711c4ba72be220d92f8a60438c5cd694caadb1fb646a3:
------
##[endgroup]
Setting extra environment values for docker:  --env ENABLE_GCC_CODEGEN=1 --env GCC_EXEC_PREFIX=/usr/lib/gcc/
[CI_JOB_NAME=x86_64-gnu-llvm-19]
[CI_JOB_NAME=x86_64-gnu-llvm-19]
debug: `DISABLE_CI_RUSTC_IF_INCOMPATIBLE` configured.
---
sccache: Listening on address 127.0.0.1:4226
##[group]Configure the build
configure: processing command line
configure: 
configure: build.configure-args := ['--build=x86_64-unknown-linux-gnu', '--llvm-root=/usr/lib/llvm-19', '--enable-llvm-link-shared', '--set', 'rust.randomize-layout=true', '--set', 'rust.thin-lto-import-instr-limit=10', '--set', 'build.print-step-timings', '--enable-verbose-tests', '--set', 'build.metrics', '--enable-verbose-configure', '--enable-sccache', '--disable-manage-submodules', '--enable-locked-deps', '--enable-cargo-native-static', '--set', 'rust.codegen-units-std=1', '--set', 'dist.compression-profile=balanced', '--dist-compression-formats=xz', '--set', 'rust.lld=false', '--disable-dist-src', '--release-channel=nightly', '--enable-debug-assertions', '--enable-overflow-checks', '--enable-llvm-assertions', '--set', 'rust.verify-llvm-ir', '--set', 'rust.codegen-backends=llvm,cranelift,gcc', '--set', 'llvm.static-libstdcpp', '--set', 'gcc.download-ci-gcc=true', '--enable-new-symbol-mangling']
configure: build.build          := x86_64-unknown-linux-gnu
configure: target.x86_64-unknown-linux-gnu.llvm-config := /usr/lib/llvm-19/bin/llvm-config
configure: llvm.link-shared     := True
configure: rust.randomize-layout := True
configure: rust.thin-lto-import-instr-limit := 10
---
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) ---
/checkout/tests/ui/argument-suggestions/issue-100478.rs:35:5: ERROR: arguments to this function are incorrect [E0308]
  expected with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:79: ERROR: 35:5: 35:17: arguments to this function are incorrect [E0308]
/checkout/tests/ui/argument-suggestions/issue-100478.rs:36:5: ERROR: arguments to this function are incorrect [E0308]
  expected with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:36:79: ERROR: 36:5: 36:17: arguments to this function are incorrect [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/argument-suggestions/issue-100478.rs:35:79: ERROR: 35:5: 35:17: arguments to this function are incorrect [E0308]
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:5: ERROR: arguments to this function are incorrect [E0308]
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:18: NOTE: expected `T1`, found `T3`
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:48: NOTE: expected `T3`, found `T1`
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:33: NOTE: expected `T2`, found `T4`
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:63: NOTE: expected `T4`, found `T2`
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:17: HELP: did you mean
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:35:17: SUGGESTION: (T1::default(), T2::default(), T3::default(), T4::default())
/checkout/tests/ui/argument-suggestions/issue-100478.rs:36:79: ERROR: 36:5: 36:17: arguments to this function are incorrect [E0308]
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:36:5: ERROR: arguments to this function are incorrect [E0308]
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:36:63: NOTE: expected `T4`, found `T3`
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:36:18: NOTE: expected `T1`, found `T3`
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:36:48: NOTE: expected `T3`, found `T1`
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:36:17: HELP: swap these arguments
  reported with a different message: /checkout/tests/ui/argument-suggestions/issue-100478.rs:36:17: SUGGESTION: (T1::default(), T2::default(), T3::default(), /* T4 */)
---

thread '[ui] tests/ui/argument-suggestions/issue-100478.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/argument-suggestions/issue-100478" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-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/x86_64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2018"


---- [ui] tests/ui/compiletest-self-test/line-annotation-mismatches.rs stdout ----

error: 10 unexpected diagnostics reported, 10 expected diagnostics not reported
--- reported but not expected (from JSON output) ---
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:?: WARN: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [renamed_and_removed_lints]
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:21:5: ERROR: cannot find value `unresolved1` in this scope [E0425]
  expected on a different line: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:22:5: ERROR: cannot find value `unresolved1` in this scope
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:25:5: ERROR: cannot find value `unresolved2` in this scope [E0425]
  expected with a different kind: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:25:18: WARN: cannot find value `unresolved2` in this scope
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:28:5: ERROR: cannot find value `unresolved3` in this scope [E0425]
  expected with a different kind: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:28:18: UNKNOWN: cannot find value `unresolved3` in this scope
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:31:5: ERROR: cannot find value `unresolved4` in this scope [E0425]
  expected on a different line: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:32:5: WARN: cannot find value `unresolved4` in this scope
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:37:5: ERROR: cannot find value `unresolvedA` in this scope [E0425]
  expected with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:37:18: ERROR: stub message 1
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:41:5: ERROR: cannot find value `unresolvedB` in this scope [E0425]
  expected with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:41:18: WARN: stub message 2
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:?: WARN: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [renamed_and_removed_lints]
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:42:2: ERROR: `main` function not found in crate `line_annotation_mismatches` [E0601]
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:?: WARN: lint `raw_pointer_derive` has been removed: using derive with raw pointers is ok [renamed_and_removed_lints]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:?: WARN: kind and unknown line match the reported warning, but we do not suggest it
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:8:1: ERROR: this error does not exist
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:14:1: ERROR: aborting due to
  reported on a different line: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:?: ERROR: aborting due to 7 previous errors; 3 warnings emitted
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:?: ERROR: For more information about an error
  reported with a different kind: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:?: NOTE: For more information about an error, try `rustc --explain E0425`.
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:22:5: ERROR: cannot find value `unresolved1` in this scope
  reported on a different line: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:21:5: ERROR: cannot find value `unresolved1` in this scope [E0425]
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:25:18: WARN: cannot find value `unresolved2` in this scope
  reported with a different kind: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:25:5: ERROR: cannot find value `unresolved2` in this scope [E0425]
  reported with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:25:5: NOTE: not found in this scope
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:28:18: UNKNOWN: cannot find value `unresolved3` in this scope
  reported with a different kind: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:28:5: ERROR: cannot find value `unresolved3` in this scope [E0425]
  reported with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:28:5: NOTE: not found in this scope
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:32:5: WARN: cannot find value `unresolved4` in this scope
  reported on a different line: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:31:5: ERROR: cannot find value `unresolved4` in this scope [E0425]
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:37:18: ERROR: stub message 1
  reported with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:37:5: ERROR: cannot find value `unresolvedA` in this scope [E0425]
  reported with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:37:5: NOTE: not found in this scope
/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:41:18: WARN: stub message 2
  reported with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:41:5: ERROR: cannot find value `unresolvedB` in this scope [E0425]
  reported with a different message: /checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.rs:41:5: NOTE: not found in this scope
---

thread '[ui] tests/ui/compiletest-self-test/line-annotation-mismatches.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/compiletest-self-test/line-annotation-mismatches.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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/compiletest-self-test/line-annotation-mismatches" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-unknown-linux-gnu/native/rust-test-helpers" "-D" "raw_pointer_derive"


---- [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) ---
/checkout/tests/ui/feature-gates/feature-gate-cfi_encoding.rs:3:1: ERROR: the `#[cfi_encoding]` attribute is an experimental feature [E0658]
  expected with a different message: /checkout/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]
---
--- expected but not reported (from test file) ---
/checkout/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 a different message: /checkout/tests/ui/feature-gates/feature-gate-cfi_encoding.rs:3:1: ERROR: the `#[cfi_encoding]` attribute is an experimental feature [E0658]
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-cfi_encoding.rs:3:1: NOTE: see issue #89653 <https://github.com/rust-lang/rust/issues/89653> for more information
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-cfi_encoding.rs:3:1: HELP: add `#![feature(cfi_encoding)]` to the crate attributes to enable
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-cfi_encoding.rs:3:1: NOTE: 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:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-cfi_encoding" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:28: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:5: ERROR: 2:28: 2:34: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:5: ERROR: 2:28: 2:34: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:28: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:28: NOTE: expected `&(dyn Send,)`, found `&((),)`
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:13: NOTE: expected due to this
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:28: NOTE: expected reference `&(dyn Send,)`
  reported with a different message: /checkout/tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs:2:28: NOTE:    found reference `&((),)`
---

thread '[ui] tests/ui/feature-gates/feature-gate-unsized_tuple_coercion.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/feature-gates/feature-gate-unsized_tuple_coercion" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/impl-header-lifetime-elision/assoc-type" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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
--- reported but not expected (from JSON output) ---
/checkout/tests/ui/imports/issue-28134.rs:4:1: ERROR: `test` attribute cannot be used at crate level
  expected with a different message: /checkout/tests/ui/imports/issue-28134.rs:4:1: ERROR: 4:1: 4:9: `test` attribute cannot be used at crate level
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/imports/issue-28134.rs:4:1: ERROR: 4:1: 4:9: `test` attribute cannot be used at crate level
  reported with a different message: /checkout/tests/ui/imports/issue-28134.rs:4:1: ERROR: `test` attribute cannot be used at crate level
  reported with a different message: /checkout/tests/ui/imports/issue-28134.rs:4:2: HELP: perhaps you meant to use an outer attribute
---

thread '[ui] tests/ui/imports/issue-28134.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/imports/issue-28134" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/inference/hint-closure-signature-119266.rs:5:22: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/inference/hint-closure-signature-119266.rs:5:5: ERROR: 5:22: 5:23: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/inference/hint-closure-signature-119266.rs:5:5: ERROR: 5:22: 5:23: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/inference/hint-closure-signature-119266.rs:5:22: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/inference/hint-closure-signature-119266.rs:5:22: NOTE:       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:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/inference/hint-closure-signature-119266" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/integral-indexing.rs:6:7: ERROR: the type `[isize]` cannot be indexed by `u8` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:6:14: ERROR: : the type `[isize]` cannot be indexed by `u8`
/checkout/tests/ui/integral-indexing.rs:7:7: ERROR: the type `[isize]` cannot be indexed by `i8` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:7:14: ERROR: : the type `[isize]` cannot be indexed by `i8`
/checkout/tests/ui/integral-indexing.rs:8:7: ERROR: the type `[isize]` cannot be indexed by `u32` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:8:14: ERROR: : the type `[isize]` cannot be indexed by `u32`
/checkout/tests/ui/integral-indexing.rs:9:7: ERROR: the type `[isize]` cannot be indexed by `i32` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:9:14: ERROR: : the type `[isize]` cannot be indexed by `i32`
/checkout/tests/ui/integral-indexing.rs:12:18: ERROR: the type `[u8]` cannot be indexed by `u8` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:12:25: ERROR: : the type `[u8]` cannot be indexed by `u8`
/checkout/tests/ui/integral-indexing.rs:13:18: ERROR: the type `[u8]` cannot be indexed by `i8` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:13:25: ERROR: : the type `[u8]` cannot be indexed by `i8`
/checkout/tests/ui/integral-indexing.rs:14:18: ERROR: the type `[u8]` cannot be indexed by `u32` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:14:25: ERROR: : the type `[u8]` cannot be indexed by `u32`
/checkout/tests/ui/integral-indexing.rs:15:18: ERROR: the type `[u8]` cannot be indexed by `i32` [E0277]
  expected with a different message: /checkout/tests/ui/integral-indexing.rs:15:25: ERROR: : the type `[u8]` cannot be indexed by `i32`
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/integral-indexing.rs:6:14: ERROR: : the type `[isize]` cannot be indexed by `u8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:6:7: ERROR: the type `[isize]` cannot be indexed by `u8` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:6:7: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:6:7: HELP: the trait `SliceIndex<[isize]>` is not implemented for `u8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:6:7: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:6:7: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:6:7: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:6:7: NOTE: required for `Vec<isize>` to implement `Index<u8>`
/checkout/tests/ui/integral-indexing.rs:7:14: ERROR: : the type `[isize]` cannot be indexed by `i8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:7:7: ERROR: the type `[isize]` cannot be indexed by `i8` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:7:7: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:7:7: HELP: the trait `SliceIndex<[isize]>` is not implemented for `i8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:7:7: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:7:7: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:7:7: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:7:7: NOTE: required for `Vec<isize>` to implement `Index<i8>`
/checkout/tests/ui/integral-indexing.rs:8:14: ERROR: : the type `[isize]` cannot be indexed by `u32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:8:7: ERROR: the type `[isize]` cannot be indexed by `u32` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:8:7: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:8:7: HELP: the trait `SliceIndex<[isize]>` is not implemented for `u32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:8:7: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:8:7: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:8:7: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:8:7: NOTE: required for `Vec<isize>` to implement `Index<u32>`
/checkout/tests/ui/integral-indexing.rs:9:14: ERROR: : the type `[isize]` cannot be indexed by `i32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:9:7: ERROR: the type `[isize]` cannot be indexed by `i32` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:9:7: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:9:7: HELP: the trait `SliceIndex<[isize]>` is not implemented for `i32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:9:7: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:9:7: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:9:7: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:9:7: NOTE: required for `Vec<isize>` to implement `Index<i32>`
/checkout/tests/ui/integral-indexing.rs:12:25: ERROR: : the type `[u8]` cannot be indexed by `u8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:12:18: ERROR: the type `[u8]` cannot be indexed by `u8` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:12:18: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:12:18: HELP: the trait `SliceIndex<[u8]>` is not implemented for `u8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:12:18: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:12:18: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:12:18: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:12:18: NOTE: required for `[u8]` to implement `Index<u8>`
/checkout/tests/ui/integral-indexing.rs:13:25: ERROR: : the type `[u8]` cannot be indexed by `i8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:13:18: ERROR: the type `[u8]` cannot be indexed by `i8` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:13:18: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:13:18: HELP: the trait `SliceIndex<[u8]>` is not implemented for `i8`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:13:18: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:13:18: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:13:18: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:13:18: NOTE: required for `[u8]` to implement `Index<i8>`
/checkout/tests/ui/integral-indexing.rs:14:25: ERROR: : the type `[u8]` cannot be indexed by `u32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:14:18: ERROR: the type `[u8]` cannot be indexed by `u32` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:14:18: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:14:18: HELP: the trait `SliceIndex<[u8]>` is not implemented for `u32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:14:18: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:14:18: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:14:18: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:14:18: NOTE: required for `[u8]` to implement `Index<u32>`
/checkout/tests/ui/integral-indexing.rs:15:25: ERROR: : the type `[u8]` cannot be indexed by `i32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:15:18: ERROR: the type `[u8]` cannot be indexed by `i32` [E0277]
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:15:18: NOTE: slice indices are of type `usize` or ranges of `usize`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:15:18: HELP: the trait `SliceIndex<[u8]>` is not implemented for `i32`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:15:18: HELP: the following other types implement trait `SliceIndex<T>`:
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:15:18: HELP:   `usize` implements `SliceIndex<ByteStr>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:15:18: HELP:   `usize` implements `SliceIndex<[T]>`
  reported with a different message: /checkout/tests/ui/integral-indexing.rs:15:18: NOTE: required for `[u8]` to implement `Index<i32>`
---

thread '[ui] tests/ui/integral-indexing.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/integral-indexing" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/issues/issue-92741.rs:4:5: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/issues/issue-92741.rs:4:8: ERROR: 4:5: 6:36: mismatched types [E0308]
/checkout/tests/ui/issues/issue-92741.rs:10:5: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/issues/issue-92741.rs:10:8: ERROR: 10:5: 11:40: mismatched types [E0308]
/checkout/tests/ui/issues/issue-92741.rs:15:5: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/issues/issue-92741.rs:15:11: ERROR: 15:5: 16:36: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/issues/issue-92741.rs:4:8: ERROR: 4:5: 6:36: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:4:5: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:4:5: NOTE: expected `bool`, found `&mut bool`
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:4:5: HELP: consider removing the borrow
/checkout/tests/ui/issues/issue-92741.rs:10:8: ERROR: 10:5: 11:40: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:10:5: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:10:5: NOTE: expected `bool`, found `&mut bool`
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:10:5: HELP: consider removing the borrow
/checkout/tests/ui/issues/issue-92741.rs:15:11: ERROR: 15:5: 16:36: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:15:5: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:15:5: NOTE: expected `bool`, found `&mut bool`
  reported with a different message: /checkout/tests/ui/issues/issue-92741.rs:15:5: HELP: consider removing the borrow
---

thread '[ui] tests/ui/issues/issue-92741.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/issues/issue-92741" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/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 a different message: /checkout/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
/checkout/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 a different message: /checkout/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
/checkout/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 a different message: /checkout/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]
---
--- expected but not reported (from test file) ---
/checkout/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 a different message: /checkout/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
/checkout/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 a different message: /checkout/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
  reported with a different message: /checkout/tests/ui/lifetimes/no_lending_iterators.rs:18:17: NOTE: this lifetime must come from the implemented type
/checkout/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 a different message: /checkout/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]
  reported with a different message: /checkout/tests/ui/lifetimes/no_lending_iterators.rs:27:14: NOTE: 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:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/lifetimes/no_lending_iterators" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:5: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:9: ERROR: 5:5: 5:8: mismatched types [E0308]
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:24: ERROR: 9:19: 9:22: mismatched types [E0308]
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:22: ERROR: 13:19: 13:20: mismatched types [E0308]
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:24: ERROR: 17:19: 17:22: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:9: ERROR: 5:5: 5:8: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:5: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:5: NOTE: expected `Option<&[i32]>`, found `Option<&Vec<i32>>`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:5: NOTE: expected enum `Option<&[i32]>`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:5: NOTE:    found enum `Option<&Vec<i32>>`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:8: HELP: try using `.map(|v| &**v)` to convert `Option<&Vec<i32>>` to `Option<&[i32]>`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:5:8: SUGGESTION: .map(|v| &**v)
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:24: ERROR: 9:19: 9:22: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: NOTE: expected `&Vec<i32>`, found `&[_; 0]`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:9: NOTE: arguments to this method are incorrect
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: NOTE: expected reference `&Vec<i32>`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: NOTE:    found reference `&[_; 0]`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:5: HELP: the return type of this call is `&[_; 0]` due to the type of the argument passed
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: NOTE: this argument influences the return type of `unwrap_or`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:19: NOTE: method defined here
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:9: HELP: use `Option::map_or` to deref inner value of `Option`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:9:9: SUGGESTION: map_or
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:22: ERROR: 13:19: 13:20: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: NOTE: expected `&Vec<i32>`, found `&[i32]`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:9: NOTE: arguments to this method are incorrect
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: NOTE: expected reference `&Vec<i32>`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: NOTE:    found reference `&'a [i32]`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:5: HELP: the return type of this call is `&'a [i32]` due to the type of the argument passed
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: NOTE: this argument influences the return type of `unwrap_or`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:19: NOTE: method defined here
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:9: HELP: use `Option::map_or` to deref inner value of `Option`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:13:9: SUGGESTION: map_or
/checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:24: ERROR: 17:19: 17:22: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: NOTE: expected `&Vec<i32>`, found `&[_; 0]`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:9: NOTE: arguments to this method are incorrect
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: NOTE: expected reference `&Vec<i32>`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: NOTE:    found reference `&[_; 0]`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:5: HELP: the return type of this call is `&[_; 0]` due to the type of the argument passed
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: NOTE: this argument influences the return type of `unwrap_or`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:19: NOTE: method defined here
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:9: HELP: use `Result::map_or` to deref inner value of `Result`
  reported with a different message: /checkout/tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs:17:9: SUGGESTION: map_or
---

thread '[ui] tests/ui/mismatched_types/transforming-option-ref-issue-127545.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/mismatched_types/transforming-option-ref-issue-127545" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:1: ERROR: malformed `cfi_encoding` attribute input
  expected with a different message: /checkout/tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:17: ERROR: 10:1: 10:16: malformed `cfi_encoding` attribute input
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:17: ERROR: 10:1: 10:16: malformed `cfi_encoding` attribute input
  reported with a different message: /checkout/tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:1: ERROR: malformed `cfi_encoding` attribute input
  reported with a different message: /checkout/tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:1: HELP: must be of the form
  reported with a different message: /checkout/tests/ui/sanitizer/cfi/invalid-attr-encoding.rs:10:1: SUGGESTION: #[cfi_encoding = "encoding"]
---

thread '[ui] tests/ui/sanitizer/cfi/invalid-attr-encoding.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/sanitizer/cfi/invalid-attr-encoding" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/suggestions/issue-105645.rs:4:9: ERROR: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
  expected with a different message: /checkout/tests/ui/suggestions/issue-105645.rs:4:5: ERROR: 4:9: 4:18: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
---
--- expected but not reported (from test file) ---
/checkout/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 a different message: /checkout/tests/ui/suggestions/issue-105645.rs:4:9: ERROR: the trait bound `&[u8]: std::io::Write` is not satisfied [E0277]
  reported with a different message: /checkout/tests/ui/suggestions/issue-105645.rs:4:9: NOTE: the trait `std::io::Write` is not implemented for `&[u8]`
  reported with a different message: /checkout/tests/ui/suggestions/issue-105645.rs:4:5: NOTE: required by a bound introduced by this call
  reported with a different message: /checkout/tests/ui/suggestions/issue-105645.rs:4:9: HELP: 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:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/suggestions/issue-105645" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:32: ERROR: 9:28: 9:30: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:32: ERROR: 9:28: 9:30: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: NOTE: expected `O<()>`, found `()`
  reported with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:12: NOTE: expected due to this
  reported with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: NOTE:   expected enum `O<()>`
  reported with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: NOTE: found unit type `()`
  reported with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: HELP: try wrapping the expression in `option::O::Some`
  reported with a different message: /checkout/tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs:9:28: SUGGESTION: option::O::Some(
---

thread '[ui] tests/ui/suggestions/suggest-full-enum-variant-for-local-module.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-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/x86_64-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) ---
/checkout/tests/ui/type/option-ref-advice.rs:6:18: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/type/option-ref-advice.rs:6:26: ERROR: 6:18: 6:23: mismatched types [E0308]
/checkout/tests/ui/type/option-ref-advice.rs:10:18: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:25: ERROR: 10:18: 10:22: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/type/option-ref-advice.rs:6:26: ERROR: 6:18: 6:23: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:6:18: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:6:18: NOTE: expected `Option<&String>`, found `&Option<_>`
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:6:5: NOTE: arguments to this function are incorrect
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:6:18: NOTE:   expected enum `Option<&String>`
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:6:18: NOTE: found reference `&Option<_>`
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:6:18: HELP: consider removing the borrow
/checkout/tests/ui/type/option-ref-advice.rs:10:25: ERROR: 10:18: 10:22: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:18: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:18: NOTE: expected `Option<&String>`, found `&Option<String>`
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:5: NOTE: arguments to this function are incorrect
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:18: NOTE:   expected enum `Option<&String>`
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:18: NOTE: found reference `&Option<String>`
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:22: HELP: try using `.as_ref()` to convert `&Option<String>` to `Option<&String>`
  reported with a different message: /checkout/tests/ui/type/option-ref-advice.rs:10:22: SUGGESTION: .as_ref()
---

thread '[ui] tests/ui/type/option-ref-advice.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/type/option-ref-advice" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/typeck/issue-100246.rs:28:24: ERROR: `?` operator has incompatible types [E0308]
  expected with a different message: /checkout/tests/ui/typeck/issue-100246.rs:28:36: ERROR: 28:24: 28:35: `?` operator has incompatible types
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/typeck/issue-100246.rs:28:36: ERROR: 28:24: 28:35: `?` operator has incompatible types
  reported with a different message: /checkout/tests/ui/typeck/issue-100246.rs:28:24: ERROR: `?` operator has incompatible types [E0308]
  reported with a different message: /checkout/tests/ui/typeck/issue-100246.rs:28:24: NOTE: expected `Other`, found `&_`
  reported with a different message: /checkout/tests/ui/typeck/issue-100246.rs:28:24: NOTE: `?` operator cannot convert from `&_` to `Other`
  reported with a different message: /checkout/tests/ui/typeck/issue-100246.rs:28:24: NOTE: expected struct `Other`
  reported with a different message: /checkout/tests/ui/typeck/issue-100246.rs:28:24: NOTE: found reference `&_`
---

thread '[ui] tests/ui/typeck/issue-100246.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/typeck/issue-100246" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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) ---
/checkout/tests/ui/typeck/issue-89275.rs:28:29: ERROR: mismatched types [E0308]
  expected with a different message: /checkout/tests/ui/typeck/issue-89275.rs:28:40: ERROR: 28:29: 28:39: mismatched types [E0308]
---
--- expected but not reported (from test file) ---
/checkout/tests/ui/typeck/issue-89275.rs:28:40: ERROR: 28:29: 28:39: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/typeck/issue-89275.rs:28:29: ERROR: mismatched types [E0308]
  reported with a different message: /checkout/tests/ui/typeck/issue-89275.rs:28:29: NOTE: types differ in mutability
  reported with a different message: /checkout/tests/ui/typeck/issue-89275.rs:28:16: NOTE: expected due to this
  reported with a different message: /checkout/tests/ui/typeck/issue-89275.rs:28:29: NOTE: expected mutable reference `&mut Other`
  reported with a different message: /checkout/tests/ui/typeck/issue-89275.rs:28:29: NOTE:            found reference `&_`
---

thread '[ui] tests/ui/typeck/issue-89275.rs' panicked at src/tools/compiletest/src/runtest.rs:827:13:
errors differ from expected
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/x86_64-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/x86_64-unknown-linux-gnu/stage2" "--target=x86_64-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/x86_64-unknown-linux-gnu/test/ui/typeck/issue-89275" "-A" "unused" "-A" "internal_features" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/x86_64-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.

5 participants