]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #68358 - matthewjasper:spec-fix, r=nikomatsakis
authorbors <bors@rust-lang.org>
Sat, 8 Feb 2020 03:46:56 +0000 (03:46 +0000)
committerbors <bors@rust-lang.org>
Sat, 8 Feb 2020 03:46:56 +0000 (03:46 +0000)
commit6cad7542da2f10e2110f942de4db59716bacb3df
treec3344ccc601a6bbdebd9b69ee1a92e4e81cfceac
parent8498c5f5b02dbb4ed58a1eb4901b0b733342c35f
parenta81c59f9b84b6519785a4e0ae9234107d149f454
Auto merge of #68358 - matthewjasper:spec-fix, r=nikomatsakis

Remove some unsound specializations

This removes the unsound and exploitable specializations in the standard library

* The `PartialEq` and `Hash` implementations for  `RangeInclusive` are changed to avoid specialization.
* The `PartialOrd` specialization for slices now specializes on a limited set of concrete types.
* Added some tests for the soundness problems.
src/libcore/tests/iter.rs