Skip to content

Commit

Permalink
Auto merge of rust-lang#3865 - Mandragorian:doc_fixes_pthreads, r=Ral…
Browse files Browse the repository at this point in the history
…fJung

Fix comment in mutex_id_offset

We no longer store the kind inside the pthread_mutex_t, so this comment is outdated.
Sorry I didn't catch this in the original PR.
  • Loading branch information
bors committed Sep 6, 2024
2 parents 72aa65b + 4dfafb1 commit 59cb24d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/tools/miri/src/shims/unix/sync.rs
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ fn is_mutex_kind_normal<'tcx>(ecx: &MiriInterpCx<'tcx>, kind: i32) -> InterpResu
// pthread_mutex_t is between 24 and 48 bytes, depending on the platform.
// We ignore the platform layout and store our own fields:
// - id: u32
// - kind: i32

fn mutex_id_offset<'tcx>(ecx: &MiriInterpCx<'tcx>) -> InterpResult<'tcx, u64> {
let offset = match &*ecx.tcx.sess.target.os {
Expand Down

0 comments on commit 59cb24d

Please sign in to comment.