about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
diff options
context:
space:
mode:
authorShotaro Yamada <sinkuu@sinkuu.xyz>2018-04-24 00:31:13 +0900
committerShotaro Yamada <sinkuu@sinkuu.xyz>2018-04-28 10:49:45 +0900
commit9fc2595802d37326dc25fe524149023ed46b9730 (patch)
treeff77183e7b2471435f3750ff42d82814baaee1d9 /tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff
parente05b78daa628ad88952d856c68cb5708434fa934 (diff)
downloadrust-9fc2595802d37326dc25fe524149023ed46b9730.tar.gz
rust-9fc2595802d37326dc25fe524149023ed46b9730.zip
Make `trait_of_item` return None for non associated items
It have returned `Some` for constants in a trait definition,
and `Instance::resolve` called `tcx.associated_item` for them,
causing ICE.
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_bound.NormalizeArrayLen.panic-abort.diff')
0 files changed, 0 insertions, 0 deletions