rust/compiler
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
..
rustc
rustc_apfloat Apply clippy suggestions 2021-10-10 15:38:19 +02:00
rustc_arena
rustc_ast remove unwrap_or! macro 2021-10-08 19:32:16 +03:00
rustc_ast_lowering Rollup merge of #89641 - asquared31415:asm-feature-attr-regs, r=oli-obk 2021-10-09 11:56:00 +02:00
rustc_ast_passes Allow adding a set of cfg's to hide from being implicitly doc(cfg)'d 2021-10-05 18:04:15 +02:00
rustc_ast_pretty
rustc_attr
rustc_borrowck Rollup merge of #89675 - oli-obk:type_checker, r=davidtwco 2021-10-11 23:45:49 +02:00
rustc_builtin_macros Rollup merge of #89649 - matthiaskrgr:clippycompl, r=jyn514 2021-10-08 22:30:40 +02:00
rustc_codegen_cranelift Add const_eval_select intrinsic 2021-10-12 05:42:23 +00:00
rustc_codegen_gcc Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=wesleywiser 2021-10-11 04:31:47 +00:00
rustc_codegen_llvm Remap ssa RealPredicate to llvm RealPredicate 2021-10-12 11:55:45 +02:00
rustc_codegen_ssa Auto merge of #89597 - michaelwoerister:improve-vtable-debuginfo, r=wesleywiser 2021-10-11 04:31:47 +00:00
rustc_const_eval Fix const stability 2021-10-14 07:07:34 +00:00
rustc_data_structures Remove for loop range 2021-10-10 16:32:16 +02:00
rustc_driver Fix RUSTC_LOG handling 2021-10-10 19:59:36 +01:00
rustc_error_codes Add long explanation for E0464 2021-10-12 13:10:12 -07:00
rustc_errors use structured fields in some existing warnings 2021-10-07 10:48:48 -07:00
rustc_expand
rustc_feature Auto merge of #89247 - fee1-dead:const-eval-select, r=oli-obk 2021-10-14 10:06:30 +00:00
rustc_fs_util
rustc_graphviz Apply clippy suggestions 2021-10-10 15:38:19 +02:00
rustc_hir Auto merge of #89247 - fee1-dead:const-eval-select, r=oli-obk 2021-10-14 10:06:30 +00:00
rustc_hir_pretty
rustc_incremental
rustc_index Use Option::map_or instead of open coding it 2021-10-12 14:47:52 +02:00
rustc_infer Re-use logic for adding a suggestion when a lifetime bound is missing on an impl trait 2021-10-13 10:53:44 +00:00
rustc_interface Enable AutoFDO. 2021-10-06 19:36:52 +00:00
rustc_lexer Apply clippy suggestions 2021-10-10 15:38:19 +02:00
rustc_lint Add enum_intrinsics_non_enums lint 2021-10-11 09:46:27 +02:00
rustc_lint_defs Add feature gate to non_exhaustive_omitted_patterns lint 2021-10-08 17:40:39 -04:00
rustc_llvm Rollup merge of #89025 - ricobbe:raw-dylib-link-ordinal, r=michaelwoerister 2021-10-07 20:26:11 -07:00
rustc_macros Apply clippy suggestions 2021-10-10 15:38:19 +02:00
rustc_metadata Include rmeta candidates in "multiple matching crates" error 2021-10-12 13:10:11 -07:00
rustc_middle Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
rustc_mir_build Filter unstable and doc hidden variants in usefulness checking 2021-10-12 08:22:25 -04:00
rustc_mir_dataflow comma-related changes 2021-10-07 11:29:47 -07:00
rustc_mir_transform clippy::complexity fixes 2021-10-08 20:07:44 +02:00
rustc_monomorphize
rustc_parse some clippy::perf fixes 2021-10-07 22:31:33 +02:00
rustc_parse_format
rustc_passes Use Ancestory to check default fn in const impl instead of comparing idents 2021-10-11 18:19:54 +01:00
rustc_plugin_impl
rustc_privacy
rustc_query_impl Remove built-in cache_hit tracking 2021-10-11 16:33:49 -04:00
rustc_query_system Remove built-in cache_hit tracking 2021-10-11 16:33:49 -04:00
rustc_resolve Rollup merge of #89347 - TaKO8Ki:crate-or-module-typo, r=estebank 2021-10-13 22:51:00 +02:00
rustc_save_analysis Auto merge of #89266 - cjgillot:session-ich, r=michaelwoerister 2021-10-05 09:45:11 +00:00
rustc_serialize Apply clippy suggestions 2021-10-10 15:38:19 +02:00
rustc_session Rollup merge of #89476 - cjgillot:expn-id, r=petrochenkov 2021-10-07 20:26:14 -07:00
rustc_span Auto merge of #89247 - fee1-dead:const-eval-select, r=oli-obk 2021-10-14 10:06:30 +00:00
rustc_symbol_mangling
rustc_target add platform support details file for armv7-unknown-linux-uclibc 2021-10-06 14:33:13 +00:00
rustc_trait_selection Auto merge of #89247 - fee1-dead:const-eval-select, r=oli-obk 2021-10-14 10:06:30 +00:00
rustc_traits clippy::complexity fixes 2021-10-08 20:07:44 +02:00
rustc_ty_utils
rustc_type_ir
rustc_typeck Auto merge of #89247 - fee1-dead:const-eval-select, r=oli-obk 2021-10-14 10:06:30 +00:00