Skip to content

Commit 9459b37

Browse files
committed
Fix comment to reflect error handling behaviour.
1 parent 9c898d6 commit 9459b37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustc_mir/interpret/validity.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
802802

803803
throw_validation_failure!("uninitialized bytes", self.path)
804804
}
805-
// Other errors shouldn't be possible
805+
// Propagate upwards (that will also check for unexpected errors).
806806
_ => return Err(err),
807807
}
808808
}

0 commit comments

Comments
 (0)