Skip to content

Commit 2204d61

Browse files
zachs18RalfJung
andauthored
Update compiler/rustc_const_eval/src/const_eval/machine.rs
Co-authored-by: Ralf Jung <post@ralfj.de>
1 parent 156113b commit 2204d61

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_const_eval/src/const_eval

1 file changed

+2
-2
lines changed

compiler/rustc_const_eval/src/const_eval/machine.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -368,8 +368,8 @@ impl<'tcx> CompileTimeInterpCx<'tcx> {
368368
// pointers are (in)equal.
369369
// FIXME: Can zero-sized static be "within" non-zero-sized statics?
370370
// Conservatively we say yes, since that doesn't cause them to
371-
// "overlap" any bytes, but if not, then we could delete this branch
372-
// and have the other branches handle ZST allocations.
371+
// "overlap" any bytes, but if not, then we could delete this branch;
372+
// the other branches would already handle ZST allocations correctly.
373373
2
374374
} else if a_offset > a_info.size || b_offset > b_info.size {
375375
// One or both pointers are out of bounds of their allocation,

0 commit comments

Comments
 (0)