]> git.lizzy.rs Git - rust.git/commit - src/tools/rustfmt
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)
commita732c3a3693fab727d3b8e6f5594b67efbb421eb
tree660baa930905d1140eab240f77232979ee1fe8a9
parent772b1a6d79e3deaf4326b144e58f147088963ff7
parente1d5c3c0544b981c08581a0cf40c759d2f5bdff0
Rollup merge of #78853 - calebcartwright:fix-const-block-expr-span, r=spastorino

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
compiler/rustc_parse/src/parser/mod.rs