]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #40764 - arielb1:range-nodes, r=eddyb
authorbors <bors@rust-lang.org>
Mon, 27 Mar 2017 05:28:32 +0000 (05:28 +0000)
committerbors <bors@rust-lang.org>
Mon, 27 Mar 2017 05:28:32 +0000 (05:28 +0000)
keep the AST node-id when lowering ExprKind::Range

When the Range expression is the root of a constant, its node-id is
used for the def-id of the body, so it has to be preserved in the AST ->
HIR lowering.

Fixes #40749.

r? @eddyb
beta-nominating because regression


Trivial merge