mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-25 16:24:46 +00:00
Reintroduce the recursion comment
This commit is contained in:
parent
1531c3937b
commit
b476344ccc
@ -769,6 +769,10 @@ impl<'mir, 'tcx, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
|
||||
self.param_env
|
||||
};
|
||||
let val = self.tcx.const_eval(param_env.and(gid))?;
|
||||
// Even though `ecx.const_eval` is called from `eval_const_to_op` we can never have a
|
||||
// recursion deeper than one level, because the `tcx.const_eval` above is guaranteed to not
|
||||
// return `ConstValue::Unevaluated`, which is the only way that `eval_const_to_op` will call
|
||||
// `ecx.const_eval`.
|
||||
self.eval_const_to_op(val, None)
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user