Skip to content

Conversation

clubby789
Copy link
Contributor

Fixes #145516

@rustbot
Copy link
Collaborator

rustbot commented Aug 25, 2025

r? @Mark-Simulacrum

rustbot has assigned @Mark-Simulacrum.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot rustbot added A-tidy Area: The tidy tool 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) labels Aug 25, 2025
@rustbot
Copy link
Collaborator

rustbot commented Aug 25, 2025

These commits modify the Cargo.lock file. Unintentional changes to Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

These commits modify the library/Cargo.lock file. Unintentional changes to library/Cargo.lock can be introduced when switching branches and rebasing PRs.

If this was unintentional then you should revert the changes before this PR is merged.
Otherwise, you can ignore this comment.

The list of allowed third-party dependencies may have been modified! You must ensure that any new dependencies have compatible licenses before merging.

cc @davidtwco, @wesleywiser

@rust-log-analyzer

This comment has been minimized.

@samueltardieu
Copy link
Member

samueltardieu commented Aug 25, 2025

Error looks spurious, restarting the job to check.

@klensy
Copy link
Contributor

klensy commented Aug 25, 2025

Need to rebase, lock file was changed.

@samueltardieu
Copy link
Member

Need to rebase, lock file was changed.

Ok, I canceled the rerun job then, no need to waste CPU cycles if it will run again anyway.

@rustbot

This comment has been minimized.

@clubby789
Copy link
Contributor Author

@rustbot blocked (#145858 (comment))

@rustbot rustbot added S-blocked Status: Blocked on something else such as an RFC or other implementation work. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Aug 25, 2025
@bors
Copy link
Collaborator

bors commented Aug 26, 2025

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

@samueltardieu
Copy link
Member

samueltardieu commented Aug 26, 2025

@clubby789 #145858 is merged, you may rebase
@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-blocked Status: Blocked on something else such as an RFC or other implementation work. labels Aug 26, 2025
@rustbot
Copy link
Collaborator

rustbot commented Aug 26, 2025

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

@rustbot

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@clubby789 clubby789 closed this Aug 27, 2025
@rustbot rustbot removed the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Aug 27, 2025
@clubby789 clubby789 reopened this Aug 27, 2025
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Aug 27, 2025
@rust-log-analyzer

This comment has been minimized.

@klensy
Copy link
Contributor

klensy commented Aug 27, 2025

Oh, yes, stringdex is tested to recover perf in #145911, so shouldn't be bumped.

@bors
Copy link
Collaborator

bors commented Aug 28, 2025

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

@Mark-Simulacrum Mark-Simulacrum 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 Sep 7, 2025
@rustbot

This comment has been minimized.

"windows_x86_64_gnullvm",
"windows_x86_64_msvc",
"wit-bindgen[email protected]", // pinned to a specific version due to using a binary blob: <https://github.com/rust-lang/rust/pull/136395#issuecomment-2692769062>
"wit-bindgen",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@Mark-Simulacrum I'm not really familiar with the mentioned issue - does wit-bindgen-rt being dropped and replaced with wit-bindgen resolve the binary blob issue?

Copy link
Member

Choose a reason for hiding this comment

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

I think no, https://docs.rs/crate/wit-bindgen/latest/source/build.rs looks like it's pulling in binary blobs from https://docs.rs/crate/wit-bindgen/latest/source/src/rt/, so it should remain pinned (just we now need to pin a different crate).

@clubby789
Copy link
Contributor Author

@bors try jobs=aarch64-gnu-llvm-19-1

rust-bors bot added a commit that referenced this pull request Sep 10, 2025
Weekly `cargo update` + update allowed dependencies list

try-job: aarch64-gnu-llvm-19-1
@rust-bors

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@rust-bors
Copy link

rust-bors bot commented Sep 10, 2025

💔 Test for 7557d75 failed: CI. Failed jobs:

@clubby789
Copy link
Contributor Author

Looks like one of the bumps (rustfix?) has improved and removed some duplication in .fixed files

@klensy
Copy link
Contributor

klensy commented Sep 15, 2025

Yes, #146605

@clubby789
Copy link
Contributor Author

@rustbot ready
We can either land this now, or after 146605 has gone through if doing that in its own PR is preferred

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

jyn514 commented Sep 16, 2025

I'm going to merge my PR first if that's ok, it will make some things easier for me downstream in Ferrocene and it sounds like the bindgen thing might take another round of review.

@bors
Copy link
Collaborator

bors commented Sep 19, 2025

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

compiler dependencies:
     Locking 82 packages to latest compatible versions
    Removing android-tzdata v0.1.1
    Updating anstyle-svg v0.1.10 -> v0.1.11
    Updating anyhow v1.0.99 -> v1.0.100
    Updating bitflags v2.9.3 -> v2.9.4
    Updating camino v1.1.11 -> v1.2.0
    Updating cfg-if v1.0.1 -> v1.0.3
    Updating chrono v0.4.41 -> v0.4.42
    Updating clap v4.5.45 -> v4.5.48
    Updating clap_builder v4.5.44 -> v4.5.48
    Updating clap_derive v4.5.45 -> v4.5.47
    Updating ctrlc v3.4.7 -> v3.5.0
    Updating dbus v0.9.7 -> v0.9.9
      Adding dispatch v0.2.0
    Updating dyn-clone v1.0.19 -> v1.0.20
    Updating erased-serde v0.4.6 -> v0.4.8
    Updating errno v0.3.13 -> v0.3.14
    Updating filetime v0.2.25 -> v0.2.26
    Updating form_urlencoded v1.2.1 -> v1.2.2
    Updating gimli v0.32.0 -> v0.32.3
      Adding hashbrown v0.16.0
    Updating humantime v2.2.0 -> v2.3.0
    Updating iana-time-zone v0.1.63 -> v0.1.64
    Updating idna v1.0.3 -> v1.1.0
    Updating indexmap v2.10.0 -> v2.11.4
    Updating ipc-channel v0.20.1 -> v0.20.2
    Updating jobserver v0.1.33 -> v0.1.34
    Updating js-sys v0.3.77 -> v0.3.80
    Updating libdbus-sys v0.2.5 -> v0.2.6
    Updating libffi v4.1.1 -> v4.1.2
    Updating libffi-sys v3.3.2 -> v3.3.3
    Updating libloading v0.8.8 -> v0.8.9
    Updating libredox v0.1.9 -> v0.1.10
    Updating linux-raw-sys v0.9.4 -> v0.11.0
    Updating log v0.4.27 -> v0.4.28
    Updating matchers v0.1.0 -> v0.2.0
    Updating normpath v1.3.0 -> v1.5.0
    Removing nu-ansi-term v0.46.0
    Removing overload v0.1.1
    Updating percent-encoding v2.3.1 -> v2.3.2
    Updating pest v2.8.1 -> v2.8.2
    Updating pest_derive v2.8.1 -> v2.8.2
    Updating pest_generator v2.8.1 -> v2.8.2
    Updating pest_meta v2.8.1 -> v2.8.2
    Updating potential_utf v0.1.2 -> v0.1.3
    Updating regex v1.11.1 -> v1.11.2
    Removing regex-automata v0.1.10
    Removing regex-automata v0.4.9
      Adding regex-automata v0.4.10
    Updating regex-lite v0.1.6 -> v0.1.7
    Removing regex-syntax v0.6.29
    Removing regex-syntax v0.8.5
      Adding regex-syntax v0.8.6
    Updating rustix v1.0.8 -> v1.1.2
    Updating schannel v0.1.27 -> v0.1.28
    Updating semver v1.0.26 -> v1.0.27
    Updating serde v1.0.219 -> v1.0.226
    Updating serde-untagged v0.1.8 -> v0.1.9
      Adding serde_core v1.0.226
    Updating serde_derive v1.0.219 -> v1.0.226
    Updating serde_json v1.0.142 -> v1.0.145
    Updating serde_path_to_error v0.1.17 -> v0.1.20
    Updating tempfile v3.20.0 -> v3.23.0
    Updating thiserror v2.0.15 -> v2.0.16
    Updating thiserror-impl v2.0.15 -> v2.0.16
    Updating tinyvec v1.9.0 -> v1.10.0
    Updating tracing-subscriber v0.3.18 -> v0.3.20
    Updating twox-hash v2.1.1 -> v2.1.2
    Updating unicode-ident v1.0.18 -> v1.0.19
    Updating url v2.5.4 -> v2.5.7
    Updating uuid v1.18.0 -> v1.18.1
    Updating wasi v0.14.2+wasi-0.2.4 -> v0.14.7+wasi-0.2.4
    Updating wasi-preview1-component-adapter-provider v36.0.1 -> v36.0.2
      Adding wasip2 v1.0.1+wasi-0.2.4
    Updating wasm-bindgen v0.2.100 -> v0.2.103
    Updating wasm-bindgen-backend v0.2.100 -> v0.2.103
    Updating wasm-bindgen-macro v0.2.100 -> v0.2.103
    Updating wasm-bindgen-macro-support v0.2.100 -> v0.2.103
    Updating wasm-bindgen-shared v0.2.100 -> v0.2.103
    Updating winapi-util v0.1.9 -> v0.1.11
    Removing windows v0.58.0
    Updating windows-core v0.58.0 -> v0.62.0
    Removing windows-implement v0.58.0
    Removing windows-interface v0.58.0
      Adding windows-link v0.2.0
    Updating windows-result v0.2.0 -> v0.4.0
    Updating windows-strings v0.1.0 -> v0.5.0
      Adding windows-sys v0.61.0
    Updating winnow v0.7.12 -> v0.7.13
      Adding wit-bindgen v0.46.0
    Removing wit-bindgen-rt v0.39.0
    Updating xattr v1.5.1 -> v1.6.1
    Updating zerocopy v0.8.26 -> v0.8.27
    Updating zerocopy-derive v0.8.26 -> v0.8.27

library dependencies:
     Locking 16 packages to latest compatible versions
    Updating addr2line v0.25.0 -> v0.25.1
    Updating cfg-if v1.0.1 -> v1.0.3
    Updating dlmalloc v0.2.10 -> v0.2.11
    Updating gimli v0.32.0 -> v0.32.3
      Adding windows-link v0.1.3
    Updating windows-sys v0.59.0 -> v0.60.2
    Updating windows-targets v0.52.6 -> v0.53.3
    Updating windows_aarch64_gnullvm v0.52.6 -> v0.53.0
    Updating windows_aarch64_msvc v0.52.6 -> v0.53.0
    Updating windows_i686_gnu v0.52.6 -> v0.53.0
    Updating windows_i686_gnullvm v0.52.6 -> v0.53.0
    Updating windows_i686_msvc v0.52.6 -> v0.53.0
    Updating windows_x86_64_gnu v0.52.6 -> v0.53.0
    Updating windows_x86_64_gnullvm v0.52.6 -> v0.53.0
    Updating windows_x86_64_msvc v0.52.6 -> v0.53.0
    Updating wit-bindgen v0.45.0 -> v0.45.1

rustbook dependencies:
     Locking 58 packages to latest compatible versions
    Updating ammonia v4.1.1 -> v4.1.2
    Removing android-tzdata v0.1.1
    Updating anyhow v1.0.99 -> v1.0.100
    Updating bitflags v2.9.2 -> v2.9.4
    Updating cc v1.2.33 -> v1.2.38
    Updating cfg-if v1.0.1 -> v1.0.3
    Updating chrono v0.4.41 -> v0.4.42
    Updating clap v4.5.45 -> v4.5.48
    Updating clap_builder v4.5.44 -> v4.5.48
    Updating clap_complete v4.5.57 -> v4.5.58
    Updating clap_derive v4.5.45 -> v4.5.47
    Updating errno v0.3.13 -> v0.3.14
      Adding find-msvc-tools v0.1.2
    Updating form_urlencoded v1.2.1 -> v1.2.2
    Updating getopts v0.2.23 -> v0.2.24
    Updating hashbrown v0.15.5 -> v0.16.0
    Updating iana-time-zone v0.1.63 -> v0.1.64
    Updating idna v1.0.3 -> v1.1.0
    Updating indexmap v2.10.0 -> v2.11.4
    Updating js-sys v0.3.77 -> v0.3.80
    Updating linux-raw-sys v0.9.4 -> v0.11.0
    Updating log v0.4.27 -> v0.4.28
    Updating normpath v1.3.0 -> v1.5.0
    Updating opener v0.8.2 -> v0.8.3
    Updating percent-encoding v2.3.1 -> v2.3.2
    Updating pest v2.8.1 -> v2.8.2
    Updating pest_derive v2.8.1 -> v2.8.2
    Updating pest_generator v2.8.1 -> v2.8.2
    Updating pest_meta v2.8.1 -> v2.8.2
    Updating potential_utf v0.1.2 -> v0.1.3
    Updating regex v1.11.1 -> v1.11.2
    Updating regex-automata v0.4.9 -> v0.4.10
    Updating regex-syntax v0.8.5 -> v0.8.6
    Updating rustix v1.0.8 -> v1.1.2
    Updating semver v1.0.26 -> v1.0.27
    Updating serde v1.0.219 -> v1.0.226
      Adding serde_core v1.0.226
    Updating serde_derive v1.0.219 -> v1.0.226
    Updating serde_json v1.0.142 -> v1.0.145
    Updating tempfile v3.20.0 -> v3.23.0
    Updating thiserror v2.0.15 -> v2.0.16
    Updating thiserror-impl v2.0.15 -> v2.0.16
    Updating unicode-ident v1.0.18 -> v1.0.19
    Updating url v2.5.4 -> v2.5.7
    Updating wasi v0.14.2+wasi-0.2.4 -> v0.14.7+wasi-0.2.4
      Adding wasip2 v1.0.1+wasi-0.2.4
    Updating wasm-bindgen v0.2.100 -> v0.2.103
    Updating wasm-bindgen-backend v0.2.100 -> v0.2.103
    Updating wasm-bindgen-macro v0.2.100 -> v0.2.103
    Updating wasm-bindgen-macro-support v0.2.100 -> v0.2.103
    Updating wasm-bindgen-shared v0.2.100 -> v0.2.103
    Updating winapi-util v0.1.9 -> v0.1.11
    Updating windows-core v0.61.2 -> v0.62.0
      Adding windows-link v0.2.0
    Updating windows-result v0.3.4 -> v0.4.0
    Updating windows-strings v0.4.2 -> v0.5.0
    Updating windows-sys v0.59.0 -> v0.61.0
    Updating winnow v0.7.12 -> v0.7.13
      Adding wit-bindgen v0.46.0
    Removing wit-bindgen-rt v0.39.0
@rustbot
Copy link
Collaborator

rustbot commented Sep 23, 2025

This PR was rebased onto a different master commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@rust-log-analyzer
Copy link
Collaborator

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

Click to see the possible cause of the failure (guessed by this bot)
test [ui] tests/ui/zero-sized/zero-sized-btreemap-insert.rs ... ok

failures:

---- [ui] tests/ui/codemap_tests/huge_multispan_highlight.rs#ascii stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/codemap_tests/huge_multispan_highlight.ascii/huge_multispan_highlight.ascii.svg`
diff of svg:

- <svg width="743px" height="758px" xmlns="http://www.w3.org/2000/svg">
+ <svg width="740px" height="758px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-ansi256-009 { fill: #FF5555 }
6     .fg-ansi256-012 { fill: #5555FF }
7     .container {


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args codemap_tests/huge_multispan_highlight.rs`

error in revision `ascii`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/codemap_tests/huge_multispan_highlight.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" "--cfg" "ascii" "--check-cfg" "cfg(test,FALSE,ascii,unicode)" "-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/codemap_tests/huge_multispan_highlight.ascii" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--color=always" "--error-format=human"
stdout: none
--- stderr -------------------------------
error[E0308]: `match` arms have incompatible types
  --> /checkout/tests/ui/codemap_tests/huge_multispan_highlight.rs:99:18
   |
---
------------------------------------------

---- [ui] tests/ui/codemap_tests/huge_multispan_highlight.rs#ascii stdout end ----
---- [ui] tests/ui/codemap_tests/huge_multispan_highlight.rs#unicode stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/codemap_tests/huge_multispan_highlight.unicode/huge_multispan_highlight.unicode.svg`
diff of svg:

- <svg width="743px" height="758px" xmlns="http://www.w3.org/2000/svg">
+ <svg width="740px" height="758px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-ansi256-009 { fill: #FF5555 }
6     .fg-ansi256-012 { fill: #5555FF }
7     .container {


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args codemap_tests/huge_multispan_highlight.rs`

error in revision `unicode`: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/codemap_tests/huge_multispan_highlight.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" "--cfg" "unicode" "--check-cfg" "cfg(test,FALSE,ascii,unicode)" "-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/codemap_tests/huge_multispan_highlight.unicode" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--color=always" "-Zunstable-options" "--error-format=human-unicode"
stdout: none
--- stderr -------------------------------
error[E0308]: `match` arms have incompatible types
   ╭▸ /checkout/tests/ui/codemap_tests/huge_multispan_highlight.rs:99:18
   │
---
---- [ui] tests/ui/diagnostic-flags/colored-session-opt-error.rs stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/diagnostic-flags/colored-session-opt-error/colored-session-opt-error.svg`
diff of svg:

- <svg width="750px" height="74px" xmlns="http://www.w3.org/2000/svg">
+ <svg width="740px" height="74px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-yellow { fill: #AA5500 }
6     .container {
7       padding: 0 10px;


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args diagnostic-flags/colored-session-opt-error.rs`

error: 1 errors occurred comparing output.
status: exit status: 0
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/diagnostic-flags/colored-session-opt-error.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)" "-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/diagnostic-flags/colored-session-opt-error" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-Cremark=foo" "--error-format=human" "--color=always" "-Cdebuginfo=0"
stdout: none
--- stderr -------------------------------
warning: -C remark requires "-C debuginfo=n" to show source locations
------------------------------------------

---- [ui] tests/ui/diagnostic-flags/colored-session-opt-error.rs stdout end ----
---- [ui] tests/ui/error-emitter/E0308-clarification.rs stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/error-emitter/E0308-clarification/E0308-clarification.svg`
diff of svg:

1 <svg width="740px" height="668px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-ansi256-009 { fill: #FF5555 }
6     .fg-ansi256-012 { fill: #5555FF }
7     .fg-magenta { fill: #AA00AA }


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args error-emitter/E0308-clarification.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-emitter/E0308-clarification.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)" "-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/error-emitter/E0308-clarification" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "-Zunstable-options" "--error-format=human-unicode" "--color=always"
stdout: none
--- stderr -------------------------------
error[E0308]: mismatched types
   ╭▸ /checkout/tests/ui/error-emitter/E0308-clarification.rs:15:10
   │
LL │ fn hide<T: Foo>(x: T) -> impl Foo {
   │                          ┬───────
   │                          │
   │                          the expected opaque type
   │                          the found opaque type
   ‡
LL │     x = (x.1, x.0);
   │          ━━━ expected `u32`, found `i32`
   │
   ├ note: expected opaque type `impl Foo` (`u32`)
   │          found opaque type `impl Foo` (`i32`)
   ╰ note: distinct uses of `impl Trait` result in different opaque types

error[E0308]: mismatched types
   ╭▸ /checkout/tests/ui/error-emitter/E0308-clarification.rs:15:15
   │
LL │ fn hide<T: Foo>(x: T) -> impl Foo {
   │                          ┬───────
   │                          │
   │                          the expected opaque type
   │                          the found opaque type
   ‡
LL │     x = (x.1, x.0);
   │               ━━━ expected `i32`, found `u32`
   │
   ├ note: expected opaque type `impl Foo` (`i32`)
   │          found opaque type `impl Foo` (`u32`)
   ╰ note: distinct uses of `impl Trait` result in different opaque types

error: aborting due to 2 previous errors

For more information about this error, try `rustc --explain E0308`.
------------------------------------------

---- [ui] tests/ui/error-emitter/E0308-clarification.rs stdout end ----
---- [ui] tests/ui/error-emitter/highlighting.rs stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/error-emitter/highlighting/highlighting.svg`
diff of svg:

1 <svg width="785px" height="434px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-ansi256-009 { fill: #FF5555 }
6     .fg-ansi256-010 { fill: #55FF55 }
7     .fg-ansi256-012 { fill: #5555FF }


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args error-emitter/highlighting.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-emitter/highlighting.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)" "-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/error-emitter/highlighting" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2018" "--error-format=human" "--color=always"
stdout: none
--- stderr -------------------------------
error[E0308]: mismatched types
  --> /checkout/tests/ui/error-emitter/highlighting.rs:21:11
   |
LL |     query(wrapped_fn);
   |     ----- ^^^^^^^^^^ one type is more general than the other
   |     |
   |     arguments to this function are incorrect
   |
   = note: expected fn pointer `for<'a> fn(Box<(dyn Any + Send + 'a)>) -> Pin<_>`
                 found fn item `fn(Box<(dyn Any + Send + 'static)>) -> Pin<_> {wrapped_fn}`
note: function defined here
  --> /checkout/tests/ui/error-emitter/highlighting.rs:10:4
   |
LL |   fn query(_: fn(Box<(dyn Any + Send + '_)>) -> Pin<Box<(
   |  ____^^^^^_-
LL | |     dyn Future<Output = Result<Box<(dyn Any + 'static)>, String>> + Send + 'static
LL | | )>>) {}
   | |___-

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
------------------------------------------

---- [ui] tests/ui/error-emitter/highlighting.rs stdout end ----
---- [ui] tests/ui/error-emitter/multiline-multipart-suggestion.rs stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/error-emitter/multiline-multipart-suggestion/multiline-multipart-suggestion.svg`
diff of svg:

1 <svg width="1306px" height="866px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-ansi256-009 { fill: #FF5555 }
6     .fg-ansi256-010 { fill: #55FF55 }
7     .fg-ansi256-012 { fill: #5555FF }


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args error-emitter/multiline-multipart-suggestion.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-emitter/multiline-multipart-suggestion.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)" "-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/error-emitter/multiline-multipart-suggestion" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--error-format=human" "--color=always"
stdout: none
--- stderr -------------------------------
error[E0106]: missing lifetime specifier
  --> /checkout/tests/ui/error-emitter/multiline-multipart-suggestion.rs:3:34
   |
LL | fn short(foo_bar: &Vec<&i32>) -> &i32 {
   |                   ----------     ^ expected named lifetime parameter
   |
   = help: this function's return type contains a borrowed value, but the signature does not say which one of `foo_bar`'s 2 lifetimes it is borrowed from
help: consider introducing a named lifetime parameter
   |
LL | fn short<'a>(foo_bar: &'a Vec<&'a i32>) -> &'a i32 {
   |         ++++           ++      ++           ++

error[E0106]: missing lifetime specifier
  --> /checkout/tests/ui/error-emitter/multiline-multipart-suggestion.rs:10:6
   |
LL |     foo_bar: &Vec<&i32>,
   |              ----------
LL |     something_very_long_so_that_the_line_will_wrap_around__________: i32,
LL | ) -> &i32 {
   |      ^ expected named lifetime parameter
   |
   = help: this function's return type contains a borrowed value, but the signature does not say which one of `foo_bar`'s 2 lifetimes it is borrowed from
help: consider introducing a named lifetime parameter
   |
LL ~ fn long<'a>(
LL ~     foo_bar: &'a Vec<&'a i32>,
LL |     something_very_long_so_that_the_line_will_wrap_around__________: i32,
LL ~ ) -> &'a i32 {
   |

error[E0106]: missing lifetime specifier
  --> /checkout/tests/ui/error-emitter/multiline-multipart-suggestion.rs:15:29
   |
LL |     foo_bar: &Vec<&i32>) -> &i32 {
   |              ----------     ^ expected named lifetime parameter
   |
   = help: this function's return type contains a borrowed value, but the signature does not say which one of `foo_bar`'s 2 lifetimes it is borrowed from
help: consider introducing a named lifetime parameter
   |
LL ~ fn long2<'a>(
LL ~     foo_bar: &'a Vec<&'a i32>) -> &'a i32 {
   |

error: aborting due to 3 previous errors

For more information about this error, try `rustc --explain E0106`.
------------------------------------------

---- [ui] tests/ui/error-emitter/multiline-multipart-suggestion.rs stdout end ----
---- [ui] tests/ui/error-emitter/unicode-output.rs stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/error-emitter/unicode-output/unicode-output.svg`
diff of svg:

1 <svg width="785px" height="434px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-ansi256-009 { fill: #FF5555 }
6     .fg-ansi256-010 { fill: #55FF55 }
7     .fg-ansi256-012 { fill: #5555FF }


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args error-emitter/unicode-output.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-emitter/unicode-output.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)" "-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/error-emitter/unicode-output" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2018" "-Zunstable-options" "--error-format=human-unicode" "--color=always"
stdout: none
--- stderr -------------------------------
error[E0308]: mismatched types
   ╭▸ /checkout/tests/ui/error-emitter/unicode-output.rs:20:11
   │
LL │     query(wrapped_fn);
   │     ┬──── ━━━━━━━━━━ one type is more general than the other
   │     │
   │     arguments to this function are incorrect
   │
   ╰ note: expected fn pointer `for<'a> fn(Box<(dyn Any + Send + 'a)>) -> Pin<_>`
                 found fn item `fn(Box<(dyn Any + Send + 'static)>) -> Pin<_> {wrapped_fn}`
note: function defined here
   ╭▸ /checkout/tests/ui/error-emitter/unicode-output.rs:9:4
   │
LL │   fn query(_: fn(Box<(dyn Any + Send + '_)>) -> Pin<Box<(
   │ ┌────━━━━━─┘
LL │ │     dyn Future<Output = Result<Box<(dyn Any + 'static)>, String>> + Send + 'static
LL │ │ )>>) {}
   ╰╴└───┘

error: aborting due to 1 previous error

For more information about this error, try `rustc --explain E0308`.
------------------------------------------

---- [ui] tests/ui/error-emitter/unicode-output.rs stdout end ----
---- [ui] tests/ui/error-emitter/multiline-removal-suggestion.rs stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/error-emitter/multiline-removal-suggestion/multiline-removal-suggestion.svg`
diff of svg:

- <svg width="2238px" height="3890px" xmlns="http://www.w3.org/2000/svg">
+ <svg width="2188px" height="3890px" xmlns="http://www.w3.org/2000/svg">
2   <style>
3     .fg { fill: #AAAAAA }
-     .bg { background: #000000 }
+     .bg { fill: #000000 }
5     .fg-ansi256-009 { fill: #FF5555 }
6     .fg-ansi256-010 { fill: #55FF55 }
7     .fg-ansi256-012 { fill: #5555FF }


The actual svg differed from the expected svg
To update references, rerun the tests and pass the `--bless` flag
To only update this specific test, also pass `--test-args error-emitter/multiline-removal-suggestion.rs`

error: 1 errors occurred comparing output.
status: exit status: 1
command: env -u RUSTC_LOG_COLOR RUSTC_ICE="0" RUST_BACKTRACE="short" "/checkout/obj/build/aarch64-unknown-linux-gnu/stage2/bin/rustc" "/checkout/tests/ui/error-emitter/multiline-removal-suggestion.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)" "-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/error-emitter/multiline-removal-suggestion" "-A" "unused" "-A" "internal_features" "-A" "unused_parens" "-A" "unused_braces" "-Crpath" "-Cdebuginfo=0" "-Lnative=/checkout/obj/build/aarch64-unknown-linux-gnu/native/rust-test-helpers" "--edition=2018" "--error-format=human" "--color=always"
stdout: none
--- stderr -------------------------------
error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:21:8
   |
LL |                 }).flatten()
   |                    ^^^^^^^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/traits/iterator.rs:1557:5
help: consider removing this method call, as the receiver has type `std::vec::IntoIter<HashSet<u8>>` and `std::vec::IntoIter<HashSet<u8>>: Iterator` trivially holds
   |
LL -             ts.into_iter()
LL -                 .map(|t| {
LL -                     (
LL -                         is_true,
LL -                         t,
LL -                     )
LL -                 }).flatten()
LL +             ts.into_iter().flatten()
   |

error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:13:2
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter()
LL | |                 .map(|t| {
...  |
LL | |                 }).flatten()
LL | |         })
   | |__________^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `Flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/adapters/flatten.rs:184:1

error[E0599]: the method `collect` exists for struct `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:14:8: 14:23}>>`, but its trait bounds were not satisfied
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:24:4
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter()
LL | |                 .map(|t| {
...  |
LL | |         .flatten()
LL | |         .collect()
   | |         -^^^^^^^ method cannot be called due to unsatisfied trait bounds
   | |_________|
   |
   |
   = note: the following trait bounds were not satisfied:
           `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:14:8: 14:23}>>: Iterator`
           which is required by `&mut Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:14:8: 14:23}>>: Iterator`

error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:32:6
   |
LL |                 .flatten()
   |                  ^^^^^^^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/traits/iterator.rs:1557:5
help: consider removing this method call, as the receiver has type `std::vec::IntoIter<HashSet<u8>>` and `std::vec::IntoIter<HashSet<u8>>: Iterator` trivially holds
   |
LL -             ts.into_iter()
LL -                 .map(|t| (is_true, t))
LL +             ts.into_iter()
   |

error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:28:2
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter()
LL | |                 .map(|t| (is_true, t))
LL | |                 .flatten()
LL | |         })
   | |__________^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `Flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/adapters/flatten.rs:184:1

error[E0599]: the method `collect` exists for struct `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:29:8: 29:23}>>`, but its trait bounds were not satisfied
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:35:4
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter()
LL | |                 .map(|t| (is_true, t))
...  |
LL | |         .flatten()
LL | |         .collect()
   | |         -^^^^^^^ method cannot be called due to unsatisfied trait bounds
   | |_________|
   |
   |
   = note: the following trait bounds were not satisfied:
           `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:29:8: 29:23}>>: Iterator`
           which is required by `&mut Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:29:8: 29:23}>>: Iterator`

error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:43:7
   |
LL |             }).flatten()
   |                ^^^^^^^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/traits/iterator.rs:1557:5
help: consider removing this method call, as the receiver has type `std::vec::IntoIter<HashSet<u8>>` and `std::vec::IntoIter<HashSet<u8>>: Iterator` trivially holds
   |
LL -             ts.into_iter().map(|t| {
LL -                 (is_true, t)
LL -             }).flatten()
LL +             ts.into_iter().flatten()
   |

error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:39:2
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter().map(|t| {
LL | |                 (is_true, t)
LL | |             }).flatten()
LL | |         })
   | |__________^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `Flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/adapters/flatten.rs:184:1

error[E0599]: the method `collect` exists for struct `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:40:8: 40:23}>>`, but its trait bounds were not satisfied
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:46:4
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter().map(|t| {
LL | |                 (is_true, t)
...  |
LL | |         .flatten()
LL | |         .collect()
   | |         -^^^^^^^ method cannot be called due to unsatisfied trait bounds
   | |_________|
   |
   |
   = note: the following trait bounds were not satisfied:
           `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:40:8: 40:23}>>: Iterator`
           which is required by `&mut Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:40:8: 40:23}>>: Iterator`

error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:53:28
   |
LL |                 .map(|t| (is_true, t)).flatten()
   |                                        ^^^^^^^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/traits/iterator.rs:1557:5
help: consider removing this method call, as the receiver has type `std::vec::IntoIter<HashSet<u8>>` and `std::vec::IntoIter<HashSet<u8>>: Iterator` trivially holds
   |
LL -             ts.into_iter()
LL -                 .map(|t| (is_true, t)).flatten()
LL +             ts.into_iter().flatten()
   |

error[E0277]: `(bool, HashSet<u8>)` is not an iterator
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:50:2
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter()
LL | |                 .map(|t| (is_true, t)).flatten()
LL | |         })
   | |__________^ `(bool, HashSet<u8>)` is not an iterator
   |
   = help: the trait `Iterator` is not implemented for `(bool, HashSet<u8>)`
   = note: required for `(bool, HashSet<u8>)` to implement `IntoIterator`
note: required by a bound in `Flatten`
  --> /rustc/FAKE_PREFIX/library/core/src/iter/adapters/flatten.rs:184:1

error[E0599]: the method `collect` exists for struct `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:51:8: 51:23}>>`, but its trait bounds were not satisfied
  --> /checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:56:4
   |
LL | /     hm.into_iter()
LL | |         .map(|(is_true, ts)| {
LL | |             ts.into_iter()
LL | |                 .map(|t| (is_true, t)).flatten()
LL | |         })
LL | |         .flatten()
LL | |         .collect()
   | |         -^^^^^^^ method cannot be called due to unsatisfied trait bounds
   | |_________|
   |
   |
   = note: the following trait bounds were not satisfied:
           `Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:51:8: 51:23}>>: Iterator`
           which is required by `&mut Flatten<Map<std::collections::hash_map::IntoIter<bool, Vec<HashSet<u8>>>, {closure@/checkout/tests/ui/error-emitter/multiline-removal-suggestion.rs:51:8: 51:23}>>: Iterator`

error: aborting due to 12 previous errors

Some errors have detailed explanations: E0277, E0599.
For more information about an error, try `rustc --explain E0277`.
------------------------------------------

---- [ui] tests/ui/error-emitter/multiline-removal-suggestion.rs stdout end ----
---- [ui] tests/ui/impl-trait/diagnostics/highlight-difference-between-expected-trait-and-found-trait.rs stdout ----
Saved the actual svg to `/checkout/obj/build/aarch64-unknown-linux-gnu/test/ui/impl-trait/diagnostics/highlight-difference-between-expected-trait-and-found-trait/highlight-difference-between-expected-trait-and-found-trait.svg`
---
LL |     Tuple(i32),
   |     ^^^^^
help: provide the argument
   |
LL |     Enum::Tuple(/* i32 */);
   |                 +++++++++

error[E0533]: expected value, found struct variant `Enum::Struct`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:16:5
   |
LL |     Enum::Struct();
   |     ^^^^^^^^^^^^ not a value
   |
help: you might have meant to create a new value of the struct
   |
LL -     Enum::Struct();
LL +     Enum::Struct { x: /* value */ };
   |

error[E0063]: missing field `0` in initializer of `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:18:5
   |
---
   |     ^^^^^^^^^^^^ not a value
   |
help: you might have meant to create a new value of the struct
   |
LL -     Enum::Struct(0);
LL +     Enum::Struct { x: /* value */ };
   |

error[E0559]: variant `Enum::Unit` has no field named `x`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:23:18
   |
---
   |                   ^ field does not exist
   |
help: `Enum::Tuple` is a tuple variant, use the appropriate syntax
   |
LL -     Enum::Tuple { x: 0 };
LL +     Enum::Tuple(/* i32 */);
   |

error[E0618]: expected function, found `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:26:5
   |
---
   |     ^^^^^^^^^^^^ not a value
   |
help: you might have meant to create a new value of the struct
   |
LL -     Enum::Struct(0, 0);
LL +     Enum::Struct { x: /* value */ };
   |

error[E0559]: variant `Enum::Unit` has no field named `x`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:29:18
   |
LL |     Enum::Unit { x: 0, y: 0 };
   |                  ^ `Enum::Unit` does not have this field
   |
   = note: all struct fields are already assigned

error[E0559]: variant `Enum::Unit` has no field named `y`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:29:24
   |
LL |     Enum::Unit { x: 0, y: 0 };
   |                        ^ `Enum::Unit` does not have this field
   |
   = note: all struct fields are already assigned

error[E0559]: variant `Enum::Tuple` has no field named `x`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:31:19
   |
LL |     Tuple(i32),
   |     ----- `Enum::Tuple` defined here
...
LL |     Enum::Tuple { x: 0, y: 0 };
   |                   ^ field does not exist
   |
help: `Enum::Tuple` is a tuple variant, use the appropriate syntax
   |
LL -     Enum::Tuple { x: 0, y: 0 };
LL +     Enum::Tuple(/* i32 */);
   |

error[E0559]: variant `Enum::Tuple` has no field named `y`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:31:25
   |
LL |     Tuple(i32),
   |     ----- `Enum::Tuple` defined here
...
LL |     Enum::Tuple { x: 0, y: 0 };
   |                         ^ field does not exist
   |
help: `Enum::Tuple` is a tuple variant, use the appropriate syntax
   |
LL -     Enum::Tuple { x: 0, y: 0 };
LL +     Enum::Tuple(/* i32 */);
   |

error[E0559]: variant `Enum::Struct` has no field named `y`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:33:26
   |
LL |     Enum::Struct { x: 0, y: 0 };
   |                          ^ `Enum::Struct` does not have this field
   |
   = note: all struct fields are already assigned

error[E0599]: no variant or associated item named `unit` found for enum `Enum` in the current scope
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:34:11
---
   |           ^^^^^ variant or associated item not found in `Enum`
   |
help: there is a variant with a similar name
   |
LL -     Enum::tuple;
LL +     Enum::Tuple(/* i32 */);
   |

error[E0599]: no variant or associated item named `r#struct` found for enum `Enum` in the current scope
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:36:11
   |
---
   |           ^^^^^^^^ variant or associated item not found in `Enum`
   |
help: there is a variant with a similar name
   |
LL -     Enum::r#struct;
LL +     Enum::Struct { x: /* value */ };
   |

error[E0599]: no variant or associated item named `unit` found for enum `Enum` in the current scope
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:37:11
   |
---
   |           ^^^^^ variant or associated item not found in `Enum`
   |
help: there is a variant with a similar name
   |
LL -     Enum::tuple();
LL +     Enum::Tuple(/* i32 */);
   |

error[E0599]: no variant or associated item named `r#struct` found for enum `Enum` in the current scope
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:39:11
   |
---
   |           ^^^^^^^^ variant or associated item not found in `Enum`
   |
help: there is a variant with a similar name
   |
LL -     Enum::r#struct();
LL +     Enum::Struct { x: /* value */ };
   |

error[E0599]: no variant named `unit` found for enum `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:40:11
   |
---
   |           ^^^^^
   |
help: there is a variant with a similar name
   |
LL -     Enum::tuple {};
LL +     Enum::Tuple(/* i32 */);
   |

error[E0599]: no variant named `r#struct` found for enum `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:42:11
   |
LL | enum Enum {
   | --------- variant `r#struct` not found here
...
LL |     Enum::r#struct {};
   |           ^^^^^^^^
   |
help: there is a variant with a similar name
   |
LL -     Enum::r#struct {};
LL +     Enum::Struct { x: /* value */ };
   |

error[E0599]: no variant or associated item named `unit` found for enum `Enum` in the current scope
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:43:11
   |
---
   |           ^^^^^^^^ variant or associated item not found in `Enum`
   |
help: there is a variant with a similar name
   |
LL -     Enum::r#struct(0);
LL +     Enum::Struct { x: /* value */ };
   |

error[E0599]: no variant named `unit` found for enum `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:46:11
   |
---
   |           ^^^^^
   |
help: there is a variant with a similar name
   |
LL -     Enum::tuple { x: 0 };
LL +     Enum::Tuple(/* i32 */);
   |

error[E0599]: no variant named `r#struct` found for enum `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:48:11
   |
---
   |           ^^^^^^^^
   |
help: there is a variant with a similar name
   |
LL -     Enum::r#struct { x: 0 };
LL +     Enum::Struct { x: /* value */ };
   |

error[E0599]: no variant or associated item named `unit` found for enum `Enum` in the current scope
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:49:11
   |
---
   |           ^^^^^ variant or associated item not found in `Enum`
   |
help: there is a variant with a similar name
   |
LL -     Enum::tuple(0, 0);
LL +     Enum::Tuple(/* i32 */);
   |

error[E0599]: no variant or associated item named `r#struct` found for enum `Enum` in the current scope
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:51:11
   |
LL | enum Enum {
   | --------- variant or associated item `r#struct` not found for this enum
...
LL |     Enum::r#struct(0, 0);
   |           ^^^^^^^^ variant or associated item not found in `Enum`
   |
help: there is a variant with a similar name
   |
LL -     Enum::r#struct(0, 0);
LL +     Enum::Struct { x: /* value */ };
   |

error[E0599]: no variant named `unit` found for enum `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:52:11
   |
LL | enum Enum {
   | --------- variant `unit` not found here
...
LL |     Enum::unit { x: 0, y: 0 };
   |           ^^^^
   |
help: there is a variant with a similar name
   |
LL -     Enum::unit { x: 0, y: 0 };
LL +     Enum::Unit;
   |

error[E0599]: no variant named `tuple` found for enum `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:53:11
   |
LL | enum Enum {
   | --------- variant `tuple` not found here
...
LL |     Enum::tuple { x: 0, y: 0 };
   |           ^^^^^
   |
help: there is a variant with a similar name
   |
LL -     Enum::tuple { x: 0, y: 0 };
LL +     Enum::Tuple(/* i32 */);
   |

error[E0599]: no variant named `r#struct` found for enum `Enum`
  --> /checkout/tests/ui/suggestions/incorrect-variant-literal.rs:54:11
   |
LL | enum Enum {
   | --------- variant `r#struct` not found here
...
LL |     Enum::r#struct { x: 0, y: 0 };
   |           ^^^^^^^^
   |
help: there is a variant with a similar name
   |
LL -     Enum::r#struct { x: 0, y: 0 };
LL +     Enum::Struct { x: /* value */ };
   |

error: aborting due to 39 previous errors

Some errors have detailed explanations: E0061, E0063, E0533, E0559, E0599, E0618.

@klensy
Copy link
Contributor

klensy commented Sep 23, 2025

this fail fixed in #146731

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-tidy Area: The tidy tool 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)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants