wip: compiling again with runtime safety

This commit is contained in:
Jonathan Kelley committed 2021-11-06 20:59:46 -04:00
1 parent 95bd17e38f
commit 857c92f7f0
8 files changed
+461 -290

No files matched your search

+2 -2
View File
@@ -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(