packed -> repr(packed)
This commit is contained in:
parent
ce39fff66b
commit
cd290c7ee9
@ -46,7 +46,7 @@ pub enum ConstValue<'tcx> {
|
||||
/// An allocation together with a pointer into the allocation.
|
||||
/// Invariant: the pointer's `AllocId` resolves to the allocation.
|
||||
/// The alignment exists to allow `const_field` to have `ByRef` access to nonprimitive fields
|
||||
/// of packed structs. The alignment may be lower than the type of this constant.
|
||||
/// of `repr(packed)` structs. The alignment may be lower than the type of this constant.
|
||||
/// This permits reads with lower alignment than what the type would normally require.
|
||||
/// FIXME(RalfJ,oli-obk): The alignment checks are part of miri, but const eval doesn't really
|
||||
/// need them. Disabling them may be too hard though.
|
||||
|
Loading…
Reference in New Issue
Block a user