Skip to content

Commit 580074a

Browse files
committed
Add issue link to same-alloc GlobalAlloc::Memory FIXME
1 parent 4968dfa commit 580074a

File tree

1 file changed

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

1 file changed

+2
-1
lines changed

compiler/rustc_const_eval/src/const_eval/machine.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,8 @@ impl<'tcx> CompileTimeInterpCx<'tcx> {
347347
// cannot be sure of runtime equality of pointers to the same one, (or the
348348
// runtime inequality of pointers to different ones) (see e.g. #73722).
349349
Some(GlobalAlloc::Function { .. } | GlobalAlloc::VTable(..)) => 2,
350-
// FIXME: Can these can be duplicated?
350+
// FIXME: Revisit this once https://github.com/rust-lang/rust/issues/128775
351+
// is fixed.
351352
Some(GlobalAlloc::Memory(..)) => 2,
352353
// `GlobalAlloc::TypeId` exists mostly to prevent consteval from comparing
353354
// `TypeId`s, always return 2

0 commit comments

Comments
 (0)