interpret/visitor: add missing early return

This commit is contained in:
Ralf Jung 2022-07-17 10:47:34 -04:00
parent 967a9c94b3
commit e6be52bbbd

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