about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
diff options
context:
space:
mode:
authorEric Holk <ericholk@microsoft.com>2021-12-17 15:05:38 -0800
committerEric Holk <ericholk@microsoft.com>2022-01-18 14:25:30 -0800
commit887e843eeb35e9cc78884e9d5feacf914377f355 (patch)
tree4bf7fe5deefcc60123204003c0a5e0d526247cda /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs
parent787f4cbd15b91e88d757bf3f1ac1dadfa0e8ec5a (diff)
downloadrust-887e843eeb35e9cc78884e9d5feacf914377f355.tar.gz
rust-887e843eeb35e9cc78884e9d5feacf914377f355.zip
Update async-fn-nonsend.rs
The previous commit made the non_sync_with_method_call case pass due to
the await being unreachable. Unfortunately, this isn't actually the
behavior the test was verifying. This change lifts the panic into a
helper function so that the generator analysis still thinks the await
is reachable, and therefore we preserve the same testing behavior.
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha1.rs')
0 files changed, 0 insertions, 0 deletions