From 4c67484286f7d458d38465b9e75956f6d15afb85 Mon Sep 17 00:00:00 2001 From: Jose Mendoza <56417208+StunxFS@users.noreply.github.com> Date: Fri, 19 Jan 2024 16:25:54 +0000 Subject: [PATCH] fix --- lib/core/src/DynArray.ri | 2 +- lib/rivet/src/utils/maps/mod.ri | 1 + rivetc/src/checker.py | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/core/src/DynArray.ri b/lib/core/src/DynArray.ri index d805dfd34..64f92ad91 100644 --- a/lib/core/src/DynArray.ri +++ b/lib/core/src/DynArray.ri @@ -126,7 +126,7 @@ struct DynArray { @ptr_add(@as(rawptr, old_ptr), (i + size) * self.elem_size), (self.len - i - size) * self.elem_size ); - mem.boxed_release(old_ptr); + // FIXME: mem.boxed_release(old_ptr); } self.len = new_size; self.cap = new_cap; diff --git a/lib/rivet/src/utils/maps/mod.ri b/lib/rivet/src/utils/maps/mod.ri index 256daf589..6b7559501 100644 --- a/lib/rivet/src/utils/maps/mod.ri +++ b/lib/rivet/src/utils/maps/mod.ri @@ -76,6 +76,7 @@ pub struct MapStringArrayOfStringsIterator { pub struct MapStringArrayOfStrings { mut pairs: []mut StringArrayOfStrings; + #[inline] pub func iterator(&self) -> MapStringArrayOfStringsIterator { return MapStringArrayOfStringsIterator(self); } diff --git a/rivetc/src/checker.py b/rivetc/src/checker.py index ef9cd066e..41237d857 100644 --- a/rivetc/src/checker.py +++ b/rivetc/src/checker.py @@ -184,7 +184,7 @@ def check_decl(self, decl): decl.name_pos ) report.note( - f"type `{self_sym.name}` is boxed, should use `+self` or `^mut self` instead" + f"type `{self_sym.name}` is boxed, should use `^self` or `^mut self` instead" ) for arg in decl.args: if arg.has_def_expr: