rust-highfive · GitHub

@nrc nrc mentioned this pull request

Jul 28, 2016

Closed

16 tasks

Nick Cameron added 3 commits

August 8, 2016 14:05

Nick Cameron

Allows use with `Option` and custom `Result`-like types.

Nick Cameron

Nick Cameron

@nrc

Nick Cameron

The dummy impl should ensure the same type checking behaviour as having other (real) Carrier impls.

@nrc nrc mentioned this pull request

Aug 18, 2016

Closed

@nrc nrc mentioned this pull request

Aug 18, 2016

Merged

bors added a commit that referenced this pull request

Aug 21, 2016
Carrier trait (third attempt)
This adds a `Carrier` trait to operate with `?`. The only public implementation is for `Result`, so effectively the trait does not exist, however, it ensures future compatibility for the `?` operator. This is not intended to be used, nor is it intended to be a long-term solution.
Although this exact PR has not been through Crater, I do not expect it to be a breaking change based on putting numerous similar PRs though Crater in the past.
cc:
* [? tracking issue](#31436)
* [previous PR](#35056)
* [RFC issue](rust-lang/rfcs#1718) for discussion of long-term Carrier trait solutions.
r? @nikomatsakis

Open

Read the original on github.com ↗