]> git.lizzy.rs Git - rust.git/commit
Lower `?` to `Try` instead of `Carrier`
authorScott McMurray <scottmcm@users.noreply.github.com>
Sun, 7 May 2017 07:14:04 +0000 (00:14 -0700)
committerScott McMurray <scottmcm@users.noreply.github.com>
Thu, 25 May 2017 07:47:30 +0000 (00:47 -0700)
commitecde1e1d3b077f22f75ad34e12e35eef0b6c85f3
tree00451d8cf304cd9259ea41db5177f5858a004a54
parentffb0e2dba38adb0bacf6636719bfe709286851fd
Lower `?` to `Try` instead of `Carrier`

The easy parts of RFC 1859.  (Just the trait and the lowering, none of
the error message improvements nor the insta-stable impl for Option.)
src/doc/unstable-book/src/SUMMARY.md
src/doc/unstable-book/src/library-features/question-mark-carrier.md
src/doc/unstable-book/src/library-features/try-trait.md [new file with mode: 0644]
src/libcore/ops.rs
src/libcore/result.rs
src/librustc/hir/lowering.rs
src/test/run-pass/try-operator-custom.rs