summary refs log tree commit diff
path: root/compiler/rustc_ast_lowering/src/expr.rs
diff options
context:
space:
mode:
authorMichael Goulet <michael@errs.io>2024-01-26 17:00:28 +0000
committerMichael Goulet <michael@errs.io>2024-01-31 16:59:19 +0000
commit0eb2adb7e877ceaa7d4919f7b881508ee507ec3b (patch)
tree8a547aca9642b9034516d95193fc81b013a8e66f /compiler/rustc_ast_lowering/src/expr.rs
parentcdaa12e3dff109f72a5a8a0a67ea225052122a79 (diff)
downloadrust-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.rs2
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 =