Fix documentation of validate_operand

The name of the parameter changed from `op` to `val` in cbdcbf0d6a
This commit is contained in:
Stypox 2025-06-26 11:15:55 +02:00
parent bc4376fa73
commit 625f8ee5dc
No known key found for this signature in database
GPG key ID: 4BDF1B40A49FDD23

View file

@ -1364,8 +1364,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
})
}
/// This function checks the data at `op` to be const-valid.
/// `op` is assumed to cover valid memory if it is an indirect operand.
/// This function checks the data at `val` to be const-valid.
/// `val` is assumed to cover valid memory if it is an indirect operand.
/// It will error if the bits at the destination do not match the ones described by the layout.
///
/// `ref_tracking` is used to record references that we encounter so that they
@ -1391,8 +1391,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
)
}
/// This function checks the data at `op` to be runtime-valid.
/// `op` is assumed to cover valid memory if it is an indirect operand.
/// This function checks the data at `val` to be runtime-valid.
/// `val` is assumed to cover valid memory if it is an indirect operand.
/// It will error if the bits at the destination do not match the ones described by the layout.
#[inline(always)]
pub fn validate_operand(