]> git.lizzy.rs Git - rust.git/commitdiff
Auto merge of #38766 - eddyb:less-fake-hir, r=arielb1
authorbors <bors@rust-lang.org>
Mon, 2 Jan 2017 13:51:43 +0000 (13:51 +0000)
committerbors <bors@rust-lang.org>
Mon, 2 Jan 2017 13:51:43 +0000 (13:51 +0000)
Stop creating fake HIR pattern nodes.

This replaces all the HIR patterns `rustc_const_eval` creates with the more appropriate HAIR equivalent.

The only place left that creates HIR nodes is the "explicit lifetimes in function signature" suggestion, which only creates type nodes while rebuilding the signature, but that is only in case of an error.

cc @arielb1


Trivial merge