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.
2 parents 421cf19 + bc98dba commit 6ab5a5dCopy full SHA for 6ab5a5d
src/intrinsics/atomic.rs
@@ -264,8 +264,9 @@ trait EvalContextPrivExt<'tcx>: MiriInterpCxExt<'tcx> {
264
let place = this.deref_pointer(place)?;
265
let rhs = this.read_immediate(rhs)?;
266
267
+ // The LHS can be a pointer, the RHS must be an integer.
268
if !(place.layout.ty.is_integral() || place.layout.ty.is_raw_ptr())
- || !(rhs.layout.ty.is_integral() || rhs.layout.ty.is_raw_ptr())
269
+ || !rhs.layout.ty.is_integral()
270
{
271
span_bug!(
272
this.cur_span(),
0 commit comments