]> git.lizzy.rs Git - rust.git/commit
Auto merge of #76327 - lzutao:split-core-num, r=SimonSapin
authorbors <bors@rust-lang.org>
Sat, 19 Sep 2020 16:13:26 +0000 (16:13 +0000)
committerbors <bors@rust-lang.org>
Sat, 19 Sep 2020 16:13:26 +0000 (16:13 +0000)
commit59fb88d061544a035f3043b47594b34789204cee
tree0b8de56e6e2719b155a9bc9f70065e7200b2a370
parentb3aae050cd7e0c9a9eb6085bd49b02f67dc1396f
parenta50ec5f144b414d3c14fe04fc07f935c2ea0ab0f
Auto merge of #76327 - lzutao:split-core-num, r=SimonSapin

Split `core/num/mod.rs` to smaller mods

Note for reviewer:
* I split to multiple commits for easier reviewing, but I could git squash them all to one if requested.
* Recommend pulling this change locally and using advanced git diff viewer or this command:
  ```
  git show --reverse --color-moved=dimmed-zebra master..
  ```

---

I split `core/num/mod.rs` to these modules:

* `error`: For error structs like `ParseIntError`.
* blanket `shells` dir: For dummy number type modules: std::i32, std::f32, and the likes. Why? See below.
* `int_macros` and `uint_macros`: Real implementation of all integer types via `int_impl` and `uint_impl`
* `nonzero`: For `NonZero*` types and their implementations.
* `wrapping`: For `Wrapping<T>` types.