You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expression: pull MultiColon error into parsing logic, drop AtOutsideOr
In miniscript and in policy we had near-identical logic dealing with :
and @ separators on certain nodes. The differences were:
* In Miniscript we had special handling for aliases, where we would
synthetically munge the wrappers (characters before ':'). This was
unnecessary since we can just handle the aliases directly. (Because
of our munging code, we did some extra error-checking to ensure that
a PkK fragment always fits into a Check. It does. This checking is
completely unnecessary.)
* In Policy we forbade the @ character if we were outside of an Or
context. Also unnecessary. The @ character does not appear in any
other fragment, so the "unknown fragment" error is already sufficient.
Removes two variants from the giant Error enum.
0 commit comments