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 595dd97 commit 0850badCopy full SHA for 0850bad
compiler/rustc_const_eval/src/interpret/operator.rs
@@ -32,6 +32,7 @@ impl<'mir, 'tcx: 'mir, M: Machine<'mir, 'tcx>> InterpCx<'mir, 'tcx, M> {
32
let pair = Immediate::ScalarPair(val.into(), Scalar::from_bool(overflowed).into());
33
self.write_immediate(pair, dest)?;
34
} else {
35
+ assert!(self.tcx.sess.opts.debugging_opts.randomize_layout);
36
// With randomized layout, `(int, bool)` might cease to be a `ScalarPair`, so we have to
37
// do a component-wise write here. This code path is slower than the above because
38
// `place_field` will have to `force_allocate` locals here.
0 commit comments