Auto merge of #3334 - RalfJung:nullfix, r=RalfJung

remove a wrong bitwise negation

This is a silly mistake I introduced in a1233a721d.
This commit is contained in:
bors 2024-02-28 17:14:31 +00:00
commit d79a5ed904

View File

@ -354,7 +354,7 @@ fn schedule_next_pthread_tls_dtor(
state.last_key = Some(key);
trace!("Running TLS dtor {:?} on {:?} at {:?}", instance, ptr, active_thread);
assert!(
!ptr.to_target_usize(this).unwrap() != 0,
ptr.to_target_usize(this).unwrap() != 0,
"data can't be NULL when dtor is called!"
);