Pull mplace validation logic out into an interpreter method
This commit is contained in:
parent
0fce74e1c0
commit
5784e9e83e
2 changed files with 33 additions and 21 deletions
|
@ -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>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue