]> git.lizzy.rs Git - rust.git/commit
Auto merge of #38552 - eddyb:bad-blocks, r=arielb1
authorbors <bors@rust-lang.org>
Wed, 4 Jan 2017 06:29:14 +0000 (06:29 +0000)
committerbors <bors@rust-lang.org>
Wed, 4 Jan 2017 06:29:14 +0000 (06:29 +0000)
commite06ce71d0bba5a5482b40f413e54a281a345ad0a
tree9aebe4afd4c27e75c657ca3e297975e4ca4326a3
parent01677eeef2d3536b07dced43d062f4e486fe695c
parent987f52f4f5b66aba70abf63d5ba8dd87c212c10b
Auto merge of #38552 - eddyb:bad-blocks, r=arielb1

Don't leak the compiler's internal representation of scopes in error messages.

Fixes #37884 (actually fixes #27942, which was made worse by #37412) by handling more node types.
Ideally we'd turn the unknown node type situations into ICEs and fix them as they show up in errors.
But we might want to backport this patch so I was less aggressive.