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:
commit
d79a5ed904
@ -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!"
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user