diff --git a/third_party/move/move-model/src/builder/module_builder.rs b/third_party/move/move-model/src/builder/module_builder.rs
index 3109adcfc9d..08013d99184 100644
--- a/third_party/move/move-model/src/builder/module_builder.rs
+++ b/third_party/move/move-model/src/builder/module_builder.rs
@@ -4844,6 +4844,7 @@ impl ModuleBuilder<'_, '_> {
using_funs: RefCell::default(),
transitive_closure_of_used_funs: RefCell::default(),
used_functions_with_transitive_inline: RefCell::default(),
+ using_functions_with_transitive_inline: RefCell::default(),
used_structs: RefCell::default(),
};
function_data.insert(fun_id, data);
@@ -4890,6 +4891,7 @@ impl ModuleBuilder<'_, '_> {
using_funs: RefCell::default(),
transitive_closure_of_used_funs: RefCell::default(),
used_functions_with_transitive_inline: RefCell::default(),
+ using_functions_with_transitive_inline: RefCell::default(),
used_structs: RefCell::default(),
};
function_data.insert(fun_id, data);
diff --git a/third_party/move/move-model/src/model.rs b/third_party/move/move-model/src/model.rs
index c1eeb212c32..00842ff3a52 100644
--- a/third_party/move/move-model/src/model.rs
+++ b/third_party/move/move-model/src/model.rs
@@ -2229,6 +2229,7 @@ impl GlobalEnv {
*data.using_funs.borrow_mut() = None;
*data.transitive_closure_of_used_funs.borrow_mut() = None;
*data.used_functions_with_transitive_inline.borrow_mut() = None;
+ *data.using_functions_with_transitive_inline.borrow_mut() = None;
// Set the new function definition.
data.def = Some(def);
}
@@ -2303,6 +2304,7 @@ impl GlobalEnv {
using_funs: RefCell::new(None),
transitive_closure_of_used_funs: RefCell::new(None),
used_functions_with_transitive_inline: RefCell::new(None),
+ using_functions_with_transitive_inline: RefCell::new(None),
used_structs: RefCell::new(None),
};
assert!(self
@@ -2375,6 +2377,7 @@ impl GlobalEnv {
using_funs: RefCell::new(None),
transitive_closure_of_used_funs: RefCell::new(None),
used_functions_with_transitive_inline: RefCell::new(None),
+ using_functions_with_transitive_inline: RefCell::new(None),
used_structs: RefCell::new(None),
}
}
@@ -4923,6 +4926,11 @@ pub struct FunctionData {
/// A cache for used functions including ones obtained by transitively traversing used inline functions.
pub(crate) used_functions_with_transitive_inline: RefCell