Skip to content

Commit 5719897

Browse files
authored
improve old comment
1 parent aa072d7 commit 5719897

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/unix/foreign_items.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,10 +463,10 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriEvalContextExt<'mir, 'tcx
463463

464464
// Querying system information
465465
"pthread_attr_getstack" => {
466-
// We don't support "pthread_attr_setstack", so we just pretend all stacks have the same values here.
466+
// We don't support "pthread_attr_setstack", so we just pretend all stacks have the same values here. Hence we can mostly ignore the input `attr_place`.
467467
let [attr_place, addr_place, size_place] =
468468
this.check_shim(abi, Abi::C { unwind: false }, link_name, args)?;
469-
this.deref_operand(attr_place)?;
469+
let _attr_place = this.deref_operand(attr_place)?;
470470
let addr_place = this.deref_operand(addr_place)?;
471471
let size_place = this.deref_operand(size_place)?;
472472

0 commit comments

Comments
 (0)