mirror of
https://github.com/astral-sh/uv.git
synced 2025-07-07 13:25:00 +00:00
![]() The only pubgrub error that can occur is a `NoSolutionError`, and the only place it can occur is `unit_propagation`, all other variants if `PubGrubError` are unreachable. By changing the return type on pubgrub's side (https://github.com/astral-sh/pubgrub/pull/28), we can remove the pattern matching and the `unreachable!()` asserts on `PubGrubError`. Our pubgrub error wrapper used to have a two phased initialization, first mostly stubs in `solve[_tracked]()` and then adding the actual context in `resolve()`. When constructing the error in `solve` we already have all this context, so we can unify this to a regular constructor and remove the special casing in `resolve()` and `hints()`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |