]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Rollup merge of #76274 - scottmcm:fix-76271, r=petrochenkov
authorDylan DPC <dylan.dpc@gmail.com>
Sun, 6 Sep 2020 23:17:46 +0000 (01:17 +0200)
committerGitHub <noreply@github.com>
Sun, 6 Sep 2020 23:17:46 +0000 (01:17 +0200)
commit654598588805550d546991a228bec9a7f8210853
tree8d67fb798c275e3c0ff1807acf76be82b8ca6d42
parente488c4f187be7f561ff24fcbdc8427767be79f1f
parent791f93c796f7b4f0346eee276baf6e31ed3c81ea
Rollup merge of #76274 - scottmcm:fix-76271, r=petrochenkov

Allow try blocks as the argument to return expressions

Fixes #76271

I don't think this needs to be edition-aware (phew) since `return try` in 2015 is also the start of an expression, just with a struct literal instead of a block (`return try { x: 4, y: 5 }`).
compiler/rustc_ast/src/token.rs