]> git.lizzy.rs Git - rust.git/commit
Auto merge of #7108 - rust-lang:fix-return-try-err, r=Manishearth
authorbors <bors@rust-lang.org>
Sun, 18 Apr 2021 23:47:18 +0000 (23:47 +0000)
committerbors <bors@rust-lang.org>
Sun, 18 Apr 2021 23:47:18 +0000 (23:47 +0000)
commitc569d33be52a9be7b1070d1a7c9bc1255e004e87
treee20b255ad7dc878d0095046678755c799cbf5eda
parente441b33ba00d897fff4479513210d41f988dfde3
parent243dc4625050d791eb8f91b6b4da2f8dc8449a8d
Auto merge of #7108 - rust-lang:fix-return-try-err, r=Manishearth

un-double `return` on try_err

This fixes #7103 by looking at the parent expression and omitting the "return " in the suggestion when its already a `return` expression.

---

changelog: none