about summary refs log tree commit diff
path: root/tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
diff options
context:
space:
mode:
authorAndrea Nall <anall@andreanall.com>2022-07-04 13:25:31 -0500
committerAndrea Nall <anall@andreanall.com>2022-07-07 16:10:36 -0500
commit782b484b799d638ee391b31dc322370432753722 (patch)
treea2b39c581a3d6c6958bc4b6fb0a3f18f81839af3 /tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff
parent7142a59674fc6faa5e76abdd47e2b516e9fd153b (diff)
downloadrust-782b484b799d638ee391b31dc322370432753722.tar.gz
rust-782b484b799d638ee391b31dc322370432753722.zip
Fix ICE in sugg::DerefDelegate with (named) closures
rustc comiler internals helpfully tell us how to fix the issue:

  to get the signature of a closure, use `substs.as_closure().sig()` not `fn_sig()`

Fixes ICE in #9041
Diffstat (limited to 'tests/mir-opt/lower_array_len.array_len.NormalizeArrayLen.panic-unwind.diff')
0 files changed, 0 insertions, 0 deletions