rust/crates
bors b0214d81e8 Auto merge of #13843 - Overpeek:master, r=Veykril
fix: generate async delegate methods

Fixes a bug where the generated async method doesn't await the result before returning it.

This is an example of what the output looked like:
```rust
struct Age<T>(T);
impl<T> Age<T> {
    pub(crate) async fn age<J, 'a>(&'a mut self, ty: T, arg: J) -> T {
        self.0
    }
}
struct Person<T> {
    age: Age<T>,
}
impl<T> Person<T> {
    pub(crate) async fn age<J, 'a>(&'a mut self, ty: T, arg: J) -> T {
        self.age.age(ty, arg) // .await is missing
    }
}
```
The `.await` is missing, so the return type is `impl Future<Output = T>` instead of `T`
2023-01-09 13:34:51 +00:00
..
base-db Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
cfg Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
flycheck use inline format args 2023-01-02 14:52:32 +00:00
hir Auto merge of #13458 - cameron1024:suggest-checked-wrapping-saturating, r=Veykril 2023-01-09 11:24:44 +00:00
hir-def remove unnecessary lifetimes that can be elided 2023-01-02 15:02:54 +00:00
hir-expand Auto merge of #13860 - danieleades:clippy, r=lnicola 2023-01-08 17:29:57 +00:00
hir-ty Auto merge of #13860 - danieleades:clippy, r=lnicola 2023-01-08 17:29:57 +00:00
ide Auto merge of #13860 - danieleades:clippy, r=lnicola 2023-01-08 17:29:57 +00:00
ide-assists Auto merge of #13843 - Overpeek:master, r=Veykril 2023-01-09 13:34:51 +00:00
ide-completion fix: add_format_like_completions to handle no exprs 2023-01-09 12:23:59 +01:00
ide-db test: fix arg_type test 2023-01-09 12:22:29 +01:00
ide-diagnostics remove needless borrows 2023-01-02 14:52:32 +00:00
ide-ssr Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
limit Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
mbe remove unnecessary lifetimes that can be elided 2023-01-02 15:02:54 +00:00
parser remove useless operations 2023-01-02 15:02:54 +00:00
paths
proc-macro-api remove useless operations 2023-01-02 15:02:54 +00:00
proc-macro-srv remove needless borrows 2023-01-02 14:52:32 +00:00
proc-macro-srv-cli
proc-macro-test Moar linting: needless_borrow, let_unit_value, ... 2022-12-25 05:07:47 -05:00
profile remove needless borrows 2023-01-02 14:52:32 +00:00
project-model remove unnecessary lifetimes that can be elided 2023-01-02 15:02:54 +00:00
rust-analyzer Auto merge of #13744 - vtta:numthreads, r=Veykril 2023-01-09 11:53:23 +00:00
sourcegen remove needless borrows 2023-01-02 14:52:32 +00:00
stdx remove useless casts 2023-01-02 15:02:54 +00:00
syntax Auto merge of #13763 - rami3l:fix/gen-partial-eq-generic, r=Veykril 2023-01-09 13:02:09 +00:00
test-utils Auto merge of #13860 - danieleades:clippy, r=lnicola 2023-01-08 17:29:57 +00:00
text-edit
toolchain Moar linting: needless_borrow, let_unit_value, ... 2022-12-25 05:07:47 -05:00
tt Inline all format arguments where possible 2022-12-24 14:36:10 -05:00
vfs derive 'Hash' 2022-12-30 11:14:15 +00:00
vfs-notify