<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/num, branch 1.43.1</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.43.1</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.43.1'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-03-04T07:29:32+00:00</updated>
<entry>
<title>Auto merge of #68952 - faern:stabilize-assoc-int-consts, r=dtolnay</title>
<updated>2020-03-04T07:29:32+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-03-04T07:29:32+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=7a3700c37132385e8e965c18e73d0a09f9146335'/>
<id>urn:sha1:7a3700c37132385e8e965c18e73d0a09f9146335</id>
<content type='text'>
Stabilize assoc_int_consts associated int/float constants

The next step in RFC https://github.com/rust-lang/rfcs/pull/2700 (tracking issue #68490). Stabilizing the associated constants that were added in #68325.

* Stabilize all constants under the `assoc_int_consts` feature flag.
* Update documentation on old constants to say they are soft-deprecated and the new ones should be preferred.
* Update documentation examples to use new constants.
* Remove `uint_macro` and use `int_macro` for all integer types since the macros were identical anyway.

r? @LukasKalbertodt
</content>
</entry>
<entry>
<title>Rollup merge of #69209 - Mark-Simulacrum:strip-unsafe, r=dtolnay</title>
<updated>2020-02-26T14:34:30+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-02-26T14:34:30+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e028f26e1df27c257e5007390d1787a256b6eee7'/>
<id>urn:sha1:e028f26e1df27c257e5007390d1787a256b6eee7</id>
<content type='text'>
Miscellaneous cleanup to formatting

Each commit stands alone.

This pull request will also resolve #58320.
</content>
</entry>
<entry>
<title>Rollup merge of #68984 - ecstatic-morse:const-u8-is-ascii, r=sfackler</title>
<updated>2020-02-22T13:12:59+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-02-22T13:12:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=c261ff1a77f8d5d51d51efd028f937b20146adff'/>
<id>urn:sha1:c261ff1a77f8d5d51d51efd028f937b20146adff</id>
<content type='text'>
Make `u8::is_ascii` a stable `const fn`

`char::is_ascii` was already stabilized as `const fn` in #55278, so there is no reason for `u8::is_ascii` to go through an unstable period.

cc @rust-lang/libs
</content>
</entry>
<entry>
<title>Rollup merge of #68978 - ecstatic-morse:const-int-pow, r=oli-obk</title>
<updated>2020-02-20T09:49:12+00:00</updated>
<author>
<name>Dylan DPC</name>
<email>dylan.dpc@gmail.com</email>
</author>
<published>2020-02-20T09:49:12+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=d96951f5543869567e30ab1c63c0ac44d0d74c30'/>
<id>urn:sha1:d96951f5543869567e30ab1c63c0ac44d0d74c30</id>
<content type='text'>
Make integer exponentiation methods unstably const

cc #53718

This makes the following inherent methods on integer primitives into unstable `const fn`:
- `pow`
- `checked_pow`
- `wrapping_pow`
- `overflowing_pow`
- `saturating_pow`
- `next_power_of_two`
- `checked_next_power_of_two`
- `wrapping_next_power_of_two`

Only two changes were made to the implementation of these methods. First, I had to switch from the `?` operator, which is not yet implemented in a const context, to a `try_opt` macro. Second, `next_power_of_two` was using `ops::Add::add` (see the first commit) to "get overflow checks", so I switched to `#[rustc_inherit_overflow_checks]`. I'm not quite sure why the attribute wasn't used in the first place.
</content>
</entry>
<entry>
<title>Drop unused argument to float functions</title>
<updated>2020-02-17T14:18:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2020-02-15T23:18:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=6c45e4540be20b7027ee6364eefc444b432b82ba'/>
<id>urn:sha1:6c45e4540be20b7027ee6364eefc444b432b82ba</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Stabilize {f32, f64}::{LOG2_10, LOG10_2}</title>
<updated>2020-02-16T17:53:02+00:00</updated>
<author>
<name>LeSeulArtichaut</name>
<email>leseulartichaut@gmail.com</email>
</author>
<published>2020-02-16T17:53:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2ae493a767536b0a5180c788d9ecf2b7ea8bf749'/>
<id>urn:sha1:2ae493a767536b0a5180c788d9ecf2b7ea8bf749</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Formatter::sign is &amp;'static str</title>
<updated>2020-02-15T23:17:51+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2020-02-15T23:06:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd12cd3d2fe2fd69cff05d4b710c8020dea2cdf7'/>
<id>urn:sha1:bd12cd3d2fe2fd69cff05d4b710c8020dea2cdf7</id>
<content type='text'>
The contents were always UTF-8 anyway, and &amp;str has an equivalent representation
to &amp;[u8], so this should not affect performance while removing unsafety at
edges.

It may be worth exploring a further adjustment that stores a single byte
(instead of 16) as the contents are always "", "-", or "+".
</content>
</entry>
<entry>
<title>Add usage recommendation to old float constants</title>
<updated>2020-02-12T19:20:56+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-02-08T11:15:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b2dc6187699d99436f6183218d928be09d439578'/>
<id>urn:sha1:b2dc6187699d99436f6183218d928be09d439578</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Update float documentation to use associated consts</title>
<updated>2020-02-12T19:20:56+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-02-04T22:08:59+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=83191c2da6da6c13466f7f30568cdea02c761ca0'/>
<id>urn:sha1:83191c2da6da6c13466f7f30568cdea02c761ca0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Add notice about using new consts in new code on int modules</title>
<updated>2020-02-12T19:20:56+00:00</updated>
<author>
<name>Linus Färnstrand</name>
<email>faern@faern.net</email>
</author>
<published>2020-02-04T22:00:40+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=086927480be716a14f9c68954d417b544066184b'/>
<id>urn:sha1:086927480be716a14f9c68954d417b544066184b</id>
<content type='text'>
</content>
</entry>
</feed>
