1
Fork 0

Pull mplace validation logic out into an interpreter method

This commit is contained in:
Oli Scherer 2023-10-10 07:02:45 +00:00
parent 0fce74e1c0
commit 5784e9e83e
2 changed files with 33 additions and 21 deletions

View file

@ -929,7 +929,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
/// - no pointers to statics.
/// - no `UnsafeCell` or non-ZST `&mut`.
#[inline(always)]
pub fn const_validate_operand(
pub(crate) fn const_validate_operand(
&self,
op: &OpTy<'tcx, M::Provenance>,
path: Vec<PathElem>,