We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 128c634 commit f3e7efcCopy full SHA for f3e7efc
src/librustc_mir/interpret/operand.rs
@@ -199,7 +199,12 @@ fn from_known_layout<'tcx>(
199
match layout {
200
None => compute(),
201
Some(layout) => {
202
- debug_assert_eq!(layout.ty, compute()?.ty);
+ if cfg!(debug_assertions) {
203
+ let layout2 = compute()?;
204
+ assert_eq!(layout.details, layout2.details,
205
+ "Mismatch in layout of supposedly equal-layout types {:?} and {:?}",
206
+ layout.ty, layout2.ty);
207
+ }
208
Ok(layout)
209
}
210
0 commit comments