Skip to content

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Oct 7, 2025

This is the version of #16066 that has a group for each message (i.e. a group with a WARNING primary title followed by groups with NOTE secondary titles).

I was a bit surprised to see that (like the single-group version) this has a blank line before the note. Based on this comment I was expecting it not to.

This is part of #15944

@rustbot rustbot added A-configuration Area: cargo config files and env vars A-git Area: anything dealing with git labels Oct 7, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 7, 2025

r? @ehuss

rustbot has assigned @ehuss.
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-registries Area: registries Command-package S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 7, 2025
@epage
Copy link
Contributor

epage commented Oct 7, 2025

I was a bit surprised to see that (like the single-group version) this has a blank line before the note. Based on #16035 (comment) I was expecting it not to.

That only works if you only use secondary_title which is what we should be using for now (sorry if I missed that in a previous PR).

We are avoiding primary_title for now because

  • It ensures we have consistent output during the transition
  • We don't have to be careful about whether ansi escape codes exist within the title
  • We can avoid the extra padding when needed

@epage epage mentioned this pull request Oct 7, 2025
12 tasks
@jneem jneem force-pushed the more-reports-multiple-groups branch from 99c6b81 to 96c8dab Compare October 7, 2025 22:21
@jneem jneem force-pushed the more-reports-multiple-groups branch from 96c8dab to 7a38ef2 Compare October 7, 2025 22:41
@jneem
Copy link
Contributor Author

jneem commented Oct 8, 2025

Closing in favor of #16066

@jneem jneem closed this Oct 8, 2025
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 8, 2025
github-merge-queue bot pushed a commit that referenced this pull request Oct 8, 2025
Here I'm continuing to slowly work through multi-part diagnostics and
convert them to reports.

Like #16035, this converts a warning + note into a single `Group` with a
warning title containing note elements. Based on [this
comment](#16035 (comment))
I'm not sure if this is actually what you want, mostly because these
notes are typically shorter than the ones in #16035.

For comparison, I'll open another PR that does multiple groups. Edit:
#16065

This is part of #15944
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-configuration Area: cargo config files and env vars A-git Area: anything dealing with git A-registries Area: registries Command-package

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants