diff options
| author | David Wood <david@davidtw.co> | 2019-05-06 22:56:47 +0100 |
|---|---|---|
| committer | David Wood <david@davidtw.co> | 2019-05-07 07:44:12 +0100 |
| commit | f2919a31c8101da2dd773ea5ffca4195e96d3d50 (patch) | |
| tree | 9ed35fdc286ecf9b99a6e440c36d2dc0b8033472 /src/libstd/sys/unix/stack_overflow.rs | |
| parent | a416a19153e799dae6679d8672703dbeb48730d5 (diff) | |
| download | rust-f2919a31c8101da2dd773ea5ffca4195e96d3d50.tar.gz rust-f2919a31c8101da2dd773ea5ffca4195e96d3d50.zip | |
Trust signature over return expr for generators.
This commit extends the logic used to determine what the expected signature of a closure is so that it can also determine the expected signature of a generator. This improves a diagnostic where the fn signature was blamed instead of the generator body. It doesn't fix fix the diagnostic for `async fn`.
Diffstat (limited to 'src/libstd/sys/unix/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions
