-
Notifications
You must be signed in to change notification settings - Fork 2.7k
More warning conversions #16126
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
base: master
Are you sure you want to change the base?
More warning conversions #16126
Conversation
r? @weihanglo rustbot has assigned @weihanglo. Use |
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{} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
[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. |
There was a problem hiding this comment.
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?
tests/testsuite/patch.rs
Outdated
= [HELP] perhaps you misspelled the source URL being patched. Possible URLs for `[patch.<URL>]`: | ||
= [HELP] [ROOT]/foo/bar |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
47499a9
to
5227b39
Compare
5227b39
to
1cf1c9f
Compare
1cf1c9f
to
0755364
Compare
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?