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:
Dylan DPC 2022-07-18 21:14:48 +05:30 committed by GitHub
commit a47a090d51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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(());
}
_ => {},
};