]> git.lizzy.rs Git - rust.git/commitdiff
Rollup merge of #78853 - calebcartwright:fix-const-block-expr-span, r=spastorino
authorJonas Schievink <jonasschievink@gmail.com>
Sat, 28 Nov 2020 14:58:15 +0000 (15:58 +0100)
committerGitHub <noreply@github.com>
Sat, 28 Nov 2020 14:58:15 +0000 (15:58 +0100)
rustc_parse: fix ConstBlock expr span

The span for a ConstBlock expression should presumably run through the end of the block it contains and not stop at the keyword, just like is done with similar block-containing expression kinds, such as a TryBlock

1  2 
compiler/rustc_parse/src/parser/mod.rs