Skip to content

Commit 625f8ee

Browse files
committed
Fix documentation of validate_operand
The name of the parameter changed from `op` to `val` in cbdcbf0
1 parent bc4376f commit 625f8ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

compiler/rustc_const_eval/src/interpret/validity.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1364,8 +1364,8 @@ impl<'tcx, M: Machine<'tcx>> InterpCx<'tcx, M> {
13641364
})
13651365
}
13661366

1367-
/// This function checks the data at `op` to be const-valid.
1368-
/// `op` is assumed to cover valid memory if it is an indirect operand.
1367+
/// This function checks the data at `val` to be const-valid.
1368+
/// `val` is assumed to cover valid memory if it is an indirect operand.
13691369
/// It will error if the bits at the destination do not match the ones described by the layout.
13701370
///
13711371
/// `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> {
13911391
)
13921392
}
13931393

1394-
/// This function checks the data at `op` to be runtime-valid.
1395-
/// `op` is assumed to cover valid memory if it is an indirect operand.
1394+
/// This function checks the data at `val` to be runtime-valid.
1395+
/// `val` is assumed to cover valid memory if it is an indirect operand.
13961396
/// It will error if the bits at the destination do not match the ones described by the layout.
13971397
#[inline(always)]
13981398
pub fn validate_operand(

0 commit comments

Comments
 (0)