diff options
| author | Celina G. Val <celinval@amazon.com> | 2025-01-27 16:30:02 -0800 |
|---|---|---|
| committer | Celina G. Val <celinval@amazon.com> | 2025-01-28 11:22:25 -0800 |
| commit | c22a27130dde7d7ccf5d76fd021476ddbfdecfa0 (patch) | |
| tree | 9a4f06c3d8b9a07ba0e2b2b88cc73b923e1cc65d /compiler/rustc_ast_lowering/src | |
| parent | 2f348cb7ce4063fa4eb40038e6ada3c5214717bd (diff) | |
Refactor FnKind variant to hold &Fn
Diffstat (limited to 'compiler/rustc_ast_lowering/src')
| -rw-r--r-- | compiler/rustc_ast_lowering/src/expr.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_ast_lowering/src/expr.rs b/compiler/rustc_ast_lowering/src/expr.rs index f31e2c65c79..b932915dc29 100644 --- a/compiler/rustc_ast_lowering/src/expr.rs +++ b/compiler/rustc_ast_lowering/src/expr.rs @@ -2125,7 +2125,7 @@ impl<'hir> LoweringContext<'_, 'hir> { self.arena.alloc(self.expr_call_mut(span, e, args)) } - fn expr_call_lang_item_fn_mut( + pub(super) fn expr_call_lang_item_fn_mut( &mut self, span: Span, lang_item: hir::LangItem, @@ -2135,7 +2135,7 @@ impl<'hir> LoweringContext<'_, 'hir> { self.expr_call_mut(span, path, args) } - fn expr_call_lang_item_fn( + pub(super) fn expr_call_lang_item_fn( &mut self, span: Span, lang_item: hir::LangItem, |
