Andrea Nall 782b484b79 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
2022-07-07 16:10:36 -05:00
..
2022-06-20 11:05:40 +09:00
2022-06-20 12:03:27 +00:00
2022-06-25 14:16:28 +02:00
2022-06-28 12:48:24 -04:00