-
Notifications
You must be signed in to change notification settings - Fork 12.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow fail messages to be caught, and introduce the Any trait
Some code cleanup, sorting of import blocks Removed std::unstable::UnsafeArc's use of Either Added run-fail tests for the new FailWithCause impls Changed future_result and try to return Result<(), ~Any>. - Internally, there is an enum of possible fail messages passend around. - In case of linked failure or a string message, the ~Any gets lazyly allocated in future_results recv method. - For that, future result now returns a wrapper around a Port. - Moved and renamed task::TaskResult into rt::task::UnwindResult and made it an internal enum. - Introduced a replacement typedef `type TaskResult = Result<(), ~Any>`.
- Loading branch information
Showing
24 changed files
with
912 additions
and
214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
fa8e71a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
saw approval from huonw
at Kimundi@fa8e71a
fa8e71a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
merging Kimundi/rust/fail_cause_two = fa8e71a into auto
fa8e71a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Kimundi/rust/fail_cause_two = fa8e71a merged ok, testing candidate = 9ef23e9
fa8e71a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
all tests pass:
success: http://buildbot.rust-lang.org/builders/auto-mac-32-opt/builds/2192
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-c/builds/38
success: http://buildbot.rust-lang.org/builders/auto-mac-32-nopt-t/builds/38
success: http://buildbot.rust-lang.org/builders/auto-mac-64-opt/builds/2196
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-c/builds/1302
success: http://buildbot.rust-lang.org/builders/auto-mac-64-nopt-t/builds/1301
success: http://buildbot.rust-lang.org/builders/auto-linux-32-opt/builds/2210
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-c/builds/1302
success: http://buildbot.rust-lang.org/builders/auto-linux-32-nopt-t/builds/1302
success: http://buildbot.rust-lang.org/builders/auto-linux-64-opt/builds/2211
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-c/builds/1302
success: http://buildbot.rust-lang.org/builders/auto-linux-64-nopt-t/builds/1302
success: http://buildbot.rust-lang.org/builders/auto-linux-64-x-android/builds/1380
success: http://buildbot.rust-lang.org/builders/auto-win-32-opt/builds/2195
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-c/builds/1300
success: http://buildbot.rust-lang.org/builders/auto-win-32-nopt-t/builds/1302
success: http://buildbot.rust-lang.org/builders/auto-bsd-64-opt/builds/1976
fa8e71a
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fast-forwarding master to auto = 9ef23e9