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.
expect
1 parent 5c826b5 commit 81277a5Copy full SHA for 81277a5
src/function/execute.rs
@@ -183,8 +183,10 @@ where
183
debug_assert!(memo.may_be_provisional());
184
memo.value.as_ref()
185
};
186
- // SAFETY: The `LRU` does not run mid-execution, so the value remains filled
187
- let last_provisional_value = unsafe { last_provisional_value.unwrap_unchecked() };
+
+ let last_provisional_value = last_provisional_value.expect(
188
+ "`fetch_cold_cycle` should have inserted a provisional memo with Cycle::initial",
189
+ );
190
crate::tracing::debug!(
191
"{database_key_index:?}: execute: \
192
I am a cycle head, comparing last provisional value with new value"
0 commit comments