Skip to content

Don't use an if guard to check equality with a constant - #77078

Merged
bors merged 1 commit into
rust-lang:masterfrom
LingMan:patch-2
Sep 25, 2020
Merged

Don't use an if guard to check equality with a constant#77078
bors merged 1 commit into
rust-lang:masterfrom
LingMan:patch-2

Conversation

@LingMan

Copy link
Copy Markdown
Contributor

Match on it directly instead

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @davidtwco

(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 Sep 22, 2020
@jonas-schievink

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Sep 22, 2020

Copy link
Copy Markdown
Collaborator

📌 Commit c078905 has been approved by jonas-schievink

@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 Sep 22, 2020
ecstatic-morse added a commit to ecstatic-morse/rust that referenced this pull request Sep 22, 2020
Don't use an if guard to check equality with a constant
Match on it directly instead
bors added a commit to rust-lang-ci/rust that referenced this pull request Sep 25, 2020
…as-schievink
Rollup of 15 pull requests
Successful merges:
- rust-lang#75438 (Use adaptive SVG favicon for rustdoc like other rust sites)
- rust-lang#76304 (Make delegation methods of `std::net::IpAddr` unstably const)
- rust-lang#76724 (Allow a unique name to be assigned to dataflow graphviz output)
- rust-lang#76978 (Documented From impls in std/sync/mpsc/mod.rs)
- rust-lang#77044 (Liballoc bench vec use mem take not replace)
- rust-lang#77050 (Typo fix: "satsify" -> "satisfy")
- rust-lang#77074 (add array::from_ref)
- rust-lang#77078 (Don't use an if guard to check equality with a constant)
- rust-lang#77079 (Use `Self` in docs when possible)
- rust-lang#77081 (Merge two almost identical match arms)
- rust-lang#77121 (Updated html_root_url for compiler crates)
- rust-lang#77136 (Suggest `const_mut_refs`, not `const_fn` for mutable references in `const fn`)
- rust-lang#77160 (Suggest `const_fn_transmute`, not `const_fn`)
- rust-lang#77164 (Remove workaround for deref issue that no longer exists.)
- rust-lang#77165 (Followup to rust-lang#76673)
Failed merges:
r? `@ghost`
@bors
bors merged commit 28e0bc9 into rust-lang:masterSep 25, 2020
@rustbotrustbot added this to the 1.48.0 milestone Sep 25, 2020
@LingMan
LingMan deleted the patch-2 branch September 25, 2020 21:37
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.

6 participants

@LingMan@rust-highfive@jonas-schievink@bors@davidtwco@rustbot