diff options
| author | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-08-10 11:48:52 +0200 |
|---|---|---|
| committer | Oliver Scherer <github35764891676564198441@oli-obk.de> | 2020-09-19 10:36:36 +0200 |
| commit | 4397d66d428509ef6867bae78b13a33c828573d0 (patch) | |
| tree | f8153c6c7fd95761faba5ef4f63620349a0fc45a /compiler/rustc_mir/src/const_eval/eval_queries.rs | |
| parent | 6d3c7bb70ddedfd9770047d7b0b79dd2aae515af (diff) | |
| download | rust-4397d66d428509ef6867bae78b13a33c828573d0.tar.gz rust-4397d66d428509ef6867bae78b13a33c828573d0.zip | |
Document `op_to_const`'s purpose
Diffstat (limited to 'compiler/rustc_mir/src/const_eval/eval_queries.rs')
| -rw-r--r-- | compiler/rustc_mir/src/const_eval/eval_queries.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/compiler/rustc_mir/src/const_eval/eval_queries.rs b/compiler/rustc_mir/src/const_eval/eval_queries.rs index 013c6746605..8b0cbae4333 100644 --- a/compiler/rustc_mir/src/const_eval/eval_queries.rs +++ b/compiler/rustc_mir/src/const_eval/eval_queries.rs @@ -104,6 +104,8 @@ pub(super) fn mk_eval_cx<'mir, 'tcx>( ) } +/// This function converts an interpreter value into a constant that is meant for use in the +/// type system. pub(super) fn op_to_const<'tcx>( ecx: &CompileTimeEvalContext<'_, 'tcx>, op: OpTy<'tcx>, |
