wip: compiling again with runtime safety
This commit is contained in:
1 parent
95bd17e38f
commit
857c92f7f0
8 files changed
+461
-290
No files matched your search
@@ -32,8 +32,8 @@ impl ScopeArena {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn get_mut(&mut self, id: &ScopeId) -> Option<&mut ScopeInner> {
|
||||
unsafe { Some(&mut *self.scopes[id.0]) }
|
||||
pub fn get_mut(&self, id: &ScopeId) -> Option<&ScopeInner> {
|
||||
unsafe { Some(&*self.scopes[id.0]) }
|
||||
}
|
||||
|
||||
pub fn new_with_key(
|
||||
|
||||
Reference in new issue
Block a user