<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/tests/num, branch 1.31.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.31.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.31.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2018-09-04T19:22:08+00:00</updated>
<entry>
<title>Breaking change upgrades</title>
<updated>2018-09-04T19:22:08+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-08-04T22:24:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9ec5ef541ad17986bfe6ae067a84ea8f7b7ae133'/>
<id>urn:sha1:9ec5ef541ad17986bfe6ae067a84ea8f7b7ae133</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Use str::repeat</title>
<updated>2018-07-27T14:26:36+00:00</updated>
<author>
<name>Shotaro Yamada</name>
<email>sinkuu@sinkuu.xyz</email>
</author>
<published>2018-04-01T04:48:15+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=3525368a562435622c3c8f293354805e6961b0bf'/>
<id>urn:sha1:3525368a562435622c3c8f293354805e6961b0bf</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Auto merge of #51564 - SimonSapin:try-int, r=alexcrichton</title>
<updated>2018-07-03T04:08:02+00:00</updated>
<author>
<name>bors</name>
<email>bors@rust-lang.org</email>
</author>
<published>2018-07-03T04:08:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=0fb6e3994fc1091144dc4338d3509a9cc1bcb100'/>
<id>urn:sha1:0fb6e3994fc1091144dc4338d3509a9cc1bcb100</id>
<content type='text'>
Implement always-fallible TryFrom for usize/isize conversions that are infallible on some platforms

This reverts commit 837d6c70233715a0ae8e15c703d40e3046a2f36a "Remove TryFrom impls that might become conditionally-infallible with a portability lint".

This fixes #49415 by adding (restoring) missing `TryFrom` impls for integer conversions to or from `usize` or `isize`, by making them always fallible at the type system level (that is, with `Error=TryFromIntError`) even though they happen to be infallible on some platforms (for some values of `size_of::&lt;usize&gt;()`).

They had been removed to allow the possibility to conditionally having some of them be infallible `From` impls instead, depending on the platforms, and have the [portability lint](https://github.com/rust-lang/rfcs/pull/1868) warn when they are used in code that is not already opting into non-portability. For example `#[allow(some_lint)] usize::from(x: u64)` would be valid on code that only targets 64-bit platforms.

This PR gives up on this possiblity for two reasons:

* Based on discussion with @aturon, it seems that the portability lint is not happening any time soon. It’s better to have the conversions be available *at all* than keep blocking them for so long. Portability-lint-gated platform-specific APIs can always be added separately later.

* For code that is fine with fallibility, the alternative would force it to opt into "non-portability" even though there would be no real portability issue.
</content>
</entry>
<entry>
<title>Add unit tests for `.mod_euc()` and `.div_euc()`</title>
<updated>2018-06-26T11:09:57+00:00</updated>
<author>
<name>Fabian Kössel</name>
<email>fkjogu@users.noreply.github.com</email>
</author>
<published>2018-05-28T14:40:57+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=bd853a6469fb71b4719d05c20535a70e75d1aa78'/>
<id>urn:sha1:bd853a6469fb71b4719d05c20535a70e75d1aa78</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Revert "Remove TryFrom impls that might become conditionally-infallible with a portability lint"</title>
<updated>2018-06-06T11:52:22+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-06-06T10:54:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e7c122c5b58d4db2262b1f4325d9fe82d1423ad8'/>
<id>urn:sha1:e7c122c5b58d4db2262b1f4325d9fe82d1423ad8</id>
<content type='text'>
This reverts commit 837d6c70233715a0ae8e15c703d40e3046a2f36a.

Fixes https://github.com/rust-lang/rust/issues/49415
</content>
</entry>
<entry>
<title>Add @ithinuel's tests from #50597</title>
<updated>2018-06-01T21:46:19+00:00</updated>
<author>
<name>Clar Charr</name>
<email>clar@charr.xyz</email>
</author>
<published>2018-05-20T18:56:46+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b1797d57ffb42a063a8ecc8cc5f9d2b625708c72'/>
<id>urn:sha1:b1797d57ffb42a063a8ecc8cc5f9d2b625708c72</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove the unstable Float trait</title>
<updated>2018-05-22T17:19:09+00:00</updated>
<author>
<name>Simon Sapin</name>
<email>simon.sapin@exyr.org</email>
</author>
<published>2018-05-21T08:45:11+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=b825477154e32e8538e00e1e230dadf93bc7e6df'/>
<id>urn:sha1:b825477154e32e8538e00e1e230dadf93bc7e6df</id>
<content type='text'>
Following up to #49896 and #50629. Fixes #32110.

E0689 is weird.
</content>
</entry>
<entry>
<title>Switch to 1.26 bootstrap compiler</title>
<updated>2018-05-17T14:47:25+00:00</updated>
<author>
<name>Mark Simulacrum</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-05-10T18:02:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=9e3432447a9c6386443acdf731d488c159be3f66'/>
<id>urn:sha1:9e3432447a9c6386443acdf731d488c159be3f66</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Rollup merge of #50464 - est31:master, r=rkruppe</title>
<updated>2018-05-09T12:29:44+00:00</updated>
<author>
<name>kennytm</name>
<email>kennytm@gmail.com</email>
</author>
<published>2018-05-09T09:26:13+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e6e58a3a436298d4a6674a04a0acd62e52a5ce1c'/>
<id>urn:sha1:e6e58a3a436298d4a6674a04a0acd62e52a5ce1c</id>
<content type='text'>
Remove some transmutes
</content>
</entry>
<entry>
<title>Some final touches to ensure `./x.py test --stage 0 src/lib*` works</title>
<updated>2018-05-05T18:34:07+00:00</updated>
<author>
<name>kennytm</name>
<email>kennytm@gmail.com</email>
</author>
<published>2018-05-05T17:02:05+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=02f6a0335f99378b2e7d630e00aabdeb57a5bd25'/>
<id>urn:sha1:02f6a0335f99378b2e7d630e00aabdeb57a5bd25</id>
<content type='text'>
</content>
</entry>
</feed>
