Skip to content

don't explicitly compare against true or false - #69433

Merged
bors merged 1 commit into
rust-lang:masterfrom
matthiaskrgr:bool_cmp
Feb 25, 2020
Merged

don't explicitly compare against true or false#69433
bors merged 1 commit into
rust-lang:masterfrom
matthiaskrgr:bool_cmp

Conversation

@matthiaskrgr

Copy link
Copy Markdown
Member

No description provided.

Comment on lines 107 to 110

let bottom_value_set = if A::BOTTOM_VALUE == true {
let bottom_value_set = if A::BOTTOM_VALUE {
BitSet::new_filled(bits_per_block)
} else {
BitSet::new_empty(bits_per_block)

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.

cc @pnkfelix This feels like there should be a BitSet constructor that takes a bool and a count.

@eddyb

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Feb 24, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit addd742 has been approved by eddyb

@borsbors added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Feb 24, 2020
bors added a commit that referenced this pull request Feb 25, 2020
Rollup of 6 pull requests
Successful merges:
- #69220 (Add documentation for the `-Zself-profile` flag)
- #69391 (Add rustdoc aliases to `ptr::copy` and `ptr::copy_nonoverlapping`)
- #69427 (Cleanup e0368 e0369)
- #69433 (don't explicitly compare against true or false)
- #69435 (Replace uses of Cell::get + Cell::set with Cell::replace.)
- #69437 (no more codegen for miri_start_panic)
Failed merges:
r? @ghost
@bors
bors merged commit eda4489 into rust-lang:masterFeb 25, 2020
@matthiaskrgr
matthiaskrgr deleted the bool_cmp branch February 29, 2020 14:10
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.

3 participants

@matthiaskrgr@eddyb@bors