@@ -610,7 +610,7 @@ where
610610 #[ cfg( grmtools_extra_checks) ]
611611 if std:: env:: var ( "CACHE_EXPECTED" ) . is_ok ( ) {
612612 eprintln ! ( "outc: {}" , outc) ;
613- eprintln ! ( "using cache: {}" , cache, ) ;
613+ eprintln ! ( "using cache: {}" , cache, ) ;
614614 // Primarily for use in the testsuite.
615615 panic ! ( "The cache regenerated however, it was expected to match" ) ;
616616 }
@@ -641,14 +641,20 @@ where
641641 }
642642 }
643643
644- self . output_file ( & grm, & stable, & derived_mod_name, outp, & quote ! {
645- // This declaration can be affected by the pretty printer.
646- // But we would hope the actual cache string is not.
647- //
648- // This is emitted for the purposes of performing the cache check.
649- // on the output source, but is not used by generated parser.
650- const _: & str = #cache;
651- } ) ?;
644+ self . output_file (
645+ & grm,
646+ & stable,
647+ & derived_mod_name,
648+ outp,
649+ & quote ! {
650+ // This declaration can be affected by the pretty printer.
651+ // But we would hope the actual cache string is not.
652+ //
653+ // This is emitted for the purposes of performing the cache check.
654+ // on the output source, but is not used by generated parser.
655+ const _: & str = #cache;
656+ } ,
657+ ) ?;
652658 let conflicts = if stable. conflicts ( ) . is_some ( ) {
653659 Some ( ( grm, sgraph, stable) )
654660 } else {
@@ -866,7 +872,7 @@ where
866872 ) )
867873 } )
868874 . collect :: < Vec < _ > > ( ) ;
869- let cache_info = quote ! {
875+ let cache_info = quote ! {
870876 BUILD_TIME = #build_time
871877 DERIVED_MOD_NAME = #derived_mod_name
872878 GRAMMAR_PATH = #grammar_path
0 commit comments