Skip to content

Commit 0f29bef

Browse files
authored
Rollup merge of #99378 - RalfJung:box-early-return, r=oli-obk
interpret/visitor: add missing early return I forgot to add this when adding the special `Box` handling branch. r? ``@oli-obk``
2 parents 37e9c3f + e6be52b commit 0f29bef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

compiler/rustc_const_eval/src/interpret/visitor.rs

+3
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,9 @@ macro_rules! make_value_visitor {
473473
// The second `Box` field is the allocator, which we recursively check for validity
474474
// like in regular structs.
475475
self.visit_field(v, 1, &alloc)?;
476+
477+
// We visited all parts of this one.
478+
return Ok(());
476479
}
477480
_ => {},
478481
};

0 commit comments

Comments
 (0)