about summary refs log tree commit diff
path: root/src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
diff options
context:
space:
mode:
authorDan Johnson <computerdruid@google.com>2022-11-02 17:45:08 -0700
committerDan Johnson <computerdruid@google.com>2022-12-14 16:38:21 -0800
commitda98ef9a5d0b8a4fb90e1d845506880fae9e7352 (patch)
tree255ffbbb7f63e882d7d1173c08f9ad81b7f9134c /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentb70baa4f922a1809d79caeaeb902800c3be283b9 (diff)
downloadrust-da98ef9a5d0b8a4fb90e1d845506880fae9e7352.tar.gz
rust-da98ef9a5d0b8a4fb90e1d845506880fae9e7352.zip
Ensure async trait impls are async (or otherwise return an opaque type)
As a workaround for the full `#[refine]` semantics not being implemented
yet, forbit returning a concrete future type like `Box<dyn Future>` or a
manually implemented Future.

`-> impl Future` is still permitted; while that can also cause
accidental refinement, that's behind a different feature gate
(`return_position_impl_trait_in_trait`) and that problem exists
regardless of whether the trait method is async, so will have to be
solved more generally.

Fixes #102745
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions