Removing use of $assignable and deprecate it. Fix regression for stacktraces on MacOS. Added readline_to_stream. Regression: Chaining an optional together with contracts could in some cases lose the optional.

This commit is contained in:
Christoffer Lerno
2025-07-21 03:20:40 +02:00
parent 382a65abcd
commit 869bcf8b2b
18 changed files with 116 additions and 69 deletions

View File

@@ -17,9 +17,9 @@ struct Bar
fn void test_new_aligned_compiles() @test
{
Bar* bar2 = allocator::new_aligned(allocator::heap(), Bar)!!;
allocator::free_aligned(allocator::heap(), bar2);
Bar* bar2 = allocator::new_aligned(mem, Bar)!!;
allocator::free_aligned(mem, bar2);
Bar* bar = allocator::new_aligned(allocator::heap(), Bar, {.x = 1, .y = 2, .foos = {}})!!;
allocator::free_aligned(allocator::heap(), bar);
Bar* bar = allocator::new_aligned(mem, Bar, {.x = 1, .y = 2, .foos = {}})!!;
allocator::free_aligned(mem, bar);
}