File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/rustc_mir_transform/src Expand file tree Collapse file tree 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>(
13961396 // by `GlobalAlloc::Memory`, so do fall through to copying if needed.
13971397 // FIXME: find a way to treat this more uniformly (probably by fixing codegen)
13981398 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.
14011401 && alloc. inner ( ) . align >= op. layout . align . abi
14021402 {
14031403 return Some ( ConstValue :: Indirect { alloc_id, offset } ) ;
You can’t perform that action at this time.
0 commit comments