Skip to content

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Oct 7, 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 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

@rustbot rustbot added A-configuration Area: cargo config files and env vars A-git Area: anything dealing with git A-registries Area: registries Command-package S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 7, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 7, 2025

r? @epage

rustbot has assigned @epage.
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

unused_fields.join(", ")
))
.element(Level::NOTE.message(format!(
"configure {} in the `dependencies` entry",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Slightly off-topic, but I wanted to attach a manifest/config location here. It's a bit tricky, though, because the dependency table was the result of a merge between configs and manifests. How would you feel about having Dependency (and potentially other things) keep track of their source location?

Copy link
Contributor

Choose a reason for hiding this comment

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

Really look forward to us adding more context like this though don't feel obligated to do so. This effort is more prep work for us to start doing these kinds of improvements. The most I expected to be done with this is wording changes to better fit the new style.

@epage
Copy link
Contributor

epage commented Oct 8, 2025

---- cache_lock::shared_then_download stdout ----

thread 'cache_lock::shared_then_download' (9512) panicked at C:\a\cargo\cargo\crates\cargo-test-support\src\lib.rs:1618:13:
test did not finish within 10 attempts (1.0037207s total)


failures:
    cache_lock::shared_then_download

@epage
Copy link
Contributor

epage commented Oct 8, 2025

@jneem do you have a preference for which route we go?

@jneem
Copy link
Contributor Author

jneem commented Oct 8, 2025

Not really, I'll happily continue with whichever you prefer.

@epage
Copy link
Contributor

epage commented Oct 8, 2025

I think @Muscraft was leaning towards this one. Mind switching it to secondary_title and we can merge it?

Also, feel free to change notes that offer suggestions to being help, leaving note for when its adding more context. I know I keep going back and forth on this. Largely, my priority is in minimizing the work in migrating and the amount of things to hash out in reviews (since we may need to hash out wording which is bad enough). We can always re-evaluate these later. So this is more of a "if it works for you" and I won't be blocking any PRs as part of this effort on them having notes when they could be helps. As an example, "if possible, try a compatible non-yanked version" could be a help (but not requiring that to be changed).

@jneem
Copy link
Contributor Author

jneem commented Oct 8, 2025

Sounds good, I converted this to secondary_title and changed a couple notes to helps.

@epage
Copy link
Contributor

epage commented Oct 8, 2025

Thanks!

@epage epage enabled auto-merge October 8, 2025 19:04
@epage epage added this pull request to the merge queue Oct 8, 2025
Merged via the queue into rust-lang:master with commit ed20c81 Oct 8, 2025
25 checks passed
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Oct 8, 2025
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.

3 participants