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:
authorPhilipp Hansch <dev@phansch.net>2019-02-06 08:09:56 +0100
committerPhilipp Hansch <dev@phansch.net>2019-02-06 09:18:35 +0100
commitf3cd81980db4fc74df110ec540da8e5c0c363872 (patch)
treeae2c8996b99efbd742da99e3058b761776d4028f /tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff
parent4259377ea61e4c830a49deda5be60c05a76a0a90 (diff)
downloadrust-f3cd81980db4fc74df110ec540da8e5c0c363872.tar.gz
rust-f3cd81980db4fc74df110ec540da8e5c0c363872.zip
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.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len_raw.NormalizeArrayLen.diff')
0 files changed, 0 insertions, 0 deletions