-
Notifications
You must be signed in to change notification settings - Fork 13.5k
Convert ilog(10)
to ilog10()
#142764
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
Convert ilog(10)
to ilog10()
#142764
Conversation
rustbot has assigned @workingjubilee. Use |
Thanks! @bors r+ rollup=never |
I was pretty surprised that we don't seem to have a clippy lint for this, so I wrote a quick issue up rust-lang/rust-clippy#15084 |
☔ The latest upstream changes (presumably #142294) made this pull request unmergeable. Please resolve the merge conflicts. |
This one can probably be rolled up - upon closer inspection, this only affects code in |
oh true. @bors rollup=always |
a87115c
to
5b74275
Compare
Resolved merge conflict by starting over. |
if it works, it works! @bors r+ rollup |
…ingjubilee Convert `ilog(10)` to `ilog10()` Except in tests, convert `integer.ilog(10)` to `integer.ilog10()` for better speed and to provide better examples of code that efficiently counts decimal digits. I couldn't find any instances of `integer.ilog(2)`.
Rollup of 11 pull requests Successful merges: - #142478 (install docs for each target in different directory) - #142629 (Add config builder for bootstrap tests) - #142715 (correct template for `#[align]` attribute) - #142720 (De-dup common code from `ExternalCrate` methods) - #142736 (add issue template for rustdoc) - #142743 (rustc-dev-guide subtree update) - #142744 (Add a mailmap entry for y21) - #142758 (Make sure to rebuild rustdoc if `src/rustdoc-json-types` is changed) - #142764 (Convert `ilog(10)` to `ilog10()`) - #142767 (Some symbol and PathRoot cleanups) - #142769 (remove equivalent new method on context) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 10 pull requests Successful merges: - #142629 (Add config builder for bootstrap tests) - #142715 (correct template for `#[align]` attribute) - #142720 (De-dup common code from `ExternalCrate` methods) - #142736 (add issue template for rustdoc) - #142743 (rustc-dev-guide subtree update) - #142744 (Add a mailmap entry for y21) - #142758 (Make sure to rebuild rustdoc if `src/rustdoc-json-types` is changed) - #142764 (Convert `ilog(10)` to `ilog10()`) - #142767 (Some symbol and PathRoot cleanups) - #142769 (remove equivalent new method on context) r? `@ghost` `@rustbot` modify labels: rollup
Rollup merge of #142764 - ChaiTRex:ilog_10_to_ilog10, r=workingjubilee Convert `ilog(10)` to `ilog10()` Except in tests, convert `integer.ilog(10)` to `integer.ilog10()` for better speed and to provide better examples of code that efficiently counts decimal digits. I couldn't find any instances of `integer.ilog(2)`.
Except in tests, convert
integer.ilog(10)
tointeger.ilog10()
for better speed and to provide better examples of code that efficiently counts decimal digits. I couldn't find any instances ofinteger.ilog(2)
.