An into temporary is reclaimed by its region, so its leak is not a gap

This commit is contained in:
Joseph Ferano 2026-09-25 09:53:16 +07:00
parent 51ce9a2ba6
commit 497881a333

View File

@ -925,10 +925,10 @@ A string type carries no length, so there is nothing to compare the bound agains
— consistent with a slice of a slice. A missed nicety rather than a hole; the — consistent with a slice of a slice. A missed nicety rather than a hole; the
runtime check still catches it. runtime check still catches it.
** TODO An owning temporary as into's source leaks ** CANCELLED An owning temporary as into's source leaks
The macro binds a non-name source to a name the caller cannot reach and cannot CLOSED: [2026-09-25]
know whether the type owns anything. A call in that position should borrow, and A leak is defined here, and the allocator's region reclaims the temporary the
=drop= is what would close it. way it reclaims every other one. Closing it needed =drop=, which is cancelled.
** TODO Notes on the type-mismatch errors ** TODO Notes on the type-mismatch errors
The most common error class, and it has no second place to point at, because the The most common error class, and it has no second place to point at, because the