Rollup merge of #151900 - tgross35:num-internal-imp, r=Mark-Simulacrum

num: Separate public API from internal implementations

Currently we have a single `core::num` module that contains both thin wrapper API and higher-complexity numeric routines. Restructure this by moving implementation details to a new `imp` module.

This results in a more clean separation of what is actually user-facing compared to items that have a stability attribute because they are public for testing.

The first commit does the actual change then the second moves a portion back.
This commit is contained in:
Jonathan Brouwer
2026-03-08 22:51:52 +01:00
committed by GitHub
56 changed files with 337 additions and 303 deletions
+1 -1
View File
@@ -1075,7 +1075,7 @@ gets adapted for the changes, if necessary.
"""
cc = ["@rust-lang/miri", "@RalfJung", "@oli-obk", "@lcnr"]
[mentions."library/core/src/num/{dec2flt,flt2dec}"]
[mentions."library/core/src/num/imp/{dec2flt,flt2dec}"]
message = "Some changes occurred in float parsing"
cc = ["@tgross35"]