-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Fixed issue by changing error label and note #144693
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?
Conversation
r? @SparrowLii rustbot has assigned @SparrowLii. Use |
The Miri subtree was changed cc @rust-lang/miri Some changes occurred in src/tools/clippy cc @rust-lang/clippy |
This comment has been minimized.
This comment has been minimized.
It looks like a lot of unrelated files have been (badly?) reformatted in the process. |
@OneProgGit: This PR contains a bunch of unnecessary formatting changes. It also doesn't really seem to fix #144693, since I think it makes the error message a bit more vague, since "to occur in its correct place" isn't really self-evident. Could you please improve the error message to actually explain what is happening here, and remove the unnecessary formatting changes? @rustbot author |
Reminder, once the PR becomes ready for a review, use |
…nts is incorrect is clearer
872e401
to
b75ba50
Compare
This comment has been minimized.
This comment has been minimized.
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.
Looks like formatting only changes in Clippy. Please revert those. It's a minor inconvenience during the sync (This extra newline removal isn't but the other file is).
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.
Reverted this
…g arguments is incorrect is clearer" This reverts commit b75ba50.
arguments is incorrect is clearer
arguments is incorrect is clearer
arguments is incorrect is clearer
The job Click to see the possible cause of the failure (guessed by this bot)
|
Fixed issue #144023.
Now, the text of the error that occurs when the order of formatting arguments is incorrect is clearer and runned cargo fmt.
Before:
6 | println!("Next u64: {0:#X>18} = {0:>20}", rng.next_u64());
| ^ expected
>
to occur after:
in format stringAfter:
|
2 | println!("Next u64: {0:#X>18} = {0:>20}", rand::rng().next_u64());
| ^ expected
>
to occur in its correct place in format string|
= note: See https://doc.rust-lang.org/std/fmt/index.html#syntax for more details