We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce39fff commit cd290c7Copy full SHA for cd290c7
src/librustc/mir/interpret/value.rs
@@ -46,7 +46,7 @@ pub enum ConstValue<'tcx> {
46
/// An allocation together with a pointer into the allocation.
47
/// Invariant: the pointer's `AllocId` resolves to the allocation.
48
/// The alignment exists to allow `const_field` to have `ByRef` access to nonprimitive fields
49
- /// 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.
50
/// This permits reads with lower alignment than what the type would normally require.
51
/// FIXME(RalfJ,oli-obk): The alignment checks are part of miri, but const eval doesn't really
52
/// need them. Disabling them may be too hard though.
0 commit comments