Auto merge of #2264 - RalfJung:not-a-fixme, r=RalfJung
remove a FIXME that is not actually a bug
This commit is contained in:
commit
1589ba3bbc
@ -172,7 +172,6 @@ pub fn futex<'tcx>(
|
|||||||
this.atomic_fence(&[], AtomicFenceOp::SeqCst)?;
|
this.atomic_fence(&[], AtomicFenceOp::SeqCst)?;
|
||||||
// Read an `i32` through the pointer, regardless of any wrapper types.
|
// Read an `i32` through the pointer, regardless of any wrapper types.
|
||||||
// It's not uncommon for `addr` to be passed as another type than `*mut i32`, such as `*const AtomicI32`.
|
// It's not uncommon for `addr` to be passed as another type than `*mut i32`, such as `*const AtomicI32`.
|
||||||
// FIXME: this fails if `addr` is not a pointer type.
|
|
||||||
let futex_val = this
|
let futex_val = this
|
||||||
.read_scalar_at_offset_atomic(
|
.read_scalar_at_offset_atomic(
|
||||||
&addr.into(),
|
&addr.into(),
|
||||||
|
Loading…
x
Reference in New Issue
Block a user