Skip to content

Use assert_ne in hash tests - #69504

Merged
bors merged 1 commit into
rust-lang:masterfrom
MichaelMcDonnell:hash_assert_ne
Mar 1, 2020
Merged

Use assert_ne in hash tests#69504
bors merged 1 commit into
rust-lang:masterfrom
MichaelMcDonnell:hash_assert_ne

Conversation

@MichaelMcDonnell

Copy link
Copy Markdown
Contributor

The hash tests were written before the assert_ne macro was added to the standard library. The assert_ne macro provides better output in case of a failure.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @LukasKalbertodt

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 27, 2020
Comment threadsrc/libcore/tests/hash/sip.rs Outdated

@LukasKalbertodtLukasKalbertodt left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@LukasKalbertodt

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Feb 28, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 290ed02 has been approved by LukasKalbertodt

@borsbors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Feb 28, 2020
@Dylan-DPC-zz

Copy link
Copy Markdown

@bors rollup

Dylan-DPC-zz pushed a commit to Dylan-DPC-zz/rust that referenced this pull request Feb 29, 2020
…LukasKalbertodt
Use assert_ne in hash tests
The hash tests were written before the assert_ne macro was added to the standard library. The assert_ne macro provides better output in case of a failure.
bors added a commit that referenced this pull request Feb 29, 2020
Rollup of 6 pull requests
Successful merges:
- #69477 (docs: add mention of async blocks in move keyword docs)
- #69504 (Use assert_ne in hash tests)
- #69546 (use to_vec() instead of .iter().cloned().collect() to convert slices to vecs.)
- #69551 (use is_empty() instead of len() == x to determine if structs are empty.)
- #69563 (Fix no_std detection for target triples)
- #69567 (use .to_string() instead of format!() macro to create strings)
Failed merges:
r? @ghost
bors added a commit that referenced this pull request Feb 29, 2020
Rollup of 7 pull requests
Successful merges:
- #69504 (Use assert_ne in hash tests)
- #69571 (remove unneeded .as_ref() calls.)
- #69572 (use .iter() instead of .into_iter() on references)
- #69581 (fix aliasing violation in align_to_mut)
- #69582 (improve transmute and Vec::from_raw_parts docs)
- #69584 (Correct comment to match behavior)
- #69587 (rustc_parse: Tweak the function parameter name check)
Failed merges:
r? @ghost
@jonas-schievink

Copy link
Copy Markdown
Contributor

It looks like this was only partially merged in the rollup, 14495ed is still missing. Not sure how that happened.

@Dylan-DPC-zz

Copy link
Copy Markdown

yes the r+ just points to the first commit

@JohnTitor

Copy link
Copy Markdown
Member

@MichaelMcDonnell Could you rebase?

@MichaelMcDonnell

Copy link
Copy Markdown
ContributorAuthor

Ok @JohnTitor I've rebased.

@JohnTitor

Copy link
Copy Markdown
Member

Thanks! Let's check...
@bors r=LukasKalbertodt rollup

@bors

bors commented Mar 1, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit 87327eb has been approved by LukasKalbertodt

bors added a commit that referenced this pull request Mar 1, 2020
Rollup of 7 pull requests
Successful merges:
- #69504 (Use assert_ne in hash tests)
- #69554 (Cleanup e0374)
- #69568 (Clarify explanation of Vec<T> 'fn resize')
- #69569 (simplify boolean expressions)
- #69577 (Clean up E0375 explanation)
- #69598 (rustdoc: HTML escape crate version)
- #69607 (Clean up E0376 explanation)
Failed merges:
r? @ghost
@bors
bors merged commit e9e1ab1 into rust-lang:masterMar 1, 2020
@MichaelMcDonnell
MichaelMcDonnell deleted the hash_assert_ne branch March 2, 2020 15:39
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants

@MichaelMcDonnell@rust-highfive@LukasKalbertodt@bors@Dylan-DPC-zz@jonas-schievink@JohnTitor@matthiaskrgr