Skip to content
Permalink
Browse files

packed -> repr(packed)

  • Loading branch information...
oli-obk committed Jun 19, 2019
1 parent ce39fff commit cd290c7ee9cc00413116f402823475ed5735293a
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/librustc/mir/interpret/value.rs
@@ -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.

0 comments on commit cd290c7

Please sign in to comment.
You can’t perform that action at this time.