Skip to content

Commit bbf9603

Browse files
joshlfjswrenn
andcommitted
Add KnownLayout::validate_cast_and_convert_metadata
This method is a core primitive that other parts of the codebase can build on to validate casts and compute the appropriate pointer metadata which should result from those casts. Future commits will build on top of this one to make use of it. Co-authored-by: Jack Wrenn <[email protected]>
1 parent 753b19f commit bbf9603

2 files changed

Lines changed: 424 additions & 1 deletion

File tree

Cargo.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ optional = true
5555
zerocopy-derive = { version = "=0.7.3", path = "zerocopy-derive" }
5656

5757
[dev-dependencies]
58+
assert_matches = "1.5"
59+
itertools = "0.11"
5860
rand = { version = "0.8.5", features = ["small_rng"] }
5961
rustversion = "1.0"
6062
static_assertions = "1.1"

0 commit comments

Comments
 (0)