about summary refs log tree commit diff
path: root/src/tools
diff options
context:
space:
mode:
authorRalf Jung <post@ralfj.de>2024-02-28 07:41:50 +0100
committerRalf Jung <post@ralfj.de>2024-02-28 07:43:49 +0100
commita676afafa5d7d49451bde58fb385afef97cc50ae (patch)
tree451c14e3f651940e1de06153bb8e388c3aabc5ee /src/tools
parentbc76256efb992cd9e6dbf2043482c599cc71f354 (diff)
downloadrust-a676afafa5d7d49451bde58fb385afef97cc50ae.tar.gz
rust-a676afafa5d7d49451bde58fb385afef97cc50ae.zip
remove a wrong bitwise negation
Diffstat (limited to 'src/tools')
-rw-r--r--src/tools/miri/src/shims/tls.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/miri/src/shims/tls.rs b/src/tools/miri/src/shims/tls.rs
index 84c1feb88e9..7f929d9a91e 100644
--- a/src/tools/miri/src/shims/tls.rs
+++ b/src/tools/miri/src/shims/tls.rs
@@ -354,7 +354,7 @@ trait EvalContextPrivExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
             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!"
             );