Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add
Exception::CallStack.empty
(crystal-lang#15017)
This is a follow-up on crystal-lang#15002 which explicitly assigns a dummy callstack to `RetryLookupWithLiterals` for performance reasons. `CallStack.empty` is intended to make this use case a bit more ergonomical. It doesn't require allocating a dummy instance with fake data. Instead, it's an explicitly empty callstack. This makes this mechanism easier to re-use in other places (ref crystal-lang#11658 (comment)).
- Loading branch information