Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix
Key
interning race. (pantsbuild#12152)
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 (cherry picked from commit a59be85) # Building wheels and fs_util will be skipped. Delete if not intended. [ci skip-build-wheels]
- Loading branch information