rust/library/core/src
bors c34ac8747c Auto merge of #89247 - fee1-dead:const-eval-select, r=oli-obk
Add `const_eval_select` intrinsic

Adds an intrinsic that calls a given function when evaluated at compiler time, but generates a call to another function when called at runtime.

See https://github.com/rust-lang/const-eval/issues/7 for previous discussion.

r? `@oli-obk.`
2021-10-14 10:06:30 +00:00
..
alloc Add #[must_use] to non-mutating verb methods 2021-10-11 21:21:32 -04:00
array use fold instead of try_fold now that .by_ref().next() has been inlined 2021-10-11 23:36:04 +02:00
char Add #[must_use] to to_value conversions 2021-10-11 19:37:16 -04:00
convert Rollup merge of #89781 - Wilfred:patch-2, r=JohnTitor 2021-10-13 21:55:11 +09:00
fmt Add #[must_use] to as_type conversions 2021-10-11 13:57:38 -04:00
future Fix may not to appropriate might not or must not 2021-07-29 01:15:20 -04:00
hash Rollup merge of #89729 - jkugelman:must-use-core-std-constructors, r=joshtriplett 2021-10-11 14:11:43 +02:00
iter inline next() on &mut Iterator impl 2021-10-11 17:50:03 +02:00
macros Use correct edition for panic in [debug_]assert!() etc. 2021-10-07 14:27:08 +02:00
mem Auto merge of #89769 - jkugelman:must-use-maybe-uninit-new, r=joshtriplett 2021-10-12 07:02:53 +00:00
num Add #[inline] to int log10 functions. 2021-10-12 15:21:14 +02:00
ops Const Deref 2021-09-15 03:06:53 +00:00
panic Fix unused sync::atomic import on targets without atomics 2021-07-31 17:27:29 -07:00
prelude Move asm! and global_asm! to core::arch 2021-07-18 18:30:58 -04:00
ptr Rollup merge of #89794 - jkugelman:must-use-to_value-conversions, r=joshtriplett 2021-10-13 21:55:13 +09:00
slice Add #[must_use] to as_type conversions 2021-10-11 13:57:38 -04:00
str Rollup merge of #89778 - jkugelman:must-use-as_type-conversions, r=joshtriplett 2021-10-12 14:53:08 +02:00
stream Apply 16 commits (squashed) 2021-09-25 20:04:35 +02:00
sync Add #[must_use] to core and std constructors 2021-10-10 02:44:26 -04:00
task fix minor spelling error in Poll::ready docs 2021-10-11 21:00:02 -07:00
unicode Regenerate tables for Unicode 14.0.0 2021-10-06 17:49:33 -07:00
any.rs
ascii.rs EscapeDefault: change range field to Range<u8>, reducing struct size 24 -> 6 bytes 2021-09-18 14:20:00 +03:00
bool.rs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
borrow.rs
cell.rs Rollup merge of #88374 - joshlf:patch-2, r=JohnTitor 2021-10-10 18:22:17 +02:00
clone.rs Ignore automatically derived impls of Clone and Debug in dead code analysis 2021-09-09 19:49:07 +02:00
cmp.rs Suggest deriving traits if possible 2021-09-06 13:18:05 +02:00
default.rs Constified Default implementations 2021-08-17 07:15:54 +00:00
ffi.rs
hint.rs Bump stage0 compiler to 1.56 2021-09-08 20:51:05 -04:00
internal_macros.rs Remove unnecessary #[unstable] from internal macro. 2021-08-05 12:55:35 +02:00
intrinsics.rs Fix const stability 2021-10-14 07:07:34 +00:00
lazy.rs Add #[must_use] to core and std constructors 2021-10-10 02:44:26 -04:00
lib.rs Cfg hide no_global_oom_handling and no_fp_fmt_parse 2021-10-09 17:07:33 +01:00
marker.rs Fix ICE 89775 2021-10-11 20:52:36 +01:00
option.rs Add #[must_use] to as_type conversions 2021-10-11 13:57:38 -04:00
panic.rs Allow panic!("{}", computed_str) in const fn. 2021-09-15 21:56:43 +01:00
panicking.rs Use ZST for fmt unsafety 2021-09-21 10:04:44 -05:00
pin.rs Add #[must_use] to conversions that move self 2021-10-10 19:50:52 -04:00
primitive.rs
primitive_docs.rs Add primitive documentation to libcore 2021-09-12 02:23:08 +00:00
result.rs Rebase Result::map_or_else doc wording on top of #89400. 2021-10-06 09:03:18 +02:00
time.rs Rollup merge of #89778 - jkugelman:must-use-as_type-conversions, r=joshtriplett 2021-10-12 14:53:08 +02:00
tuple.rs
unit.rs