about summary refs log tree commit diff
path: root/compiler/rustc_codegen_gcc
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-09-21 21:12:32 +0000
committerbors <bors@rust-lang.org>2023-09-21 21:12:32 +0000
commitb3aa8e7168a3d940122db3561289ffbf3f587262 (patch)
treec5aa364458c712723f87b1e674a1a2a39699419e /compiler/rustc_codegen_gcc
parentf73d376fb669859b167cb04121c52f7f6f71a05e (diff)
parent9072415252d6dde7f23acc21a6781f27c703ac9d (diff)
downloadrust-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')
0 files changed, 0 insertions, 0 deletions