File tree 2 files changed +3
-2
lines changed
2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change 13
13
#![ feature( lint_reasons) ]
14
14
#![ feature( trait_upcasting) ]
15
15
#![ feature( strict_overflow_ops) ]
16
+ #![ feature( is_none_or) ]
16
17
// Configure clippy and other lints
17
18
#![ allow(
18
19
clippy:: collapsible_else_if,
Original file line number Diff line number Diff line change @@ -396,12 +396,12 @@ trait EvalContextExtPriv<'tcx>: crate::MiriInterpCxExt<'tcx> {
396
396
// If the newly promised alignment is bigger than the native alignment of this
397
397
// allocation, and bigger than the previously promised alignment, then set it.
398
398
if align > alloc_align
399
- && ! this
399
+ && this
400
400
. machine
401
401
. symbolic_alignment
402
402
. get_mut ( )
403
403
. get ( & alloc_id)
404
- . is_some_and ( |& ( _, old_align) | align <= old_align)
404
+ . is_none_or ( |& ( _, old_align) | align > old_align)
405
405
{
406
406
this. machine . symbolic_alignment . get_mut ( ) . insert ( alloc_id, ( offset, align) ) ;
407
407
}
You can’t perform that action at this time.
0 commit comments