-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove incorrect asserts in
Arena::mark_debt
and Arena::mark_all
.
I think these methods were not properly updated after their semantics changed at some point, they should do *nothing* when in the Collecting phase, rather than either panic or (in release mode) potentially incorrectly return a `MarkedArena`. Adds a test to make sure the arena phases progress properly and that these methods do nothing in the Collecting phase, as they advertise.
- Loading branch information
Showing
2 changed files
with
72 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters