about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-01-27 14:41:18 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-01-27 16:42:06 -0800
commite1a5c467c7e592221e63832e4493a9b11f3eb4d6 (patch)
tree89ad0a3a4d012d1585c4bed3580d39fc80273496 /src/test/incremental/thinlto
parent0edc3d37bb23784f9ad7927a5b84244ccfd85ca6 (diff)
parent8ad06af1311e7112d6f21709ba344d43867b547c (diff)
downloadrust-e1a5c467c7e592221e63832e4493a9b11f3eb4d6.tar.gz
rust-e1a5c467c7e592221e63832e4493a9b11f3eb4d6.zip
Rollup merge of #39311 - solson:fix-unpretty-mir-non-local, r=eddyb
Avoid ICE when pretty-printing non-local MIR item.

This comes up when using `-Zunstable-options --unpretty=mir`. Previously, rustc would ICE due to an unwrap later in this function (after `as_local_node_id`). Instead, we should just ignore items from other crates when pretty-printing MIR.

This was reported in #rust: [this playground code](https://is.gd/PSMBZS) causes an ICE if you click the MIR button. The problem is the mention of the non-local item `std::usize::MAX`, so you can reduce the test case [a lot](https://is.gd/SaLjaa).

r? @eddyb
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions