mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-15 12:39:31 +03:00
interpret/visitor: add missing early return
This commit is contained in:
@@ -473,6 +473,9 @@ fn walk_value(&mut self, v: &Self::V) -> InterpResult<'tcx>
|
||||
// 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(());
|
||||
}
|
||||
_ => {},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user