Fix comment to reflect error handling behaviour.

This commit is contained in:
jumbatm 2020-04-30 13:01:36 +10:00
parent 9c898d65b8
commit 9459b37780

View File

@ -802,7 +802,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
throw_validation_failure!("uninitialized bytes", self.path)
}
// Other errors shouldn't be possible
// Propagate upwards (that will also check for unexpected errors).
_ => return Err(err),
}
}