Uh oh!
There was an error while loading. Please reload this page.
Remove div_rem from core::num::bignum - #146284
Conversation
rustbot
commented
Sep 6, 2025
rustbot has assigned @Mark-Simulacrum. Use |
Mark-Simulacrum
commented
Sep 7, 2025
Is there actually any usage of this Maybe we can just delete it? |
Kivooeo
commented
Sep 7, 2025
Would it be reasonable to check if other methods were ever used and delete them as well? But, looking at this from the other side, what if someone were to write something in dec2flt or flt2dec and needed div_rem, but there was nothing? |
Mark-Simulacrum
commented
Sep 7, 2025
I'm not particularly worried about someone needing it and needing to write it (or dig it up in git history). I definitely don't want to spend reviewer time reviewing optimizations for dead code though. |
Kivooeo
commented
Sep 7, 2025
Fair enough, then first question about other unused methods is still open, and I'm fine to delete them as well if found any other |
Mark-Simulacrum
commented
Sep 7, 2025
I don't have any strong opinion on whether to proactively audit for other unused code. It's probably relatively harmless to keep it and just not touch it. |
bddb431 to
a947e5eComparea947e5e to
a2d66dbComparediv_rem algorithm in core::num::bignumdiv_rem from core::num::bignumKivooeo
commented
Sep 7, 2025
Oh, well
Do you mean it's better not to touch this function or any others? If first so feel free to close this one I guess |
Mark-Simulacrum
commented
Sep 14, 2025
No strong opinion either way, changes that are just deleting (dead code) lines I'm generally happy to rubber stamp. They're easy to add back later. @bors r+ rollup |
bors
commented
Sep 14, 2025
Rollup of 8 pull requests Successful merges: - #143314 (add reference id to test, and fix filename) - #146284 (Remove `div_rem` from `core::num::bignum`) - #146416 (Tidy dependency checks cleanups + QoL) - #146471 (bootstrap: Show target in "No such target exists" message) - #146478 (Improve `core::fmt` coverage) - #146480 (tests: update new test to accept new lifetime format) - #146488 (Improve `core::ptr` coverage) - #146501 (compiletest: Fix `--exact` test filtering) r? `@ghost` `@rustbot` modify labels: rollup
Uh oh!
There was an error while loading. Please reload this page.
Rollup merge of #146284 - Kivooeo:blazing-fast-division-bignum, r=Mark-Simulacrum Remove `div_rem` from `core::num::bignum` This fixes very old fixme that sounds like this ``` Stupid slow base-2 long division taken from https://en.wikipedia.org/wiki/Division_algorithm FIXME use a greater base ($ty) for the long division. ``` By deleting this method since it was never used
…um, r=Mark-Simulacrum Remove `div_rem` from `core::num::bignum` This fixes very old fixme that sounds like this ``` Stupid slow base-2 long division taken from https://en.wikipedia.org/wiki/Division_algorithm FIXME use a greater base ($ty) for the long division. ``` By deleting this method since it was never used
This fixes very old fixme that sounds like this
By deleting this method since it was never used