Skip to content

Commit 87edcf0

Browse files
committed
improve a comment
1 parent 32453ce commit 87edcf0

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
@@ -613,7 +613,7 @@ impl<'rt, 'mir, 'tcx, M: Machine<'mir, 'tcx>> ValueVisitor<'mir, 'tcx, M>
613613
// reject it. However, that's good: We don't inherently want
614614
// to reject those pointers, we just do not have the machinery to
615615
// talk about parts of a pointer.
616-
// We also accept undef, for consistency with the type-based checks.
616+
// We also accept undef, for consistency with the slow path.
617617
match self.ecx.memory.get(ptr.alloc_id)?.check_bytes(
618618
self.ecx,
619619
ptr,

0 commit comments

Comments
 (0)