Skip to content

Conversation

jneem
Copy link
Contributor

@jneem jneem commented Oct 16, 2025

Yet another part of #15944.

I saw some inconsistent formatting for links: some are surrounded in "<>" but others aren't. Is there a policy for that?

@rustbot rustbot added A-build-execution Area: anything dealing with executing the compiler A-cli Area: Command-line interface, option parsing, etc. A-interacts-with-crates.io Area: interaction with registries Command-publish S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Oct 16, 2025
@rustbot
Copy link
Collaborator

rustbot commented Oct 16, 2025

r? @weihanglo

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

@epage
Copy link
Contributor

epage commented Oct 16, 2025

I saw some inconsistent formatting for links: some are surrounded in "<>" but others aren't. Is there a policy for that?

rustc dev guide doesn't say anything about it. I'm not away of any extension of ours for how to deal with that.

The targets should have unique names.
Consider changing their names to be unique or compiling them separately.
This may become a hard error in the future; see <https://github.com/rust-lang/cargo/issues/6313>.
[WARNING] output filename collision at [ROOT]/foo/target/debug/deps/{}a{}
Copy link
Contributor

Choose a reason for hiding this comment

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

Should we move this into an Origin? I think not but unsure

CC @Muscraft

Comment on lines +390 to +393
[HELP] Check that the patched package version and available features are compatible
with the dependency requirements. If the patch has a different version from
what is locked in the Cargo.lock file, run `cargo update` to use the new
version. This may also occur with an optional dependency that is not enabled.
Copy link
Contributor

Choose a reason for hiding this comment

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

@Muscraft thoughts on how this should be a formatted?

Comment on lines 1945 to 1946
= [HELP] perhaps you misspelled the source URL being patched. Possible URLs for `[patch.<URL>]`:
= [HELP] [ROOT]/foo/bar
Copy link
Contributor

Choose a reason for hiding this comment

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

It feels weird for these list items to be in their own message

Copy link
Contributor Author

Choose a reason for hiding this comment

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

If there aren't too many options, I think it looks fine inlined in the previous [HELP] message. Maybe it's worth filtering by edit distance, and then assuming there aren't too many options?

Copy link
Member

Choose a reason for hiding this comment

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

Is there a style guide for list items in rustc?

Copy link
Contributor

Choose a reason for hiding this comment

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

Not much but overall it seems each one is meant to be a distinct message. I would put the list all under one item.

Looking around rustc tests, I'm seeing

   = note: the following trait bounds were not satisfied:
           `Ipv4Addr: Iterator`
           which is required by `Ipv4Addr: proc_macro::ext::RepIteratorExt`
           `&Ipv4Addr: Iterator`
           which is required by `&Ipv4Addr: proc_macro::ext::RepIteratorExt`
           `Ipv4Addr: ToTokens`
           which is required by `Ipv4Addr: proc_macro::ext::RepToTokensExt`
           `&mut Ipv4Addr: Iterator`
           which is required by `&mut Ipv4Addr: proc_macro::ext::RepIteratorExt`

help: consider importing one of these structs
   ╭╴
LL + use std::array::IntoIter;
   ├╴
LL + use std::collections::binary_heap::IntoIter;
   ├╴
LL + use std::collections::btree_map::IntoIter;
   ├╴
LL + use std::collections::btree_set::IntoIter;
   │
   ╰ and 9 other candidates

@jneem jneem force-pushed the warning-conversion branch 2 times, most recently from 47499a9 to 5227b39 Compare October 17, 2025 01:16
@jneem jneem force-pushed the warning-conversion branch from 5227b39 to 1cf1c9f Compare October 17, 2025 02:55
@jneem jneem force-pushed the warning-conversion branch from 1cf1c9f to 0755364 Compare October 17, 2025 04:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-build-execution Area: anything dealing with executing the compiler A-cli Area: Command-line interface, option parsing, etc. A-interacts-with-crates.io Area: interaction with registries Command-publish S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants