forked from pantsbuild/pants
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Previously a `Key` could be observed before it was added to the `reverse_keys` mapping leading to a panic in key_get. That panic used a debug format on the problematic key and the `Debug` impl for `Key` indirectly uses `key_get`. This results in a panic while handling a panic. Fix the root cause of the panic, ensuring the panic can never happen as was intended. Also fix the recursive use of `key_get` in the panic for sanity sake. Fixes pantsbuild#11926 [ci skip-build-wheels]
- Loading branch information
Showing
1 changed file
with
18 additions
and
14 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