about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-02-10 13:39:46 +0000
committerbors <bors@rust-lang.org>2019-02-10 13:39:46 +0000
commit2755d12fa688b75b2f2d50643f74b62f42484454 (patch)
tree4052ea35146c2a9e63bf413e48c2bc8c202ddc64 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parentaf43950143b1672efd9fd5681d3fb52d0108f716 (diff)
parentf3cd81980db4fc74df110ec540da8e5c0c363872 (diff)
downloadrust-2755d12fa688b75b2f2d50643f74b62f42484454.tar.gz
rust-2755d12fa688b75b2f2d50643f74b62f42484454.zip
Auto merge of #3744 - phansch:fix3144, r=oli-obk
Fix ICE in needless_pass_by_value lint

If I understand it correctly, we were first creating a type with a
`RegionKind::ReErased` region and then deleted it again in
`util::implements_trait` with:

    cx.tcx.erase_regions(&ty);

causing the type query to fail.

It looks like using `ReEmpty` works around that deletion.

Fixes #3144
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions