]> git.lizzy.rs Git - rust.git/commit - src/tools/clippy
Rollup merge of #62709 - nhynes:test-maplike-fromiter, r=cuviper
authorMazdak Farrokhzad <twingoow@gmail.com>
Mon, 22 Jul 2019 13:32:09 +0000 (15:32 +0200)
committerGitHub <noreply@github.com>
Mon, 22 Jul 2019 13:32:09 +0000 (15:32 +0200)
commit0de90c67dce73694ddd577de67d8352e420bee0c
tree3588f6a94ad061e808dea12d2b71d505804ba871
parent4bc1ce7bdb7f5dc9ea07c0b630c087d8e11140e4
parent503cedac0c33782ab2ec6765f6b790850d260bd2
Rollup merge of #62709 - nhynes:test-maplike-fromiter, r=cuviper

Test that maplike FromIter satisfies uniqueness

This PR adds a simple assertion to the `HashMap` and `HashSet` tests to ensure that uniqueness is satisfied when `FromIter`ing. This is useful for people who want to test their custom type against the Map/Set interfaces since they'll copy the tests wholesale but possibly miss this bug (where _they_ = _me_).