Add typed trait requirements and enforce actual capability results
This commit is contained in:
@@ -12,6 +12,12 @@ pub struct ObjectStore {
|
||||
pub(crate) heap: Heap,
|
||||
function_type: Option<WeakObjectRef>,
|
||||
pub(crate) field_type_checks: bool,
|
||||
pub(crate) active_trait_checks: std::sync::Mutex<
|
||||
std::collections::HashMap<
|
||||
std::thread::ThreadId,
|
||||
std::collections::BTreeSet<(ObjectRef, ObjectRef)>,
|
||||
>,
|
||||
>,
|
||||
}
|
||||
|
||||
impl ObjectStore {
|
||||
@@ -151,6 +157,7 @@ impl ObjectStore {
|
||||
heap: Heap::new()?,
|
||||
function_type: None,
|
||||
field_type_checks: false,
|
||||
active_trait_checks: std::sync::Mutex::new(std::collections::HashMap::new()),
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user