Repository navigation
Conversation
|
Thanks for the pull request, and welcome! The Rust Project has assigned @maxdexh (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks. Please see the contribution instructions and our LLM policy for more information. |
This comment has been minimized.
This comment has been minimized.
…acros.rs, num/mod.rs
fa1b75f to
bca556d
Compare
|
Sorry, I don't have perms to approve PRs. |
…rs, uint_macros.rs
| #[doc = concat!("assert_eq!(3", stringify!($SelfT), ".overflowing_pow(5), (243, false));")] | ||
| #[doc = concat!("assert_eq!(0_", stringify!($SelfT), ".overflowing_pow(0), (1, false));")] | ||
| /// assert_eq!(3u8.overflowing_pow(6), (217, true)); | ||
| /// assert_eq!(3_u8.overflowing_pow(6), (217, true)); |
There was a problem hiding this comment.
This doesn't feel like an improvement to me for tiny literals, but also not terrible either I guess.
|
Following the behavior of
When inserting underscores, I think it is appropriate to use them as separators every 3 digits for octal and decimal literals, and every 4 digits for binary and hexadecimal literals. |
e7bd615 to
ea297fc
Compare
This comment has been minimized.
This comment has been minimized.
I think @sorairolake's comment here is good. Do you mind making that change? @rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
|
Oh wait, it's already done. |
|
Still, needs fixing. Do |
|
Sorry for the empty commit, but I believe the test failure was spurious so I wanted to retry it. Thanks for reviewing! |
Part of #164909
r? maxdexh
literal suffixes:
For consistency, I separated all suffixes, including ones attached to very short literals.
number literals:
For consistency, again, I changed 8 digit hex literals like this:
to
but I didn't change things like
-1000_i32to-1_000_i32as I don't think that improves readability much.should I continue like this? thanks.