Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update mem::discriminant test to use assert_eq and assert_ne over comparison operators #64717

Merged
merged 1 commit into from
Sep 25, 2019
Merged

Conversation

andrewbanchich
Copy link
Contributor

Use assert_eq and assert_ne over comparison operators.

Use assert_eq and assert_ne over comparison operators.
@rust-highfive
Copy link
Collaborator

r? @joshtriplett

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

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 23, 2019
@joshtriplett
Copy link
Member

joshtriplett commented Sep 23, 2019

The change looks reasonable. However, could you please use a more descriptive subject than "update test"? Don't leave all the details to the body of the commit message.

r=me (and bors rollup) with that fixed.

@andrewbanchich andrewbanchich changed the title update test update mem::discriminant test to use assert_eq and assert_ne over comparison operators Sep 23, 2019
@andrewbanchich
Copy link
Contributor Author

@joshtriplett Sure, all set! Let me know if you need anything else.

r? @joshtriplett
@bors r+ rollup

@bors
Copy link
Contributor

bors commented Sep 23, 2019

@andrewbanchich: 🔑 Insufficient privileges: Not in reviewers

@bors
Copy link
Contributor

bors commented Sep 23, 2019

@andrewbanchich: 🔑 Insufficient privileges: not in try users

@andrewbanchich
Copy link
Contributor Author

Whoops, so you meant I should add r? @joshtriplett and then you will @bors r+ rollup after you review? First time contributing to docs...

@bors
Copy link
Contributor

bors commented Sep 23, 2019

@andrewbanchich: 🔑 Insufficient privileges: Not in reviewers

@Centril
Copy link
Contributor

Centril commented Sep 23, 2019

@bors r=joshtriplett rollup

@bors
Copy link
Contributor

bors commented Sep 23, 2019

📌 Commit 8acf958 has been approved by joshtriplett

@bors bors 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 Sep 23, 2019
@Centril
Copy link
Contributor

Centril commented Sep 23, 2019

@andrewbanchich r=me generally means that someone with approval rights can do r=reviewer but if you don't have approval rights then you'll have to wait.

Centril added a commit to Centril/rust that referenced this pull request Sep 24, 2019
update mem::discriminant test to use assert_eq and assert_ne over comparison operators

Use assert_eq and assert_ne over comparison operators.
Centril added a commit to Centril/rust that referenced this pull request Sep 24, 2019
update mem::discriminant test to use assert_eq and assert_ne over comparison operators

Use assert_eq and assert_ne over comparison operators.
bors added a commit that referenced this pull request Sep 24, 2019
Rollup of 16 pull requests

Successful merges:

 - #63356 (Issue#63183: Add fs::read_dir() and ReadDir warning about iterator order + example)
 - #63934 (Fix coherence checking for impl trait in type aliases)
 - #64016 (Streamline `Compiler`)
 - #64296 (Document the unstable iter_order_by library feature)
 - #64443 (rustdoc: general cleanup)
 - #64622 (Add a cycle detector for generic `Graph`s and `mir::Body`s)
 - #64689 (Refactor macro by example)
 - #64698 (Recover on `const X = 42;` and infer type + Error Stash API)
 - #64702 (Remove unused dependencies)
 - #64717 (update mem::discriminant test to use assert_eq and assert_ne over comparison operators)
 - #64720 ( remove rtp.rs, and move rtpSpawn and RTP_ID_ERROR to libc)
 - #64721 (Fixed issue from #64447)
 - #64725 (fix one typo)
 - #64737 (fix several issues in String docs)
 - #64742 (relnotes: make compatibility section more sterile and fix rustc version)
 - #64748 (Fix #64744. Account for the Zero sub-pattern case.)

Failed merges:

r? @ghost
@bors bors merged commit 8acf958 into rust-lang:master Sep 25, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-bors Status: 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.

5 participants