Skip to content

Commit 7e992e7

Browse files
Rollup merge of rust-lang#98059 - tmiasko:inline-const-eval-select, r=Amanieu
Inline `const_eval_select` To avoid circular link time dependency between core and compiler builtins when building with `-Zshare-generics`. r? `@Amanieu`
2 parents fb691ca + 8a8404b commit 7e992e7

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/intrinsics.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,7 @@ pub const unsafe fn write_bytes<T>(dst: *mut T, val: u8, count: usize) {
23632363
#[rustc_const_unstable(feature = "const_eval_select", issue = "none")]
23642364
#[lang = "const_eval_select"]
23652365
#[rustc_do_not_const_check]
2366+
#[inline]
23662367
pub const unsafe fn const_eval_select<ARG, F, G, RET>(
23672368
arg: ARG,
23682369
_called_in_const: F,

0 commit comments

Comments
 (0)