Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Propagate the return code from the start lang item #1065

Merged
merged 3 commits into from
Nov 20, 2019

Conversation

Aaron1011
Copy link
Member

Fixes #1064

This ensures that we set the error code properly when a panic unwinds
past main.

I'm not sure what the best way to write a test for this is

Fixes rust-lang#1064

This ensures that we set the error code properly when a panic unwinds
past `main`.

I'm not sure what the best way to write a test for this is
src/eval.rs Show resolved Hide resolved
src/eval.rs Outdated Show resolved Hide resolved
Don't explicitly exit if we reported an evaluation error
@Aaron1011
Copy link
Member Author

@RalfJung: Updated

src/eval.rs Outdated Show resolved Hide resolved
src/eval.rs Outdated Show resolved Hide resolved
src/eval.rs Outdated Show resolved Hide resolved
src/eval.rs Outdated Show resolved Hide resolved
Co-Authored-By: Ralf Jung <[email protected]>
@Aaron1011
Copy link
Member Author

@RalfJung: Updated

@RalfJung
Copy link
Member

Thanks!

@bors r+

@bors
Copy link
Collaborator

bors commented Nov 20, 2019

📌 Commit 2176bf6 has been approved by RalfJung

@bors
Copy link
Collaborator

bors commented Nov 20, 2019

⌛ Testing commit 2176bf6 with merge 35e92d9...

bors added a commit that referenced this pull request Nov 20, 2019
Propagate the return code from the `start` lang item

Fixes #1064

This ensures that we set the error code properly when a panic unwinds
past `main`.

I'm not sure what the best way to write a test for this is
@bors
Copy link
Collaborator

bors commented Nov 20, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: RalfJung
Pushing 35e92d9 to master...

@bors bors merged commit 2176bf6 into rust-lang:master Nov 20, 2019
@Aaron1011 Aaron1011 deleted the fix/start-return branch November 20, 2019 22:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Unwinding panics have wrong exit code
3 participants