diff options
| author | Michael Goulet <michael@errs.io> | 2022-09-02 15:57:31 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2022-09-09 01:31:45 +0000 |
| commit | 5be30f9d79b2e08128704ddb29f7925e2fb3ef88 (patch) | |
| tree | 569598861d0545c9bd19c1e3aafca6b374d276f0 /compiler/rustc_resolve/src | |
| parent | ed2a32f22cfb7e43a3d8c732ac8fa8007c061c5f (diff) | |
| download | rust-5be30f9d79b2e08128704ddb29f7925e2fb3ef88.tar.gz rust-5be30f9d79b2e08128704ddb29f7925e2fb3ef88.zip | |
Make async fn in traits work
Diffstat (limited to 'compiler/rustc_resolve/src')
| -rw-r--r-- | compiler/rustc_resolve/src/late.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_resolve/src/late.rs b/compiler/rustc_resolve/src/late.rs index b37feb15890..2d6e76c451b 100644 --- a/compiler/rustc_resolve/src/late.rs +++ b/compiler/rustc_resolve/src/late.rs @@ -851,7 +851,7 @@ impl<'a: 'ast, 'ast> Visitor<'ast> for LateResolutionVisitor<'a, '_, 'ast> { // We include all lifetime parameters, either named or "Fresh". // The order of those parameters does not matter, as long as it is // deterministic. - if let Some(async_node_id) = async_node_id { + if let Some((async_node_id, _)) = async_node_id { let mut extra_lifetime_params = this .r .extra_lifetime_params_map |
