diff options
| author | lcnr <rust@lcnr.de> | 2025-08-22 13:39:38 +0200 |
|---|---|---|
| committer | lcnr <rust@lcnr.de> | 2025-08-22 13:39:38 +0200 |
| commit | 17ac2fc96d7dc93b5a02b8f2fe5f03edade6f739 (patch) | |
| tree | 3461f816dae42360712dcd9eddec8a163b6c9df8 /compiler/rustc_borrowck/src/root_cx.rs | |
| parent | 831e291d3be4cacc4fe178424c4d6baa264d8b5a (diff) | |
| download | rust-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.rs | 4 |
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. |
