File tree 1 file changed +2
-2
lines changed
compiler/rustc_mir_transform/src
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1396,8 +1396,8 @@ fn op_to_prop_const<'tcx>(
1396
1396
// by `GlobalAlloc::Memory`, so do fall through to copying if needed.
1397
1397
// FIXME: find a way to treat this more uniformly (probably by fixing codegen)
1398
1398
if let GlobalAlloc :: Memory ( alloc) = ecx. tcx . global_alloc ( alloc_id)
1399
- // Transmuting a constant is just an offset in the allocation. If the alignement of the
1400
- // allocation is noe enough, fallback to copying into a properly aligned value.
1399
+ // Transmuting a constant is just an offset in the allocation. If the alignment of the
1400
+ // allocation is not enough, fallback to copying into a properly aligned value.
1401
1401
&& alloc. inner ( ) . align >= op. layout . align . abi
1402
1402
{
1403
1403
return Some ( ConstValue :: Indirect { alloc_id, offset } ) ;
You can’t perform that action at this time.
0 commit comments