diff options
| author | bors <bors@rust-lang.org> | 2019-02-10 13:39:46 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2019-02-10 13:39:46 +0000 |
| commit | 2755d12fa688b75b2f2d50643f74b62f42484454 (patch) | |
| tree | 4052ea35146c2a9e63bf413e48c2bc8c202ddc64 /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff | |
| parent | af43950143b1672efd9fd5681d3fb52d0108f716 (diff) | |
| parent | f3cd81980db4fc74df110ec540da8e5c0c363872 (diff) | |
| download | rust-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
