diff options
| author | Michael Goulet <michael@errs.io> | 2025-05-28 11:14:43 +0000 |
|---|---|---|
| committer | Michael Goulet <michael@errs.io> | 2025-06-02 19:23:20 +0000 |
| commit | 3418d5db3aa619f19f59f4ee341f6683ed6743b4 (patch) | |
| tree | 663c879c28f40614dad3738e30a3572208d47881 /compiler/rustc_infer/src | |
| parent | 2398bd60ef526e686a38a299cc2fa991d8b3c33e (diff) | |
| download | rust-3418d5db3aa619f19f59f4ee341f6683ed6743b4.tar.gz rust-3418d5db3aa619f19f59f4ee341f6683ed6743b4.zip | |
Fast path for stalled obligations on self ty
Diffstat (limited to 'compiler/rustc_infer/src')
| -rw-r--r-- | compiler/rustc_infer/src/infer/opaque_types/table.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_infer/src/infer/opaque_types/table.rs b/compiler/rustc_infer/src/infer/opaque_types/table.rs index ab65da3913d..df5a66243fc 100644 --- a/compiler/rustc_infer/src/infer/opaque_types/table.rs +++ b/compiler/rustc_infer/src/infer/opaque_types/table.rs @@ -53,7 +53,7 @@ impl<'tcx> OpaqueTypeStorage<'tcx> { assert!(entry.is_some()); } - pub(crate) fn is_empty(&self) -> bool { + pub fn is_empty(&self) -> bool { let OpaqueTypeStorage { opaque_types, duplicate_entries } = self; opaque_types.is_empty() && duplicate_entries.is_empty() } |
