Skip to content

Replace a few expect+format combos with unwrap_or_else+panic - #52642

Merged
bors merged 1 commit into
rust-lang:masterfrom
ljedrz:expect_fun_call
Jul 24, 2018
Merged

Replace a few expect+format combos with unwrap_or_else+panic#52642
bors merged 1 commit into
rust-lang:masterfrom
ljedrz:expect_fun_call

Conversation

@ljedrz

Copy link
Copy Markdown
Contributor

That way the error strings won't be created if the related errors are not triggered.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @estebank

(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 Jul 23, 2018
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Jul 23, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit fe588d8 has been approved by Mark-Simulacrum

@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 Jul 23, 2018
kennytm added a commit to kennytm/rust that referenced this pull request Jul 24, 2018
…lacrum
Replace a few expect+format combos with unwrap_or_else+panic
That way the error strings won't be created if the related errors are not triggered.
@kennytmkennytm mentioned this pull request Jul 24, 2018
bors added a commit that referenced this pull request Jul 24, 2018
Rollup of 10 pull requests
Successful merges:
- #52538 (Remove obsolete flags in the i586_musl Dockerfile)
- #52548 (Cursor: update docs to clarify Cursor only works with in-memory buffers)
- #52605 (Do not suggest using `to_owned()` on `&str += &str`)
- #52621 (Fix color detection for Windows msys terminals.)
- #52622 (Use MultiSpan in E0707 and E709)
- #52627 (Compile rustc before building tests for rustdoc)
- #52637 (Don't use NonNull::dangling as sentinel value in Rc, Arc)
- #52640 (Forget Waker when cloning LocalWaker)
- #52641 (Simplify 2 functions in rustc_mir/dataflow)
- #52642 (Replace a few expect+format combos with unwrap_or_else+panic)
Failed merges:
r? @ghost
@bors
bors merged commit fe588d8 into rust-lang:masterJul 24, 2018
@ljedrz
ljedrz deleted the expect_fun_call branch July 24, 2018 06:45
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.

5 participants

@ljedrz@rust-highfive@Mark-Simulacrum@bors@estebank