]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #84767 - scottmcm:try_trait_actual, r=lcnr
authorbors <bors@rust-lang.org>
Tue, 18 May 2021 20:50:01 +0000 (20:50 +0000)
committerbors <bors@rust-lang.org>
Tue, 18 May 2021 20:50:01 +0000 (20:50 +0000)
Implement the new desugaring from `try_trait_v2`

~~Currently blocked on https://github.com/rust-lang/rust/issues/84782, which has a PR in https://github.com/rust-lang/rust/pull/84811~~ Rebased atop that fix.

`try_trait_v2` tracking issue: https://github.com/rust-lang/rust/issues/84277

Unfortunately this is already touching a ton of things, so if you have suggestions for good ways to split it up, I'd be happy to hear them.  (The combination between the use in the library, the compiler changes, the corresponding diagnostic differences, even MIR tests mean that I don't really have a great plan for it other than trying to have decently-readable commits.

r? `@ghost`

~~(This probably shouldn't go in during the last week before the fork anyway.)~~ Fork happened.


Trivial merge