summary refs log tree commit diff
path: root/compiler/rustc_hir_analysis/src/lib.rs
diff options
context:
space:
mode:
authorOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-05-03 09:22:55 +0000
committerOli Scherer <git-spam-no-reply9815368754983@oli-obk.de>2024-05-28 13:38:43 +0000
commitddc5f9b6c1f21da5d4596bf7980185a00984ac42 (patch)
tree41cca5b22d306a2429dac8b0d498a54aa7abdf26 /compiler/rustc_hir_analysis/src/lib.rs
parente5cba17b84bf7bf755686e8bb36aa3775ef53f77 (diff)
downloadrust-ddc5f9b6c1f21da5d4596bf7980185a00984ac42.tar.gz
rust-ddc5f9b6c1f21da5d4596bf7980185a00984ac42.zip
Create const block DefIds in typeck instead of ast lowering
Diffstat (limited to 'compiler/rustc_hir_analysis/src/lib.rs')
-rw-r--r--compiler/rustc_hir_analysis/src/lib.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/compiler/rustc_hir_analysis/src/lib.rs b/compiler/rustc_hir_analysis/src/lib.rs
index 8fe81851f93..65b02a2ec56 100644
--- a/compiler/rustc_hir_analysis/src/lib.rs
+++ b/compiler/rustc_hir_analysis/src/lib.rs
@@ -190,10 +190,6 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
         }
     });
 
-    // Freeze definitions as we don't add new ones at this point. This improves performance by
-    // allowing lock-free access to them.
-    tcx.untracked().definitions.freeze();
-
     // FIXME: Remove this when we implement creating `DefId`s
     // for anon constants during their parents' typeck.
     // Typeck all body owners in parallel will produce queries
@@ -205,6 +201,10 @@ pub fn check_crate(tcx: TyCtxt<'_>) {
         }
     });
 
+    // Freeze definitions as we don't add new ones at this point. This improves performance by
+    // allowing lock-free access to them.
+    tcx.untracked().definitions.freeze();
+
     tcx.ensure().check_unused_traits(());
 }