-
Notifications
You must be signed in to change notification settings - Fork 13.8k
Bump rustfix 0.8.1 -> 0.8.7 #146605
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
Bump rustfix 0.8.1 -> 0.8.7 #146605
Conversation
These commits modify the If this was unintentional then you should revert the changes before this PR is merged. |
r? @nnethercote rustbot has assigned @nnethercote. Use |
This comment has been minimized.
This comment has been minimized.
This commit can be replicated by running `cargo update -p rustfix --precise 0.8.7 && x test ui --bless`. --- The reasons this affects UI tests is as follows: - The UI test suite runs rustc with `-Z deduplicate-diagnostics=no --error-format=json`, which means that rustc emits multiple errors containing identical suggestions. That caused the weird-looking code that had multiple `X: Copy` suggestions. - Those suggestions are interpreted not by rustc itself, but by the `rustfix` library, maintained by cargo but published as a separate crates.io library and used by compiletest. - Sometime between rustfix 0.8.1 and 0.8.7 (probably in cargo 14747, but it's hard to tell because rustfix's versioning doesn't match cargo's), rustfix got smarter and stopped applying duplicate suggestions. Update rustfix to match cargo's behavior. Ideally, we would always share a version of rustfix between cargo and rustc (perhaps with a path dependency?), to make sure we are testing the behavior we ship. But for now, just manually update it to match. Note that the latest version of rustfix published to crates.io is 0.9.1, not 0.8.7. But 0.9.1 is not the version used in cargo, which is 0.9.3. Rather than trying to match versions exactly, I just updated rustfix to the latest in the 0.8 branch.
dd1545f
to
2adaa5d
Compare
|
||
#[derive(Debug, Copy, Clone)] //~ ERROR the trait `Copy` cannot be implemented for this type | ||
pub struct AABB<K: Copy + Debug + std::fmt::Debug + std::fmt::Debug + std::fmt::Debug>{ | ||
pub struct AABB<K: Copy + Debug + std::fmt::Debug>{ |
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.
I'll give you a gold star if you also add the missing space before the {
!
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.
The de-duplication is nice.
Hmm.
r=me for the PR as is, because it's a clear improvement, but I'll be happy if you fix the whitespace issue I mentioned above and also got onto 0.9.1 (assuming it doesn't cause extra complications). @bors delegate=nnethercote |
✌️ @nnethercote, you can now approve this pull request! If @nnethercote told you to " |
I'm going to merge this as-is just to minimize conflicts for @clubby789 in #145849, then bump to 0.9.1 in a separate PR. @bors r=nnethercote
I don't have time to commit to this right now. I also kinda feel that this should be rustfmt's job, not rustc's, doing it in this case doesn't seem too bad but getting it right in the general case seems quite hard and I'm not sure it makes sense to spend too much time on it. |
@jyn514: 🔑 Insufficient privileges: Not in reviewers |
@jyn514: 🔑 Insufficient privileges: Not in reviewers |
oh, i think you needed to say |
@bors r=nnethercote |
cc @weihanglo just FYI. I don't really understand why the weekly updates weren't updating |
Rollup of 5 pull requests Successful merges: - #146442 (Display ?Sized, const, and lifetime parameters in trait item suggestions across a crate boundary) - #146474 (Improve `core::ascii` coverage) - #146605 (Bump rustfix 0.8.1 -> 0.8.7) - #146611 (bootstrap: emit hint if a config key is used in the wrong section) - #146618 (Do not run ui test if options specific to LLVM are used when another codegen backend is used) r? `@ghost` `@rustbot` modify labels: rollup
Apologies for messing up the delegate syntax.
The problem is simply that |
Rollup merge of #146605 - jyn514:update-rustfix, r=nnethercote Bump rustfix 0.8.1 -> 0.8.7 This commit can be replicated by running `cargo update -p rustfix --precise 0.8.7 && x test ui --bless`. --- The reasons this affects UI tests is as follows: - The UI test suite runs rustc with `-Z deduplicate-diagnostics=no --error-format=json`, which means that rustc emits multiple errors containing identical suggestions. That caused the weird-looking code that had multiple `X: Copy` suggestions. - Those suggestions are interpreted not by rustc itself, but by the `rustfix` library, maintained by cargo but published as a separate crates.io library and used by compiletest. - Sometime between rustfix 0.8.1 and 0.8.7 (probably in rust-lang/cargo#14747, but it's hard to tell because rustfix's versioning doesn't match cargo's), rustfix got smarter and stopped applying duplicate suggestions. Update rustfix to match cargo's behavior. Ideally, we would always share a version of rustfix between cargo and rustc (perhaps with a path dependency?), to make sure we are testing the behavior we ship. But for now, just manually update it to match. Note that the latest version of rustfix published to crates.io is 0.9.1, not 0.8.7. But 0.9.1 is not the version used in cargo, which is 0.9.3. Rather than trying to match versions exactly, I just updated rustfix to the latest in the 0.8 branch.
FYI, I looked into this, and it's not trivial because clippy also depends on rustfix. So it involves:
in that order. |
This commit can be replicated by running
cargo update -p rustfix --precise 0.8.7 && x test ui --bless
.The reasons this affects UI tests is as follows:
-Z deduplicate-diagnostics=no --error-format=json
, which means that rustc emits multiple errors containing identical suggestions. That caused the weird-looking code that had multipleX: Copy
suggestions.rustfix
library, maintained by cargo but published as a separate crates.io library and used by compiletest.rustfix
cargo#14747, but it's hard to tell because rustfix's versioning doesn't match cargo's), rustfix got smarter and stopped applying duplicate suggestions.Update rustfix to match cargo's behavior. Ideally, we would always share a version of rustfix between cargo and rustc (perhaps with a path dependency?), to make sure we are testing the behavior we ship. But for now, just manually update it to match.
Note that the latest version of rustfix published to crates.io is 0.9.1, not 0.8.7. But 0.9.1 is not the version used in cargo, which is 0.9.3. Rather than trying to match versions exactly, I just updated rustfix to the latest in the 0.8 branch.