Skip to content

Commit d2bf3fc

Browse files
committed
Avoid tupling at the callee
1 parent ce44501 commit d2bf3fc

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

core/src/intrinsics.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2266,10 +2266,10 @@ pub const unsafe fn const_eval_select<ARG, F, G, RET>(
22662266
called_at_rt: G,
22672267
) -> RET
22682268
where
2269-
F: ~const FnOnce(ARG) -> RET,
2270-
G: FnOnce(ARG) -> RET + ~const Drop,
2269+
F: ~const FnOnce<ARG, Output = RET>,
2270+
G: FnOnce<ARG, Output = RET> + ~const Drop,
22712271
{
2272-
called_at_rt(arg)
2272+
called_at_rt.call_once(arg)
22732273
}
22742274

22752275
#[cfg(not(bootstrap))]
@@ -2285,8 +2285,8 @@ pub const unsafe fn const_eval_select_ct<ARG, F, G, RET>(
22852285
_called_at_rt: G,
22862286
) -> RET
22872287
where
2288-
F: ~const FnOnce(ARG) -> RET,
2289-
G: FnOnce(ARG) -> RET + ~const Drop,
2288+
F: ~const FnOnce<ARG, Output = RET>,
2289+
G: FnOnce<ARG, Output = RET> + ~const Drop,
22902290
{
2291-
called_in_const(arg)
2291+
called_in_const.call_once(arg)
22922292
}

0 commit comments

Comments
 (0)