<feed xmlns='http://www.w3.org/2005/Atom'>
<title>rust/src/libcore/tests/num/mod.rs, branch 1.34.0</title>
<subtitle>https://github.com/rust-lang/rust
</subtitle>
<id>http://git.dreamy.place/mirrors/rust/atom?h=1.34.0</id>
<link rel='self' href='http://git.dreamy.place/mirrors/rust/atom?h=1.34.0'/>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/'/>
<updated>2019-02-13T17:21:13+00:00</updated>
<entry>
<title>review or fix remaining miri failures in libcore</title>
<updated>2019-02-13T17:21:13+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2019-02-09T15:19:21+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=72be9a607bd127cdd5cdb3f1f53af725f4eeef98'/>
<id>urn:sha1:72be9a607bd127cdd5cdb3f1f53af725f4eeef98</id>
<content type='text'>
</content>
</entry>
<entry>
<title>disable tests in Miri</title>
<updated>2019-02-07T17:24:10+00:00</updated>
<author>
<name>Ralf Jung</name>
<email>post@ralfj.de</email>
</author>
<published>2019-02-07T17:23:44+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=81613ad7cf9889a59d0a7233af9e462715945a72'/>
<id>urn:sha1:81613ad7cf9889a59d0a7233af9e462715945a72</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Remove licenses</title>
<updated>2018-12-26T04:08:33+00:00</updated>
<author>
<name>Mark Rousskov</name>
<email>mark.simulacrum@gmail.com</email>
</author>
<published>2018-12-25T15:56:47+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=2a663555ddf36f6b041445894a8c175cd1bc718c'/>
<id>urn:sha1:2a663555ddf36f6b041445894a8c175cd1bc718c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>rename div_euc -&gt; div_euclid, and mod_euc -&gt; rem_euclid</title>
<updated>2018-12-18T00:41:48+00:00</updated>
<author>
<name>Nicole Mazzuca</name>
<email>npmazzuca@gmail.com</email>
</author>
<published>2018-12-18T00:41:48+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=e36b62873fb6787d521fbc4e0bd89915e28ed0f1'/>
<id>urn:sha1:e36b62873fb6787d521fbc4e0bd89915e28ed0f1</id>
<content type='text'>
logic is written up in https://github.com/rust-lang/rust/issues/49048

Also, update the documentation slightly
</content>
</entry>
<entry>
<title>core/tests/num: Simplify `test_int_from_str_overflow()` test code</title>
<updated>2018-11-14T14:01:27+00:00</updated>
<author>
<name>Tobias Bieniek</name>
<email>tobias.bieniek@gmail.com</email>
</author>
<published>2018-11-13T12:19:24+00:00</published>
<link rel='alternate' type='text/html' href='http://git.dreamy.place/mirrors/rust/commit/?id=cfbae3e1940f75fa1f5f99bf60f68ed9756a202b'/>
<id>urn:sha1:cfbae3e1940f75fa1f5f99bf60f68ed9756a202b</id>
<content type='text'>
This commit changes the test code to compare against easier-to-read, static values instead of relying on the result of `wrapping_add()` which may or may not result in the value that we expect.
</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>
</feed>
