Auto merge of #115012 - Zoxc:thir-check-root, r=cjgillot

Ensure that THIR unsafety check is done before stealing it

This ensures that THIR unsafety check is done before stealing it by running it on the typeck root instead of on a closure, which does nothing.

Fixes https://github.com/rust-lang/rust/issues/111520
This commit is contained in:
bors 2023-08-24 00:42:46 +00:00
commit 0770c8e0f0

Diff content is not available