-
Notifications
You must be signed in to change notification settings - Fork 209
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(
c2rust-analyze
) Separate handling of CastKind
s and only check sa…
…fe transmutability for `CastKind::Misc`, which are the only non-type-checked ptr casts. Note that `CastKind::Pointer(PointerCast::Unsize)` needs different rules than safe transmutability. These rules are implemented by typeck, so there's no reason re-implementing that, but we can't include them in transmutability (will be removed in the next commit).
- Loading branch information
Showing
1 changed file
with
27 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters