about summary refs log tree commit diff
path: root/compiler/rustc_borrowck/src/root_cx.rs
diff options
context:
space:
mode:
authorlcnr <rust@lcnr.de>2025-08-22 13:39:38 +0200
committerlcnr <rust@lcnr.de>2025-08-22 13:39:38 +0200
commit17ac2fc96d7dc93b5a02b8f2fe5f03edade6f739 (patch)
tree3461f816dae42360712dcd9eddec8a163b6c9df8 /compiler/rustc_borrowck/src/root_cx.rs
parent831e291d3be4cacc4fe178424c4d6baa264d8b5a (diff)
downloadrust-17ac2fc96d7dc93b5a02b8f2fe5f03edade6f739.tar.gz
rust-17ac2fc96d7dc93b5a02b8f2fe5f03edade6f739.zip
change HIR typeck unification handling approach
Diffstat (limited to 'compiler/rustc_borrowck/src/root_cx.rs')
-rw-r--r--compiler/rustc_borrowck/src/root_cx.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_borrowck/src/root_cx.rs b/compiler/rustc_borrowck/src/root_cx.rs
index 40c0448cf0b..4e90ae391bb 100644
--- a/compiler/rustc_borrowck/src/root_cx.rs
+++ b/compiler/rustc_borrowck/src/root_cx.rs
@@ -38,6 +38,10 @@ impl<'tcx> BorrowCheckRootCtxt<'tcx> {
         }
     }
 
+    pub(super) fn root_def_id(&self) -> LocalDefId {
+        self.root_def_id
+    }
+
     /// Collect all defining uses of opaque types inside of this typeck root. This
     /// expects the hidden type to be mapped to the definition parameters of the opaque
     /// and errors if we end up with distinct hidden types.