diff options
| author | Camille Gillot <gillot.camille@gmail.com> | 2025-08-14 22:54:50 +0000 |
|---|---|---|
| committer | Camille Gillot <gillot.camille@gmail.com> | 2025-08-22 20:10:27 +0000 |
| commit | a3c878f813dd9c7c788cbe8d817699f2ef927e4e (patch) | |
| tree | e13ccd420f7249b14f5333bbf2d941db1ff40915 /compiler/rustc_interface/src | |
| parent | d20509c2a0c71b60aa2b51566e4d14920e8a1661 (diff) | |
| download | rust-a3c878f813dd9c7c788cbe8d817699f2ef927e4e.tar.gz rust-a3c878f813dd9c7c788cbe8d817699f2ef927e4e.zip | |
Separate transmute checking from typeck.
Diffstat (limited to 'compiler/rustc_interface/src')
| -rw-r--r-- | compiler/rustc_interface/src/passes.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compiler/rustc_interface/src/passes.rs b/compiler/rustc_interface/src/passes.rs index 424cba2dae8..90f7ae76387 100644 --- a/compiler/rustc_interface/src/passes.rs +++ b/compiler/rustc_interface/src/passes.rs @@ -1080,7 +1080,8 @@ fn run_required_analyses(tcx: TyCtxt<'_>) { if !tcx.is_typeck_child(def_id.to_def_id()) { // Child unsafety and borrowck happens together with the parent tcx.ensure_ok().check_unsafety(def_id); - tcx.ensure_ok().mir_borrowck(def_id) + tcx.ensure_ok().mir_borrowck(def_id); + tcx.ensure_ok().check_transmutes(def_id); } tcx.ensure_ok().has_ffi_unwind_calls(def_id); |
