<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/convert, branch 1.46.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.46.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.46.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2020-06-30T17:28:51+00:00</updated>
<entry>
<title>Deny unsafe ops in unsafe fns, part 6</title>
<updated>2020-06-30T17:28:51+00:00</updated>
<author>
<name>LeSeulArtichaut</name>
<email>leseulartichaut@gmail.com</email>
</author>
<published>2020-06-30T17:10:22+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=a1623ff3b6a48e7ac29e1c25900989851278743b'/>
<id>urn:sha1:a1623ff3b6a48e7ac29e1c25900989851278743b</id>
<content type='text'>
And final part!!!
</content>
</entry>
<entry>
<title>Deny unsafe ops in unsafe fns, part 1</title>
<updated>2020-06-30T14:42:57+00:00</updated>
<author>
<name>LeSeulArtichaut</name>
<email>leseulartichaut@gmail.com</email>
</author>
<published>2020-06-21T22:54:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=8ee1dec77b89d6341a147d91af8733f8e0b5efc7'/>
<id>urn:sha1:8ee1dec77b89d6341a147d91af8733f8e0b5efc7</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #72717 - poliorcetics:try-from-int-to-nzint, r=dtolnay</title>
<updated>2020-06-25T17:37:02+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2020-06-25T17:37:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=50fc24d8a172a853b5dfe40702d6550e3b8562ba'/>
<id>urn:sha1:50fc24d8a172a853b5dfe40702d6550e3b8562ba</id>
<content type='text'>
Add TryFrom&lt;{int}&gt; for NonZero{int}

Adds `TryFrom&lt;{int}&gt; for NonZero{int}`.

It uses the existing `NonZero{int}::new()` and `Option::ok_or()` functions, meaning the checks are not repeated.

I also added tests, I tried to follow the convention I saw in the test file.

I also used `#[stable(feature = "nzint_try_from_int_conv", since = "1.46.0")]`, but I have no idea if the feature/version are correctly named or even correct.
</content>
</entry>
<entry>
<title>Rollup merge of #73361 - estebank:non-primitive-cast, r=davidtwco</title>
<updated>2020-06-18T22:20:57+00:00</updated>
<author>
<name>Manish Goregaokar</name>
<email>manishsmail@gmail.com</email>
</author>
<published>2020-06-18T22:20:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ca811772c2fddefeda4567cdfb8c790c94e0085'/>
<id>urn:sha1:9ca811772c2fddefeda4567cdfb8c790c94e0085</id>
<content type='text'>
Tweak "non-primitive cast" error

- Suggest borrowing expression if it would allow cast to work.
- Suggest using `&lt;Type&gt;::from(&lt;expr&gt;)` when appropriate.
- Minor tweak to `;` typo suggestion.

Partily address #47136.
</content>
</entry>
<entry>
<title>Tweak "non-primitive cast" error</title>
<updated>2020-06-15T15:57:20+00:00</updated>
<author>
<name>Esteban Küber</name>
<email>esteban@kuber.com.ar</email>
</author>
<published>2020-06-15T04:36:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e857696cf8c3b4a4381d00424f165c10f93a9ebd'/>
<id>urn:sha1:e857696cf8c3b4a4381d00424f165c10f93a9ebd</id>
<content type='text'>
- Suggest borrowing expression if it would allow cast to work.
- Suggest using `&lt;Type&gt;::from(&lt;expr&gt;)` when appropriate.
- Minor tweak to `;` typo suggestion.

Partily address #47136.
</content>
</entry>
<entry>
<title>Migrate to numeric associated consts</title>
<updated>2020-06-10T01:35:47+00:00</updated>
<author>
<name>Lzu Tao</name>
<email>taolzu@gmail.com</email>
</author>
<published>2020-06-02T07:59:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=fff822fead6249671cbcb090b24bce58fab38de0'/>
<id>urn:sha1:fff822fead6249671cbcb090b24bce58fab38de0</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added implementations for NonZero(U|I)size</title>
<updated>2020-06-08T14:15:39+00:00</updated>
<author>
<name>Alexis Bourget</name>
<email>alexis.bourget@gmail.com</email>
</author>
<published>2020-06-08T14:15:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0dcb392e9889ab6976973a2f7140d18a80178202'/>
<id>urn:sha1:0dcb392e9889ab6976973a2f7140d18a80178202</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Added implementations for TryFrom&lt;{int}&gt; for NonZero{int}</title>
<updated>2020-05-29T01:05:03+00:00</updated>
<author>
<name>Alexis Bourget</name>
<email>alexis.bourget@gmail.com</email>
</author>
<published>2020-05-29T01:05:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2031e99d772091854d716df5bdf227f8be9b6397'/>
<id>urn:sha1:2031e99d772091854d716df5bdf227f8be9b6397</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Bump bootstrap compiler</title>
<updated>2020-04-25T13:25:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2020-04-22T19:45:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=93eed402adbe9e7a532995500d50716d52eefee9'/>
<id>urn:sha1:93eed402adbe9e7a532995500d50716d52eefee9</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #70487 - Mark-Simulacrum:float-unchecked-casts, r=SimonSapin</title>
<updated>2020-04-02T22:32:00+00:00</updated>
<author>
<name>Mazdak Farrokhzad</name>
<email>twingoow@gmail.com</email>
</author>
<published>2020-04-02T22:32:00+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=1eabbd024c0e49d8ca66c804f502c65cbad90ced'/>
<id>urn:sha1:1eabbd024c0e49d8ca66c804f502c65cbad90ced</id>
<content type='text'>
Stabilize float::to_int_unchecked

This renames and stabilizes unsafe floating point to integer casts, which are intended to be the substitute for the currently unsound `as` behavior, once that changes to safe-but-slower saturating casts. As such, I believe this also likely unblocks #10184 (our oldest I-unsound issue!), as once this rolls out to stable it would be far easier IMO to change the behavior of `as` to be safe by default.

This does not stabilize the trait or the associated method, as they are deemed internal implementation details (and consumers should not, generally, want to expose them, as in practice all callers likely know statically/without generics what the return type is).

Closes #67058
</content>
</entry>
</feed>
