]> git.lizzy.rs Git - rust.git/commit
Improve debuggability of #48116.
authorkennytm <kennytm@gmail.com>
Sat, 10 Feb 2018 21:05:11 +0000 (05:05 +0800)
committerkennytm <kennytm@gmail.com>
Tue, 13 Feb 2018 14:48:16 +0000 (22:48 +0800)
commit7984c895b6995703254035e81d0a85ae1fa9fe2b
tree5ecc1324cd524185940419cebf3c37beaffc2186
parent4d2d3fc5dadf894a8ad709a5860a549f2c0b1032
Improve debuggability of #48116.

1. When the invalid condition is hit, write out the relevant variables too
2. In compile-fail/parse-fail tests, check for ICE first, so the invalid
   error patterns won't mask our ICE output.
src/librustc_resolve/resolve_imports.rs
src/tools/compiletest/src/runtest.rs