diff options
| author | bors <bors@rust-lang.org> | 2023-09-21 21:12:32 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-09-21 21:12:32 +0000 |
| commit | b3aa8e7168a3d940122db3561289ffbf3f587262 (patch) | |
| tree | c5aa364458c712723f87b1e674a1a2a39699419e /compiler/rustc_codegen_gcc/src | |
| parent | f73d376fb669859b167cb04121c52f7f6f71a05e (diff) | |
| parent | 9072415252d6dde7f23acc21a6781f27c703ac9d (diff) | |
| download | rust-b3aa8e7168a3d940122db3561289ffbf3f587262.tar.gz rust-b3aa8e7168a3d940122db3561289ffbf3f587262.zip | |
Auto merge of #115864 - compiler-errors:rpitit-sugg, r=estebank
Suggest desugaring to return-position `impl Future` when an `async fn` in trait fails an auto trait bound First commit allows us to store the span of the `async` keyword in HIR. Second commit implements a suggestion to desugar an `async fn` to a return-position `impl Future` in trait to slightly improve the `Send` situation being discussed in #115822. This suggestion is only made when `#![feature(return_type_notation)]` is not enabled -- if it is, we should instead suggest an appropriate where-clause bound.
Diffstat (limited to 'compiler/rustc_codegen_gcc/src')
0 files changed, 0 insertions, 0 deletions
