Add lifetime to Caches.

This commit is contained in:
Stephen Chung
2022-05-24 11:52:03 +08:00
parent e4d492c727
commit 07d3dd6882
3 changed files with 9 additions and 9 deletions

View File

@@ -55,7 +55,7 @@ struct OptimizerState<'a> {
/// The global runtime state.
global: GlobalRuntimeState<'a>,
/// Function resolution caches.
caches: Caches,
caches: Caches<'a>,
/// [Module][crate::Module] containing script-defined functions.
#[cfg(not(feature = "no_function"))]
lib: &'a [&'a crate::Module],