Update Rust crate chumsky to 0.13#39
Open
renovate[bot] wants to merge 1 commit into
Open
Conversation
d60d40d to
c03664b
Compare
c03664b to
6d9e923
Compare
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
0.10→0.13Release Notes
zesterer/chumsky (chumsky)
v0.13.0Added
select!andselect_ref!now support cfg attributes.as_terminalandas_non_terminalon labels that will hide the internals for the debug infoRichReasoncan now be provided with an arbitraryRichReason::Customtype parameterConfigParserforOneOfRich::map_spanParser::map_err_withParser::filter_mapRemoved
spinandsyncfeature flagsChanged
Displayimpl to render labels with instead ofDebugCacheAPI due to soundness issuesDefaultExpected::NothingElseto allow parsers that can never succeed to generate correct errorsContainertrait in favour of std'sFromIterator, allowing.collect()to work with a greater range of typesFixed
Labelled->LabelledWithconversion now carries over the proper debug settingsDefaultExpected::into_ownednow has more permissive lifetime constraintsv0.12.0Added
MapExtra::emit, which allows emitting secondary errors during mapping operationsInputRef::emit, which allows emitting secondary errors withincustomparserslabelled_with, which avoids the need to implementClonefor labelsInput::split_token_span, a convenience function for splitting(Token, Span)inputs so that chumsky can understand themInput::split_spanned, which does the same as above, but for implementors ofWrappingSpanspanned, a combinator which automatically annotates a parser output with a spanIterParser::parse_iter, a way to turn anIterParser(likex.repeated()) into an iteratorParser::debug, which provides access to various parser debugging utilities.Changed
nested_inmore flexible by allowing it to map between different input types instead of requiring the same input as the outer parserFixed
nested_inv0.11.2Added
Default,PartialOrd, andOrdforSimpleSpanPartialOrdandOrdforRichv0.11.1Fixed
v0.11.0Added
set(...)combinator, which may be used to conveniently parse a set of patterns, in any order.pratt(...)combinatorParser::try_foldl, allowing folding operations to short-circuit in a manner similar toParser::try_mapParser::contextual, which allows a parser to be disabled or enabled in a context-sensitive mannerValueInputforIterInput, which was previously missingStatetrait:RollbackState, which reverts parser state when a parser rewinds and may be used to, for example, count the number of times a pattern appears in the inputTruncateState, which truncates a vector when a parser rewinds, and may be used to implement an arena allocator for AST nodesIterParserfora.then(b)when bothaandbare bothIterParsers that produce the same output typeChanged
recursiveandParserExtramore permissiveParser::filternow generates aDefaultExpected::SomethingElselabel instead of nothing (this can be overridden with the.labelled(...)function)select!parser more permissive, accepting any implementor ofInputinstead of requiringValueInputtooFixed
Parser::try_map).rewind()parser no longer rewinds any secondary error that were encounteredtext::ascii::keywordlifetime regressionConfiguration
📅 Schedule: (UTC)
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.