Skip to content

Commit 2515605

Browse files
committed
remove a wrong bitwise negation
1 parent 40bb3c1 commit 2515605

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)