diff options
| author | Michael Goulet <michael@errs.io> | 2024-01-26 17:00:28 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2024-01-31 16:59:19 +0000 |
| commit | 0eb2adb7e877ceaa7d4919f7b881508ee507ec3b (patch) | |
| tree | 8a547aca9642b9034516d95193fc81b013a8e66f /compiler/rustc_ast_lowering/src/expr.rs | |
| parent | cdaa12e3dff109f72a5a8a0a67ea225052122a79 (diff) | |
| download | rust-0eb2adb7e877ceaa7d4919f7b881508ee507ec3b.tar.gz rust-0eb2adb7e877ceaa7d4919f7b881508ee507ec3b.zip | |
Add async bound modifier to enable async Fn bounds
Diffstat (limited to 'compiler/rustc_ast_lowering/src/expr.rs')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/expr.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index 0ad4a59c17e..3b00a84e67e 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -100,6 +100,8 @@ impl<'hir> LoweringContext<'_, 'hir> { ParenthesizedGenericArgs::Err, &ImplTraitContext::Disallowed(ImplTraitPosition::Path), None, + // Method calls can't have bound modifiers + None, )); let receiver = self.lower_expr(receiver); let args = |
