Nick Cameron added 3 commits
August 8, 2016 14:05
Allows use with `Option` and custom `Result`-like types.
The dummy impl should ensure the same type checking behaviour as having other (real) Carrier impls.
nrc
mentioned this pull request
Closed
nrc
mentioned this pull request
Merged
bors added a commit that referenced this pull request
Aug 21, 2016Carrier 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