Skip to content

Commit 9039265

Browse files
committed
fix silly mistake
you should always run x.py check before pushing
1 parent 9f9c311 commit 9039265

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_const_eval/src/interpret/validity.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -600,7 +600,7 @@ impl<'rt, 'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> ValidityVisitor<'rt, 'mir, '
600600
self.check_safe_pointer(&ptr, "box")?;
601601

602602
// Check other fields of Box
603-
self.walk_value(op)?;
603+
self.walk_value(value)?;
604604
Ok(true)
605605
}
606606
ty::FnPtr(_sig) => {

0 commit comments

Comments
 (0)