diff options
| author | bors <bors@rust-lang.org> | 2021-10-14 10:06:30 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2021-10-14 10:06:30 +0000 |
| commit | c34ac8747ca96d09cb08b8f5adddead826e77c06 (patch) | |
| tree | 23a25e70efd4d935b3aea4b3082baed6add97917 /compiler/rustc_span/src | |
| parent | 7807a694c2f079fd3f395821bcc357eee8650071 (diff) | |
| parent | 11fac09eadc3a60982e46e2fed177d6b0a686041 (diff) | |
| download | rust-c34ac8747ca96d09cb08b8f5adddead826e77c06.tar.gz rust-c34ac8747ca96d09cb08b8f5adddead826e77c06.zip | |
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.`
Diffstat (limited to 'compiler/rustc_span/src')
| -rw-r--r-- | compiler/rustc_span/src/symbol.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_span/src/symbol.rs b/compiler/rustc_span/src/symbol.rs index 6c889e88a59..fddb225345f 100644 --- a/compiler/rustc_span/src/symbol.rs +++ b/compiler/rustc_span/src/symbol.rs @@ -441,6 +441,8 @@ symbols! { const_compare_raw_pointers, const_constructor, const_eval_limit, + const_eval_select, + const_eval_select_ct, const_evaluatable_checked, const_extern_fn, const_fn, @@ -1097,6 +1099,7 @@ symbols! { rustc_diagnostic_item, rustc_diagnostic_macros, rustc_dirty, + rustc_do_not_const_check, rustc_dummy, rustc_dump_env_program_clauses, rustc_dump_program_clauses, |
