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```
This commit is contained in:
commit
a47a090d51
1 changed files with 3 additions and 0 deletions
|
@ -473,6 +473,9 @@ macro_rules! make_value_visitor {
|
|||
// The second `Box` field is the allocator, which we recursively check for validity
|
||||
// like in regular structs.
|
||||
self.visit_field(v, 1, &alloc)?;
|
||||
|
||||
// We visited all parts of this one.
|
||||
return Ok(());
|
||||
}
|
||||
_ => {},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue