We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 156113b commit 2204d61Copy full SHA for 2204d61
compiler/rustc_const_eval/src/const_eval/machine.rs
@@ -368,8 +368,8 @@ impl<'tcx> CompileTimeInterpCx<'tcx> {
368
// pointers are (in)equal.
369
// FIXME: Can zero-sized static be "within" non-zero-sized statics?
370
// 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.
+ // "overlap" any bytes, but if not, then we could delete this branch;
+ // the other branches would already handle ZST allocations correctly.
373
2
374
} else if a_offset > a_info.size || b_offset > b_info.size {
375
// One or both pointers are out of bounds of their allocation,
0 commit comments