diff options
| author | Jane Losare-Lusby <jlusby@yaah.dev> | 2025-04-07 14:26:14 -0700 |
|---|---|---|
| committer | Jane Losare-Lusby <jlusby@yaah.dev> | 2025-04-08 15:00:37 -0700 |
| commit | 6f5501583557d2d918cd42fab3f99ad153152afd (patch) | |
| tree | bd57a566c4c84e2d4632a34e5588d40dff7c5dbf /compiler/rustc_data_structures/src | |
| parent | e643f59f6da3a84f43e75dea99afaa5b041ea6bf (diff) | |
| download | rust-6f5501583557d2d918cd42fab3f99ad153152afd.tar.gz rust-6f5501583557d2d918cd42fab3f99ad153152afd.zip | |
fix "still mutable" ice while metrics are enabled
Diffstat (limited to 'compiler/rustc_data_structures/src')
| -rw-r--r-- | compiler/rustc_data_structures/src/sync/freeze.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_data_structures/src/sync/freeze.rs b/compiler/rustc_data_structures/src/sync/freeze.rs index 9720b22ea7d..6338afb92c3 100644 --- a/compiler/rustc_data_structures/src/sync/freeze.rs +++ b/compiler/rustc_data_structures/src/sync/freeze.rs @@ -88,7 +88,7 @@ impl<T> FreezeLock<T> { #[inline] #[track_caller] pub fn write(&self) -> FreezeWriteGuard<'_, T> { - self.try_write().expect("still mutable") + self.try_write().expect("data should not be frozen if we're still attempting to mutate it") } #[inline] |
