diff options
| author | bors <bors@rust-lang.org> | 2022-07-07 23:04:29 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-07-07 23:04:29 +0000 |
| commit | 2058b927776201244aa903451674275ff17e1d15 (patch) | |
| tree | a2b39c581a3d6c6958bc4b6fb0a3f18f81839af3 /tests/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs | |
| parent | 7142a59674fc6faa5e76abdd47e2b516e9fd153b (diff) | |
| parent | 782b484b799d638ee391b31dc322370432753722 (diff) | |
| download | rust-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
