diff options
| author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-06-13 00:00:00 +0000 |
|---|---|---|
| committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2022-06-13 17:10:40 +0200 |
| commit | 8a8404bc2b62299f085cd22bc1e0863eca3065fe (patch) | |
| tree | 8734904aa6e02a065b27fb453ad8b5be27a2fc70 | |
| parent | 083721a1a7365d3afe1521cd2661b2201aac0450 (diff) | |
| download | rust-8a8404bc2b62299f085cd22bc1e0863eca3065fe.tar.gz rust-8a8404bc2b62299f085cd22bc1e0863eca3065fe.zip | |
Inline `const_eval_select`
To avoid circular link time dependency between core and compiler builtins when building with `-Zshare-generics`.
| -rw-r--r-- | library/core/src/intrinsics.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/intrinsics.rs b/library/core/src/intrinsics.rs index 7c10ed65c4c..43ba2dc2874 100644 --- a/library/core/src/intrinsics.rs +++ b/library/core/src/intrinsics.rs @@ -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")] #[lang = "const_eval_select"] #[rustc_do_not_const_check] +#[inline] pub const unsafe fn const_eval_select<ARG, F, G, RET>( arg: ARG, _called_in_const: F, |
