@@ -9,8 +9,8 @@ mod symex;
99mod tests;
1010
1111use chumsky:: error:: Rich ;
12- use chumsky:: extra:: { Full , ParserExtra } ;
13- use chumsky:: input:: { MapExtra , Stream , ValueInput } ;
12+ use chumsky:: extra:: Full ;
13+ use chumsky:: input:: { Stream , ValueInput } ;
1414use chumsky:: inspector:: SimpleState ;
1515use chumsky:: prelude:: { choice, just, one_of, recursive, Input , IterParser , Recursive , SimpleSpan } ;
1616use chumsky:: select;
@@ -629,19 +629,9 @@ where
629629 //
630630 // "ADXₚ|ₜQ" should be equivalent to ADXₚ{Qₜ}*. So we need to
631631 // generate an RC-word containing Qₜ.
632- fn getspan <
633- ' srcbody ,
634- I : Input < ' srcbody , Token = Tok , Span = Span > ,
635- E : ParserExtra < ' srcbody , I > ,
636- > (
637- frag : InstructionFragment ,
638- extra : & mut MapExtra < ' srcbody , ' _ , I , E > ,
639- ) -> ( InstructionFragment , Span ) {
640- ( frag, extra. span ( ) )
641- }
642632 let spanned_fragment = program_instruction_fragment // this is Q
643633 . clone ( )
644- . map_with ( getspan ) ;
634+ . map_with ( |frag , extra| ( frag , extra . span ( ) ) ) ;
645635 let pipe_construct = ( symbol_or_literal ( Script :: Sub ) // this is p
646636 . then_ignore ( just ( Tok :: Pipe ( Script :: Sub ) ) )
647637 . then (
0 commit comments