mirror of
https://github.com/rust-lang/rust.git
synced 2025-12-08 02:33:13 +00:00
1. Document the new intrinsics. 2. Make the intrinsics actually check the contract if enabled, and remove `contract::check_requires` function. 3. Use panic with no unwind in case contract is using to check for safety, we probably don't want to unwind. Following the same reasoning as UB checks.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.