diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-27 14:41:18 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-27 16:42:06 -0800 |
| commit | e1a5c467c7e592221e63832e4493a9b11f3eb4d6 (patch) | |
| tree | 89ad0a3a4d012d1585c4bed3580d39fc80273496 /src/test/incremental/thinlto | |
| parent | 0edc3d37bb23784f9ad7927a5b84244ccfd85ca6 (diff) | |
| parent | 8ad06af1311e7112d6f21709ba344d43867b547c (diff) | |
| download | rust-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
