Skip to content

Commit d79a5ed

Browse files
committed
Auto merge of rust-lang#3334 - RalfJung:nullfix, r=RalfJung
remove a wrong bitwise negation This is a silly mistake I introduced in rust-lang/miri@a1233a7.
2 parents bc76256 + a676afa commit d79a5ed

File tree

1 file changed

+1
-1
lines changed
  • src/tools/miri/src/shims

1 file changed

+1
-1
lines changed

src/tools/miri/src/shims/tls.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
354354
state.last_key = Some(key);
355355
trace!("Running TLS dtor {:?} on {:?} at {:?}", instance, ptr, active_thread);
356356
assert!(
357-
!ptr.to_target_usize(this).unwrap() != 0,
357+
ptr.to_target_usize(this).unwrap() != 0,
358358
"data can't be NULL when dtor is called!"
359359
);
360360

0 commit comments

Comments
 (0)