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:
authorMatthias Krüger <matthias.krueger@famsik.de>2022-12-15 12:46:00 +0100
committerGitHub <noreply@github.com>2022-12-15 12:46:00 +0100
commitc00eac355845637b604d3b0225e5416430776e21 (patch)
tree19a257317926672f232115b8d35e2e78ac824694 /src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs
parentd67000e44e1b9908c81fc4d5de875608f1b80ae9 (diff)
parentda98ef9a5d0b8a4fb90e1d845506880fae9e7352 (diff)
downloadrust-c00eac355845637b604d3b0225e5416430776e21.tar.gz
rust-c00eac355845637b604d3b0225e5416430776e21.zip
Rollup merge of #104592 - ComputerDruid:async_check, r=compiler-errors
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 https://github.com/rust-lang/rust/issues/102745
Diffstat (limited to 'src/test/codegen/src-hash-algorithm/src-hash-algorithm-sha256.rs')
0 files changed, 0 insertions, 0 deletions