Unsafe extern blocks This implements RFC 3484. Tracking issue #123743 and RFC https://github.com/rust-lang/rfcs/pull/3484 This is better reviewed commit by commit.
For high-level intro to how type checking works in rustc, see the type checking chapter of the rustc dev guide.