@@ -1274,17 +1274,17 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
1274
1274
dest_ty : Ty < ' tcx > ,
1275
1275
) -> EvalResult < ' tcx , ( ) > {
1276
1276
if let Some ( Value :: ByRef ( dest_ptr) ) = old_dest_val {
1277
- // If the local value is already `ByRef` (that is, backed by an `Allocation`),
1277
+ // If the value is already `ByRef` (that is, backed by an `Allocation`),
1278
1278
// then we must write the new value into this allocation, because there may be
1279
1279
// other pointers into the allocation. These other pointers are logically
1280
1280
// pointers into the local variable, and must be able to observe the change.
1281
1281
//
1282
1282
// Thus, it would be an error to replace the `ByRef` with a `ByVal`, unless we
1283
- // knew for certain that there were no outstanding pointers to this local .
1283
+ // knew for certain that there were no outstanding pointers to this allocation .
1284
1284
self . write_value_to_ptr ( src_val, dest_ptr, dest_ty) ?;
1285
1285
1286
1286
} else if let Value :: ByRef ( src_ptr) = src_val {
1287
- // If the local value is not `ByRef`, then we know there are no pointers to it
1287
+ // If the value is not `ByRef`, then we know there are no pointers to it
1288
1288
// and we can simply overwrite the `Value` in the locals array directly.
1289
1289
//
1290
1290
// In this specific case, where the source value is `ByRef`, we must duplicate
@@ -1301,7 +1301,7 @@ impl<'a, 'tcx> EvalContext<'a, 'tcx> {
1301
1301
1302
1302
} else {
1303
1303
// Finally, we have the simple case where neither source nor destination are
1304
- // `ByRef`. We may simply copy the source value over the the destintion local .
1304
+ // `ByRef`. We may simply copy the source value over the the destintion.
1305
1305
write_dest ( self , src_val) ;
1306
1306
}
1307
1307
Ok ( ( ) )
0 commit comments