about summary refs log tree commit diff
path: root/tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2022-07-07 23:04:29 +0000
committerbors <bors@rust-lang.org>2022-07-07 23:04:29 +0000
commit2058b927776201244aa903451674275ff17e1d15 (patch)
treea2b39c581a3d6c6958bc4b6fb0a3f18f81839af3 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parent7142a59674fc6faa5e76abdd47e2b516e9fd153b (diff)
parent782b484b799d638ee391b31dc322370432753722 (diff)
downloadrust-2058b927776201244aa903451674275ff17e1d15.tar.gz
rust-2058b927776201244aa903451674275ff17e1d15.zip
Auto merge of #9120 - anall:bugfix/ice9041, r=Jarcho
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

This also makes this code in `sugg::DerefDelegate` match a different use `typ.fn_sig(…)` I found: in `mixed_read_write_in_expression` -- being strict on the value of `typ.kind()` will hopefully reduce any future possibility of ICE crashes in this area.

---

changelog: none
Diffstat (limited to 'tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions