Skip to content

make coercions to ! in unreachable code a hard error - #45880

Merged
bors merged 1 commit into
rust-lang:masterfrom
arielb1:never-coerce
Dec 2, 2017
Merged

make coercions to ! in unreachable code a hard error#45880
bors merged 1 commit into
rust-lang:masterfrom
arielb1:never-coerce

Conversation

@arielb1

Copy link
Copy Markdown
Contributor

This was added to cover up a lazy extra semicolon in #35849, but does
not actually make sense. This is removed as a part of the stabilization
of never_type.

@arielb1arielb1 added the S-waiting-on-crater Status: Waiting on a crater run to be completed. label Nov 8, 2017
@arielb1

Copy link
Copy Markdown
ContributorAuthor

cc @Mark-Simulacrum

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors try

@bors

bors commented Nov 8, 2017

Copy link
Copy Markdown
Collaborator

⌛ Trying commit 2dd1dbfc3041345ba17a9d372412f01eb13a0d32 with merge 371771a40e0262d2b480f622def0e79a1e4b378c...

@bors

bors commented Nov 9, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-travis
State: approved= try=True

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Crater started.

@nikomatsakis

Copy link
Copy Markdown
Contributor

Nice.

@alexcrichton

Copy link
Copy Markdown
Member

r? @eddyb

(just making sure this has an assigned reviewer)

@eddyb

Copy link
Copy Markdown
Contributor

LGTM, if we actually want to do this, I guess.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

Please rebase onto master and run another try build to pick up fixes in Cargo.

@kennytmkennytm 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-crater Status: Waiting on a crater run to be completed. labels Nov 13, 2017
@arielb1

Copy link
Copy Markdown
ContributorAuthor

@Mark-Simulacrum

Force push done. Waiting for another crater run.

@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors try

bors added a commit that referenced this pull request Nov 15, 2017
[needs crater] make coercions to `!` in unreachable code a hard error
This was added to cover up a lazy extra semicolon in #35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
@bors

bors commented Nov 15, 2017

Copy link
Copy Markdown
Collaborator

⌛ Trying commit 491d128 with merge b53e6a8...

@kennytmkennytm added S-waiting-on-crater Status: Waiting on a crater run to be completed. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Nov 15, 2017
@bors

bors commented Nov 15, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-travis
State: approved= try=True

@aidanhs

Copy link
Copy Markdown
Contributor

Crater run started

@aidanhs

Copy link
Copy Markdown
Contributor

Hi @arielb1 (crater requester), @eddyb (reviewer)! Crater results are at: http://cargobomb-reports.s3.amazonaws.com/pr-45580/index.html. 'Blacklisted' crates (spurious failures etc) can be found
here. If you see any spurious failures not on the list, please make a PR against that file.

@arielb1

Copy link
Copy Markdown
ContributorAuthor

All failures look spurious.

@arielb1

Copy link
Copy Markdown
ContributorAuthor

I suppose we'll merge this with deny-by-default, given that there were no failures on crater

r? @nikomatsakis

@arielb1arielb1 changed the title [needs crater] make coercions to ! in unreachable code a hard errormake coercions to ! in unreachable code a hard errorNov 26, 2017
@kennytmkennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 26, 2017
@kennytmkennytm removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 29, 2017
Comment threadsrc/librustc_lint/lib.rs Outdated
},
FutureIncompatibleInfo {
id: LintId::of(COERCE_NEVER),
reference: "issue #46325 <https://github.com/rust-lang/rust/issues/42869>",

@mzjimzjiNov 30, 2017

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This link should be fixed (point to an issue related to never type coercion).

15 | #![deny(coerce_never)]
| ^^^^^^^^^^^^
= warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release!
= note: for more information, see issue #46325 <https://github.com/rust-lang/rust/issues/42869>

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And this link.

arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
make coercions to `!` in unreachable code a hard error
This was added to cover up a lazy extra semicolon in rust-lang#35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
@arielb1arielb1 mentioned this pull request Nov 30, 2017
This was added to cover up a lazy extra semicolon in rust-lang#35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
@arielb1

Copy link
Copy Markdown
ContributorAuthor

@bors r=nikomatsakis rollup

@bors

bors commented Nov 30, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 5a00b7c has been approved by nikomatsakis

@arielb1arielb1 mentioned this pull request Nov 30, 2017
@arielb1arielb1 mentioned this pull request Nov 30, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
make coercions to `!` in unreachable code a hard error
This was added to cover up a lazy extra semicolon in rust-lang#35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
make coercions to `!` in unreachable code a hard error
This was added to cover up a lazy extra semicolon in rust-lang#35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
@arielb1arielb1 mentioned this pull request Nov 30, 2017
arielb1 pushed a commit to arielb1/rust that referenced this pull request Nov 30, 2017
make coercions to `!` in unreachable code a hard error
This was added to cover up a lazy extra semicolon in rust-lang#35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
@arielb1arielb1 mentioned this pull request Nov 30, 2017
kennytm added a commit to kennytm/rust that referenced this pull request Dec 1, 2017
make coercions to `!` in unreachable code a hard error
This was added to cover up a lazy extra semicolon in rust-lang#35849, but does
not actually make sense. This is removed as a part of the stabilization
of `never_type`.
@kennytmkennytm mentioned this pull request Dec 1, 2017
bors added a commit that referenced this pull request Dec 1, 2017
Rollup of 13 pull requests
- Successful merges: #45880, #46280, #46373, #46376, #46385, #46386, #46387, #46392, #46400, #46401, #46405, #46412, #46421
- Failed merges:
@bors
bors merged commit 5a00b7c into rust-lang:masterDec 2, 2017
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.

9 participants

@arielb1@Mark-Simulacrum@bors@nikomatsakis@alexcrichton@eddyb@aidanhs@mzji@kennytm