---
title: "Two Kinds of Invariants"
categories: internship rust
+forum: https://internals.rust-lang.org/t/two-kinds-of-invariants/8264
---
When talking about the Rust type system in the context of unsafe code, the discussion often revolves around *invariants*:
I think we have enough experience writing unsafe code at this point that we can reasonably discuss which validity invariants make sense and which do not -- and I think that it is high time that we do so, because many unsafe code authors are wondering about these exact things all the time.
The plan is to open issues in the [UCG RFCs repo](https://github.com/rust-rfcs/unsafe-code-guidelines/) soon-ish, one issue for each type family that we need to make decisions on wrt. validity.
-<!-- Meanwhile, if you have any comments or questions, feel free to join us in the forum! -->
+Meanwhile, if you have any comments or questions, feel free to join us in the [forum](https://internals.rust-lang.org/t/two-kinds-of-invariants/8264)!
#### Footnotes