An into temporary is reclaimed by its region, so its leak is not a gap
This commit is contained in:
parent
51ce9a2ba6
commit
497881a333
8
TODO.org
8
TODO.org
@ -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
|
||||
runtime check still catches it.
|
||||
|
||||
** TODO An owning temporary as into's source leaks
|
||||
The macro binds a non-name source to a name the caller cannot reach and cannot
|
||||
know whether the type owns anything. A call in that position should borrow, and
|
||||
=drop= is what would close it.
|
||||
** CANCELLED An owning temporary as into's source leaks
|
||||
CLOSED: [2026-09-25]
|
||||
A leak is defined here, and the allocator's region reclaims the temporary the
|
||||
way it reclaims every other one. Closing it needed =drop=, which is cancelled.
|
||||
|
||||
** TODO Notes on the type-mismatch errors
|
||||
The most common error class, and it has no second place to point at, because the
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user