Files
rust/compiler/rustc_hir_analysis
Dawid Lachowicz e4ead0ec70 Guard HIR lowered contracts with contract_checks
Refactor contract HIR lowering to ensure no contract code is
executed when contract-checks are disabled.

The call to contract_checks is moved to inside the lowered fn
body, and contract closures are built conditionally, ensuring
no side-effects present in contracts occur when those are disabled.
2025-10-11 00:16:29 +01:00
..

For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.