Inline const_eval_select
To avoid circular link time dependency between core and compiler builtins when building with `-Zshare-generics`.
This commit is contained in:
parent
083721a1a7
commit
8a8404bc2b
@ -2363,6 +2363,7 @@ pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
|
|||||||
#[rustc_const_unstable(feature = "const_eval_select", issue = "none")]
|
#[rustc_const_unstable(feature = "const_eval_select", issue = "none")]
|
||||||
#[lang = "const_eval_select"]
|
#[lang = "const_eval_select"]
|
||||||
#[rustc_do_not_const_check]
|
#[rustc_do_not_const_check]
|
||||||
|
#[inline]
|
||||||
pub const unsafe fn const_eval_select<ARG, F, G, RET>(
|
pub const unsafe fn const_eval_select<ARG, F, G, RET>(
|
||||||
arg: ARG,
|
arg: ARG,
|
||||||
_called_in_const: F,
|
_called_in_const: F,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user