]> git.lizzy.rs Git - rust.git/commit
Auto merge of #49371 - scottmcm:catch-wrapping, r=nikomatsakis
authorbors <bors@rust-lang.org>
Thu, 12 Apr 2018 05:38:49 +0000 (05:38 +0000)
committerbors <bors@rust-lang.org>
Thu, 12 Apr 2018 05:38:49 +0000 (05:38 +0000)
commit252a459d373f40512ed9137d59e4b6bea5d6aaee
tree2148fc7dbd4b8564861b4c8df9e1e097b32d35dc
parent47778811d9752d9db0d1d4621bbc225317ad216b
parent311ff5b441c25c545c3b7928bb9f947b8e47be6f
Auto merge of #49371 - scottmcm:catch-wrapping, r=nikomatsakis

Add ok-wrapping to catch blocks, per RFC

Updates the `catch{}` lowering to wrap the result in `Try::from_ok`.

r? @nikomatsakis

Fixes #41414
Fixes #43818
src/librustc_mir/lib.rs