Skip to content

Emit a single error on if expr with expectation and no else clause - #64049

Merged
bors merged 3 commits into
rust-lang:masterfrom
estebank:if-else-type-err
Sep 3, 2019
Merged

Emit a single error on if expr with expectation and no else clause#64049
bors merged 3 commits into
rust-lang:masterfrom
estebank:if-else-type-err

Conversation

@estebank

Copy link
Copy Markdown
Contributor

@rust-highfiverust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Sep 1, 2019
Comment threadsrc/librustc_typeck/check/_match.rs
Comment threadsrc/librustc_typeck/check/_match.rs Outdated
Comment threadsrc/librustc_typeck/check/_match.rs Outdated
@CentrilCentril added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Sep 1, 2019
@estebankestebank added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Sep 1, 2019
@Centril

Copy link
Copy Markdown
Contributor

@bors r+

@bors

bors commented Sep 1, 2019

Copy link
Copy Markdown
Collaborator

📌 Commit f53c217 has been approved by Centril

@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 1, 2019
Centril added a commit to Centril/rust that referenced this pull request Sep 1, 2019
Emit a single error on if expr with expectation and no else clause
Fixrust-lang#60254.
r? @Centril
@CentrilCentril mentioned this pull request Sep 1, 2019
@bors

bors commented Sep 2, 2019

Copy link
Copy Markdown
Collaborator

⌛ Testing commit f53c217 with merge 94543b5...

bors added a commit that referenced this pull request Sep 2, 2019
Emit a single error on if expr with expectation and no else clause
Fix#60254.
r? @Centril
@bors

bors commented Sep 2, 2019

Copy link
Copy Markdown
Collaborator

💔 Test failed - checks-azure

@rust-highfive

Copy link
Copy Markdown
Contributor

The job dist-mips64el-linux of your PR failed (raw log). Through arcane magic we have determined that the following fragments from the build log may contain information about the problem.

Click to expand the log.

I'm a bot! I can only do what humans tell me to, so if this was not helpful or you have suggestions for improvements, please ping or otherwise contact @TimNN. (Feature Requests)

@borsbors added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Sep 2, 2019
@estebank

Copy link
Copy Markdown
ContributorAuthor
Dist cargo stage1 (mips64el-unknown-linux-gnuabi64)
Building stage1 tool cargo (mips64el-unknown-linux-gnuabi64)
Downloading‌ crates ...‌
error:‌ failed to download from `https://crates.io/api/v1/crates/openssl-src/111.3.0+1.1.1c/download`‌
Caused by:
[35] SSL connect error (error:14094410:SSL routines:ssl3_read_bytes:sslv3 alert handshake failure)
command did not execute successfully: "/checkout/obj/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "build" "--target" "mips64el-unknown-linux-gnuabi64" "-Zdual-proc-macros" "-Zbinary-dep-depinfo" "-j" "2" "--release" "--locked" "--color" "always" "--manifest-path" "/checkout/src/tools/cargo/Cargo.toml" "--features" "rustc-workspace-hack/all-static" "--message-format" "json-render-diagnostics"
expected success, got: exit code: 101
failed to run: /checkout/obj/build/bootstrap/debug/bootstrap dist --host mips64el-unknown-linux-gnuabi64 --target mips64el-unknown-linux-gnuabi64
Build completed unsuccessfully in 1:18:54

@bors retry

@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 2, 2019
Centril added a commit to Centril/rust that referenced this pull request Sep 3, 2019
Emit a single error on if expr with expectation and no else clause
Fixrust-lang#60254.
r? @Centril
@CentrilCentril mentioned this pull request Sep 3, 2019
Centril added a commit to Centril/rust that referenced this pull request Sep 3, 2019
Emit a single error on if expr with expectation and no else clause
Fixrust-lang#60254.
r? @Centril
@CentrilCentril mentioned this pull request Sep 3, 2019
Centril added a commit to Centril/rust that referenced this pull request Sep 3, 2019
Emit a single error on if expr with expectation and no else clause
Fixrust-lang#60254.
r? @Centril
@CentrilCentril mentioned this pull request Sep 3, 2019
bors added a commit that referenced this pull request Sep 3, 2019
Rollup of 5 pull requests
Successful merges:
- #64049 (Emit a single error on if expr with expectation and no else clause)
- #64056 (Account for arbitrary self types in E0599)
- #64058 (librustc_errors: Extract sugg/subst handling into method)
- #64071 (use just one name when parameters and fields are the same)
- #64104 (Emit error on intrinsic to fn ptr casts)
Failed merges:
r? @ghost
@bors
bors merged commit f53c217 into rust-lang:masterSep 3, 2019
@estebank
estebank deleted the if-else-type-err branch November 9, 2023 05:18
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.

Deduplicate diagnostics in if-without-else-as-fn-expr.rs

4 participants

@estebank@Centril@bors@rust-highfive