We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Definitions
1 parent 6881eed commit ac54d49Copy full SHA for ac54d49
compiler/rustc_hir_analysis/src/lib.rs
@@ -237,6 +237,10 @@ pub fn check_crate(tcx: TyCtxt<'_>) -> Result<(), ErrorGuaranteed> {
237
tcx.hir().for_each_module(|module| tcx.ensure().check_mod_item_types(module))
238
});
239
240
+ // Freeze definitions as we don't add new ones at this point. This improves performance by
241
+ // allowing lock-free access to them.
242
+ tcx.untracked().definitions.freeze();
243
+
244
// FIXME: Remove this when we implement creating `DefId`s
245
// for anon constants during their parents' typeck.
246
// Typeck all body owners in parallel will produce queries
0 commit comments